Closed benediktms closed 2 years ago
From your log, the issue is pretty clear: the typescript-estree
error message, which is not JSON, is causing the JSON parser to throw. If you can put together a repo that I can use to reproduce this, I can try to see if there's a solution, but the fastest way to solve this may be to resolve the error message by either downgrading your TypeScript version or upgrading whatever dependency is using typescript-estree
(which I understand may not be realistic in a commercial project). You could also try using the ESLint language server, which will provide a better experience than null-ls in this case.
Thanks for your help, that makes sense (actually it didn't occur to me that the warning was being parsed but I guess it makes sense). I looked into this and I think this can probably/hopefully be solved by updating our dependencies. I can try to produce a repo to reproduce this but I think it might not really be worth either of our time 😬
Sure, feel free to open another issue if you're still running into this after upgrading.
FAQ
Issues
Neovim Version
0.7.2
Operating System
Manjaro Linux
Minimal config
Steps to reproduce
Expected behavior
No error should appear (tested this in VSCode and it seems to work there)
Actual behavior
See the error appear on the first line
Debug log
Help
Yes, but I don't know how to start. I would need guidance
Implementation help
I'm happy to try and resolve this issue if I can but I'm not very comfortable with Lua and it's ecosystem (though I've used stylua, luacheck, and can use luarocks), and I'm unsure what parts of the code base are responsible for what. I've not worked on vim/nvim plugins before
Follow up from https://github.com/jose-elias-alvarez/null-ls.nvim/issues/443#issuecomment-1206518889
Requirements