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

Debugger crashes with AssertionError: !(is_generated(method)) #3558

Open
elbert5770 opened this issue Mar 4, 2024 · 2 comments
Open

Debugger crashes with AssertionError: !(is_generated(method)) #3558

elbert5770 opened this issue Mar 4, 2024 · 2 comments

Comments

@elbert5770
Copy link

Stepping into code in the debugger. Consistently, when the debugger gets to Static.jl line 742 I get:

┌ Error: Some Julia code in the VS Code extension crashed
└ @ VSCodeDebugger c:\Users\elber\.vscode\extensions\julialang.language-julia-1.73.2\scripts\error_handler.jl:15
ERROR: AssertionError: !(is_generated(method))
Stacktrace:
 [1] compute_corrected_linerange(method::Method)
   @ VSCodeDebugger.JuliaInterpreter c:\Users\elber\.vscode\extensions\julialang.language-julia-1.73.2\scripts\packages\JuliaInterpreter\src\utils.jl:378
 [2] scopes_request(conn::VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, state::VSCodeDebugger.DebugAdapter.DebuggerState, params::VSCodeDebugger.DebugAdapter.ScopesArguments)
   @ VSCodeDebugger.DebugAdapter c:\Users\elber\.vscode\extensions\julialang.language-julia-1.73.2\scripts\packages\DebugAdapter\src\debugger_requests.jl:561
 [3] (::VSCodeDebugger.DebugAdapter.var"#129#155"{VSCodeDebugger.DebugAdapter.DebuggerState})(conn::VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::VSCodeDebugger.DebugAdapter.ScopesArguments)
   @ VSCodeDebugger.DebugAdapter c:\Users\elber\.vscode\extensions\julialang.language-julia-1.73.2\scripts\packages\DebugAdapter\src\packagedef.jl:56
 [4] dispatch_msg(x::VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::VSCodeDebugger.JSONRPC.MsgDispatcher, msg::Dict{String, Any})
   @ VSCodeDebugger.JSONRPC c:\Users\elber\.vscode\extensions\julialang.language-julia-1.73.2\scripts\packages\JSONRPC\src\typed.jl:67
 [5] (::VSCodeDebugger.DebugAdapter.var"#146#172"{VSCodeDebugger.var"#3#4"{Tuple{String, String}}, VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, VSCodeDebugger.JSONRPC.MsgDispatcher})()
   @ VSCodeDebugger.DebugAdapter c:\Users\elber\.vscode\extensions\julialang.language-julia-1.73.2\scripts\packages\DebugAdapter\src\packagedef.jl:76

 *  The terminal process "C:\Users\elber\AppData\Local\Programs\Julia-1.10.0\bin\julia.exe '--color=yes', '--startup-file=no', '--history-file=no', '--project=c:\Users\elber\Documents\Julia\PETab', 'c:\Users\elber\.vscode\extensions\julialang.language-julia-1.73.2\scripts\debugger\run_debugger.jl', '\\.\pipe\vsc-jl-dbg-573050b1-93e2-4f14-a17f-d7ef7dc42933', '\\.\pipe\vsc-jl-cr-0d5994d5-4bf6-4091-b569-8faea7241eb7'" terminated with exit code: 1. 
@tinyko
Copy link

tinyko commented Mar 5, 2024

Got same issue while debug step into bool.jl:35 with julia-1.10.2+0.x64.linux.gnu

┌ Error: Some Julia code in the VS Code extension crashed
└ @ VSCodeDebugger ~/.vscode-server/extensions/julialang.language-julia-1.73.2/scripts/error_handler.jl:15
ERROR: MethodError: no method matching getindex(::Nothing, ::Int64)

I downgrade to julia-1.10.1+0.x64.linux.gnu and fixed

@stprior
Copy link

stprior commented Mar 15, 2024

I'm getting the same exception as @tinyko but I don't think it is the same as the original mentioned by @elbert5770. It is also mentioned in a thread on discourse - https://discourse.julialang.org/t/vscode-debug-crash-with-1-10-2/111501/2

Should a separate issue be raised?

Full stacktrace I received is


┌ Error: Some Julia code in the VS Code extension crashed
└ @ VSCodeDebugger ~/.vscode-server/extensions/julialang.language-julia-1.75.2/scripts/error_handler.jl:15
ERROR: MethodError: no method matching getindex(::Nothing, ::Int64)
Stacktrace:
 [1] stack_trace_request(conn::VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, state::VSCodeDebugger.DebugAdapter.DebuggerState, params::VSCodeDebugger.DebugAdapter.StackTraceArguments)
   @ VSCodeDebugger.DebugAdapter ~/.vscode-server/extensions/julialang.language-julia-1.75.2/scripts/packages/DebugAdapter/src/debugger_requests.jl:403
 [2] (::VSCodeDebugger.DebugAdapter.var"#128#154"{VSCodeDebugger.DebugAdapter.DebuggerState})(conn::VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::VSCodeDebugger.DebugAdapter.StackTraceArguments)
   @ VSCodeDebugger.DebugAdapter ~/.vscode-server/extensions/julialang.language-julia-1.75.2/scripts/packages/DebugAdapter/src/packagedef.jl:55
 [3] dispatch_msg(x::VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::VSCodeDebugger.JSONRPC.MsgDispatcher, msg::Dict{String, Any})
   @ VSCodeDebugger.JSONRPC ~/.vscode-server/extensions/julialang.language-julia-1.75.2/scripts/packages/JSONRPC/src/typed.jl:67
 [4] (::VSCodeDebugger.DebugAdapter.var"#146#172"{VSCodeDebugger.var"#3#4"{Tuple{String, String}}, VSCodeDebugger.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, VSCodeDebugger.JSONRPC.MsgDispatcher})()
   @ VSCodeDebugger.DebugAdapter ~/.vscode-server/extensions/julialang.language-julia-1.75.2/scripts/packages/DebugAdapter/src/packagedef.jl:76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants