-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[coc.nvim] Failed to load the ESLint library for the document test.js #11
Comments
Make sure eslint can be resolve from your workspaceFolder https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders or global npm modules. You can disable suggest actions from tsserver https://github.com/neoclide/coc-tsserver#configuration-options. |
I am having the same issue no matter where I open a script file. Not sure how to see if eslint can resolve. |
Checkout your npm global module folder by |
@chemzqm you've spotted a recurring issue with my regular workflow - which is that I regularly switch node versions via Bonus Points: I'd still prefer not to have to move cursor over "underlined" section to see the warning as reflected by the vim "sign" (marker indicating an issue on this line. Is there a setting to reveal the issue just by moving cursor to the erroneous line? |
@kevindashgit Then you need to specify |
Same issue when opening Yarn 2 Berry PnP project. |
@dzintars When using
Now |
@fannheyward Tnx. I already did that, but no luck. Will update this issue when will get into something. BTW... which is recommended method today to install plugins? |
|
I have had the same issue with eslint without success, I am unable to get coc working with either eslint or prettier, sadly I have to revert to another method until there is a solution for this. |
Same issue for me with coc-prettier and coc-eslint |
I'm also experiencing the same issue. After installing with
|
For me the problem was that I've installed
|
Can I skip the error? If I have a random js file somewhere not in project, then this error always happens. I think this is supposed to be, but I want to skip the error if there is no eslint configuration. |
You can create |
Oh.... I see. Um well, it can't be helped. |
Or you can create a global eslint config file. |
@chemzqm prettierrc.js behavior is good.
|
You can use |
@chemzqm (It would be great if this error goes to CocInfoLog. Not error in status line. But as you stated there is an way to handle this, so it's not critical. This is still great plugin.) |
This worked wonders! cd into that folder and do sudo npm install -g eslint and eslint should be where it needs to be |
Super helpful! |
I'm just now getting more "serious" about using Coc in my development machine - and I'm trying to use this extension as a replacement for ALE by suggestion from this article but unfortunately I'm getting some pretty buggy behavior.
When I load a javascript file (any file) I see warnings that are legit warnings (like the neovim "sign" / gutter indicator is there) but I see the error in this issue summary at the bottom
However, if I play around enough (not sure what triggers it, but spamming
$
and0
in normal mode on a line where a sign exists eventually triggers the expected warning (and btw this one in particular I'd love to turn off but I realize its an existing annoyance for others):I did try `:CocUpdateSync and got this output:
Is that warning anything special?
I'd greatly appreciate any help here :)
:CocInfo Output
:CocConfig
The text was updated successfully, but these errors were encountered: