Skip to content
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

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

Open
j-adel opened this issue Mar 29, 2024 · 0 comments

Comments

@j-adel
Copy link

j-adel commented Mar 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant