-
-
Notifications
You must be signed in to change notification settings - Fork 357
coc-lua nvim bugs #480
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
Comments
Reading that docs I think that maybe coc.nvim author should take in consideration whether current behavior of coc.nvim is correct or not, fwiw I'm facing the same issue with coc-lua (I can't open my |
What behavior di you mean? |
@chemzqm according to the linked wiki page:
My assessment is that coc.nvim does act like the last paragraph describes, but it seems it shouldn't according to the whole explanation. I'm actually not sure which behavior is precisely correct, as I'm not a LSP developer, but I just wanted to point out the conflicting information and behavior. What I know is that when using coc.nvim with some language servers it may well cause the servers to scan the whole home directory (if it's under git) if you open a file like What I did to fix that for bash language server was to set Currently I have to |
hi @chemzqm, I saw you provided a fix at neoclide/coc.nvim@7904a9e, and while that seems nice to have at first, I think I should point out that the issue stated here seems more generic than just for the home folder (which is a hard-coded solution):
The specification link provides:
and
As @sumneko points in their wikipage "If you only opened a single file, then the uri should be null" seems true information. The spec states about having to configure or open a workspace folder for a given project, for it to actually have one, otherwise it should be null. So some more generic solution would implement null workspace for any file opened alone (not sure how that should be done in vim under coc root resolve semantics). The hard-coded home folder fix may have solved the problem for the home folder, but the problem still persists for any other large directory. |
There's no open workspace folder concept with vim, unless you build something on top of it. |
@chemzqm ok, guess that's the best that can be done. |
@chemzqm notice that the side-effect of the current fix is not having coc working for any file that's open from home folder (which may be even more unexpected for another audience of users). I have already mentioned this at " |
You should make use of rootPatterns https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders |
@chemzqm Is there a way to get around the second issue I pointed out in my ticket description? Here's a link: josa42/coc-lua#59. Every time I open a .lua file, that annoying prompt shows up... |
coc-lua could implement option to disable that or provide not shown again option and save result to |
FYI, coc.nvim got this fixed as expected on neoclide/coc.nvim#3102 / neoclide/coc.nvim@39c14a3. Besides that, I highly recommend coc-sumneko-lua over coc-lua (coc-lua's author is very unresponsive and the extension is plagued with issues). |
This issue is to get your input on the bugs I recently filed on coc-lua:
Keeps on trying to get access to contacts, reminders, photos: josa42/coc-lua#58
Disable prompt asking for more files: Preloaded files has reached upper limit: josa42/coc-lua#59
The text was updated successfully, but these errors were encountered: