-
Notifications
You must be signed in to change notification settings - Fork 35
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
Can not step into body of @error
because "UndefVarError: REPL[1] not defined"
#535
Labels
bug
Something isn't working
Comments
The following diff seems to fix it:
@@ -132,6 +132,7 @@ function resolvefc(frame, @nospecialize(expr))
error("unexpected ccall to ", expr)
end
+maybe_quote(x) = isa(x, Symbol) ? QuoteNode(x) : x
function collect_args(@nospecialize(recurse), frame::Frame, call_expr::Expr; isfc::Bool=false)
args = frame.framedata.callargs
resize!(args, length(call_expr.args))
@@ -141,7 +142,7 @@ function collect_args(@nospecialize(recurse), frame::Frame, call_expr::Expr; isf
if isexpr(call_expr.args[i], :call)
args[i] = lookup_or_eval(recurse, frame, call_expr.args[i])
else
- args[i] = @lookup(mod, frame, call_expr.args[i])
+ args[i] = @lookup(mod, frame, maybe_quote(call_expr.args[i]))
end
end
return args |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MWE:
I expect it to log some message instead of crashing.
The issue is identical to #441, but since I am using 0.9.13, it should have already been fixed.
The text was updated successfully, but these errors were encountered: