Hi,
I’m trying rescript in neovim for the first time. I’ve got some problem with the error reporting.
First I didn’t have any error reporting, other than syntax errors. Then, I found that enabling these options helped:
incrementalTypechecking = { enabled = true },
codeAnalyzer = { enabled = true },
Now when a file has an error (a type error), it will get reported as expected.
So I update my code to fix the error. But now the error is still reported, and it will never go until I restart the editor.
In other words the errors are not cleared even after being fixed.
Also, it seems to not report more than one error per file. Only the first type error is reported.
I installed it via Mason (rescriptls), and below is the exact config I put in lspconfig for rescript:
rescriptls = {
settings = {
rescript = {
-- opt-in experimental type-checking
incrementalTypechecking = { enabled = true },
-- deeper semantic analysis
codeAnalyzer = { enabled = true },
},
},
},
I haven’t found much resource on how to set it up well. Any help would be welcome!
Thanks