Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Autofix doesn't seem to trigger for me, would someone confirm it's not just me?

try this in your editor

    let x = 4;
    if x = 5 {}
it should figure out you wanted x == 5.


This should work (it's my goto test case). You have to put the cursor in the erroring code to see the possible fix icon in the margin. If you don't see it please file an issue with the project you're trying this in and I'll investigate.


my bad, in a new project it works just fine. I'll keep investigating.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: