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

False positive: Missing reference: Base #368

Open
jakobnissen opened this issue Jun 8, 2023 · 0 comments
Open

False positive: Missing reference: Base #368

jakobnissen opened this issue Jun 8, 2023 · 0 comments

Comments

@jakobnissen
Copy link

jakobnissen commented Jun 8, 2023

To reproduce this:

  • Julia version 1.9.1 or 1.9.0 (it probably also works with earlier versions but I did not test)
  • Latest version of Julia for VSCode (as of 2023-06-08)
  • Create a new package Foo with the following content in Foo/src/Foo.jl:
module Foo

baremodule Flags
using Base: @enum
@enum Flag flag
end

end
  • Add StructTypes v 1.10.0 to the Project.toml. The error does not occur if StructTypes is not in the Project.

The following lint is displayed (see attached file)
image

However, it works fine, as Base is always importable in baremodules:

julia> using Foo

julia> Foo.Flags.flag
flag::Flag = 0
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