Skip to content

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

@g-adel

Description

@g-adel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions