fannheyward / coc-julia

Julia extension for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not recognizing all packages (nor local ones)

imLew opened this issue · comments

The langserver seems to handle most packages but not all. In particular I'm using DrWatson and keep getting a "Missing Reference" warning even though the package is in both the base environment and in the project in which I am working.

Also not sure whether this is an issue with coc-julia or if it's the langserver, but I currently also get missing reference errors for things that are not defined in the same directory (but are defined in the same julia project, git repo and nvim pwd).

Can confirm the problem on two different setups.

Should be fixed in v0.6.0 with #67 , please give it a try.

When I first tried it CocInfo contained an error message saying that 'PackageCompiler' was not found. This was fixed by activating ~/.config/coc/extensions/node_modules/coc-julia/server/compile_env/ in julia and adding it, followed by Pkg.instantiate(). PackageCompiler was removed as a dependence in 554fdaa

This seems to have worked. There are no longer missing reference warnings for packages that are installed in current environment. However functions and modules in the working directory are still not found.

commented

The PackageCompiler is not a dep of LS but compile_env now. I'm sorry that I forget to check missing pkgs for the compile env. Thanks for your response and I will try to fix it ASAP. @imLew

close by #76