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

confusing error when Pkg is not imported but REPL mode has been used #55914

Closed
simeonschaub opened this issue Sep 28, 2024 · 0 comments · Fixed by #55932
Closed

confusing error when Pkg is not imported but REPL mode has been used #55914

simeonschaub opened this issue Sep 28, 2024 · 0 comments · Fixed by #55932

Comments

@simeonschaub
Copy link
Member

Although Pkg is loaded, it's not accessible from Main here, so the hint a global variable of this name also exists in Pkg. seems confusing here:

(@v1.12) pkg> instantiate

julia> Pkg
ERROR: UndefVarError: `Pkg` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Hint: a global variable of this name also exists in Pkg.
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

Successfully merging a pull request may close this issue.

1 participant