LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

"Missing Reference" warning false positive when `using` package while running file in global environment

Open j-adel opened this issue 5 months ago • 0 comments

It’s really easy to reproduce. Simply creating a new Julia file and having a using Example (where Example is an added package in the global environment), the linter will show a warning underlining Example and any functions from it stating “Missing Reference”. Furthermore, any functions from Example are recognized so no linter features work with it. Running the REPL runs the code just fine. Here is further discussion of this issue and a reproduction of it: https://discourse.julialang.org/t/missing-reference-warnings-with-julia-in-vs-code/31321/22?u=j-adel I remember this used to work some time ago. Adding a Project.toml and adding Example to the local environment fixes it. However I think the linter is supposed to detect the global environment when it's there.

j-adel avatar Mar 29 '24 18:03 j-adel