-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
REPL completion error: UndefVarError #27184
Comments
Keno
added
bug
Indicates an unexpected problem or unintended behavior
REPL
Julia's REPL (Read Eval Print Loop)
labels
May 21, 2018
This seems to be fixed. Maybe by #26930 ? |
Yes. It has been fixed. [I don't know when]. |
This does not seem to be fixed yet:
|
Error is thrown from julia> Meta.lower(Main, :(@noexist))
ERROR: LoadError: UndefVarError: @noexist not defined
Stacktrace:
[1] top-level scope
[2] lower(::Module, ::Any) at ./meta.jl:68
[3] top-level scope at none:0
in expression starting at REPL[9]:1 Should we bail on macros? diff --git a/stdlib/REPL/src/REPLCompletions.jl b/stdlib/REPL/src/REPLCompletions.jl
index fc84bd2b8d..f9dc16805e 100644
--- a/stdlib/REPL/src/REPLCompletions.jl
+++ b/stdlib/REPL/src/REPLCompletions.jl
@@ -419,6 +419,7 @@ function get_type(sym::Expr, fn::Module)
# try to analyze nests of calls. if this fails, try using the expanded form.
val, found = try_get_type(sym, fn)
found && return val, found
+ sym.head == :macrocall && return (Any, false)
return try_get_type(Meta.lower(fn, sym), fn)
end |
|
aviatesk
added a commit
to aviatesk/julia
that referenced
this issue
Apr 27, 2021
aviatesk
added a commit
to aviatesk/julia
that referenced
this issue
Apr 27, 2021
aviatesk
added a commit
to aviatesk/julia
that referenced
this issue
Apr 27, 2021
ElOceanografo
pushed a commit
to ElOceanografo/julia
that referenced
this issue
May 4, 2021
jarlebring
pushed a commit
to jarlebring/julia
that referenced
this issue
May 4, 2021
antoine-levitt
pushed a commit
to antoine-levitt/julia
that referenced
this issue
May 9, 2021
johanmon
pushed a commit
to johanmon/julia
that referenced
this issue
Jul 5, 2021
KristofferC
pushed a commit
that referenced
this issue
Nov 8, 2021
KristofferC
pushed a commit
that referenced
this issue
Nov 11, 2021
KristofferC
pushed a commit
that referenced
this issue
Nov 12, 2021
staticfloat
pushed a commit
that referenced
this issue
Dec 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open julia with REPL, type
@nonexist.
and hit Tab:The text was updated successfully, but these errors were encountered: