Closed jonleopard closed 3 years ago
Could you try setting debug = true
in your config and post the output from :messages
? Does eslint_d
run from the command line, and did you try running eslint_d stop
?
To be clear, when you say that "LSP is throwing an error", do you mean that Neovim itself is throwing an error (meaning it's visible in :messages
) or that you see an error diagnostic at the top of the file? (If relevant, a screenshot might help.)
The message is appearing at the top of the file, so I guess that means its an error diagnostic? I put debug = true
in the config, and also tried eslint_d stop
. Now the message is showing:
Nothing shows up when I type :messages
.
I removed "prettier" from my eslintrc since it was complaining that it couldn't extend that. I'm either really confused as to how to properly set up eslint/prettier, or something else is going on. Thanks for your help!
Yah im 80% sure this is a config issue on my end. I can't get the my prettier/eslint configuration to work with eslint_d. The error in the above screenshot is in fact coming from eslint_d
, but no formatting is working. I need to do some further reading on how to get these tools to work nice together.
Sorry for the noise!
I recommend taking a look at this page – it's how I set up the formatting integration.
FAQ
Issues
Neovim Version
0.5.0
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
LSP is throwing this error when I open up a file:
Error: cannot read config file: ...project/node_modules/eslint-config-prettier/index.js
I do not have this package installed, so I don't know what is telling the LSP to look for this module.
Here is my .lua config for nvim-lsp-ts-utils/null-ls
For reference, I have the following packages installed and configs:
.eslintrc.json
.prettierrc.json
I also have these installed in the project:
Globally, I have the following:
Help
No
Implementation help
No response