-
Notifications
You must be signed in to change notification settings - Fork 0
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
import completion not working in neovim #1
Comments
This extension pulls [email protected]. The latest version is 0.0.25. How can I get the extension use the latest version of cairo-ls? Thanks. |
@om-tat-sat thanks for flagging this. The original issue with imports is an issue with an older version of cairo-ls. So yes, this extension should use the latest. I'll bump the dependency and publish a new release now. And I'll work on a better approach to managing cairo-ls versions. |
It seems the latest version of cairo-ls is not yet on npm. I've opened an issue here ericglau/cairo-ls#39 |
@om-tat-sat It should work if you add the example VIM configuration to your After you've added that to |
No dice for me either, only seem to work with the method of installing and editing the coc-settings configuration.. The completion menu pops up without any need for a trigger |
Okay I think I'm experiencing the same issue - I'll describe it here. Given we point to the Completions do not work in the middle of a module name. There is a related issue on cairo-ls here ericglau/cairo-ls#32. So The issue with this package is that completions do not work after the Hope this is the same issue you all are experiencing. I'll look into it. |
Thanks for checking and your reply. I have the below setting to trigger completion on pressing Ctrl-Space, and to set the syntax for cairo files.
Inside Neovim, the completions after from works after a few attempts. But, after the import keyword, it never worked for me too in Neovim. I see errors like this (checked it with :ConInfo).
In vscode, the completions after the import keyword worked for me earlier today, but it doesn't now. Am I missing some settings? |
Nope. You're settings are good. I'm getting the same error. I'll look into it. Won't have much time this weekend though. Also if you wanna try debugging, you can fork this repo, uninstall coc-cairo, and add this to your set runtimepath^=/path/to/forked/coc-cairo Then you can just mess around locally and see what gives. |
I tried that earlier today. Also, instead of picking the cairo-ls from the npmjs server, I pointed the dependency to a local clone of cairo-ls, and somehow built it and got the out files for that repo. I still see the same issue. Searching for this error online doesn't help much. I have no knowledge of Nodejs. Have a nice weekend. Would be great if you are able to look into it sometime next week. Thanks. |
@om-tat-sat turns out the v0.0.7 cairo-ls on npm is the latest version. see here ericglau/cairo-ls#39. the v0.0.25 package is the vscode exentsion, not the language server |
This should be fixed in v0.0.3. v0.0.3 also adds the commands I just tried it out and it seems to be working so closing this issue. Thanks all for your input If it doesn't work we can reopen |
Thanks a lot for fixing this. I tried it now and it works perfectly fine. Thanks again. |
I tried this in a new virtualenv, and it worked for me. |
Thanks @ericglau. I indeed get compilation errors and I do get completion after With your previous instructions, all that works + I get completion after |
Hi,
I installed the coc-cairo extension using
:CocInstall coc-cairo
in Neovim. I could not get the completions for import definitions.In VSCode, the completions work partially.
from a.b import c
- In vscode, completions work after typing out the module names fully -from a.b
Could you please help?
Warm Regards,
The text was updated successfully, but these errors were encountered: