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

Julia VS Code extension crash: BoundsError: attempt to access 2-element Vector{CSTParser.EXPR} at index [3] #390

Open
nsajko opened this issue Jun 16, 2024 · 0 comments

Comments

@nsajko
Copy link
Contributor

nsajko commented Jun 16, 2024

Julia extension version 1.79.2.

Not sure if this is helpful, but here's the log:

[ Info: Done loading ZygoteRules from cache... (80%)
┌ Warning: GPUArrays not stored on disc
└ @ SymbolServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/SymbolServer/src/SymbolServer.jl:356
[ Info: Loaded all packages into cache in 1.3s (100%)
============== Startup timings ==============
       0.0 - LS startup started (0.0s since last event)
  0.011445 - connection established (0.011445s since last event)
   0.20895 - (async) listening to client events (0.1975s since last event)
    0.2773 - (async) listening to symbol server events (0.068354s since last event)
   0.27734 - starting combined listener (4.1008e-5s since last event)
   0.34283 - LSP/initialize (0.06549s since last event)
     2.529 - LSP/initialized (2.1862s since last event)
    6.4105 - LSP/julia/getModuleAt (3.8815s since last event)
    6.6388 - LSP/julia/getModuleAt (0.22828s since last event)
    6.6389 - LSP/julia/getModuleAt (0.00010586s since last event)
    6.6389 - LSP/julia/getModuleAt (2.3127e-5s since last event)
    6.6389 - LSP/julia/getModuleAt (1.8835e-5s since last event)
    6.6389 - LSP/julia/getModuleAt (1.812e-5s since last event)
    6.6389 - LSP/julia/getModuleAt (1.5974e-5s since last event)
     6.639 - LSP/textDocument/didOpen (1.5974e-5s since last event)
    6.9866 - LSP/textDocument/documentSymbol (0.34759s since last event)
    7.6369 - LSP/textDocument/codeAction (0.65031s since last event)
    8.3833 - LSP/textDocument/documentLink (0.74649s since last event)
    8.6102 - LSP/textDocument/inlayHint (0.22681s since last event)
    8.9591 - LSP/textDocument/documentSymbol (0.34898s since last event)
    8.9629 - LSP/textDocument/didChange (0.0037799s since last event)
    9.6771 - LSP/$/cancelRequest (0.71415s since last event)
     9.705 - LSP/$/cancelRequest (0.027961s since last event)
    9.7051 - LSP/julia/getModuleAt (3.6001e-5s since last event)
     9.754 - LSP/textDocument/completion (0.048914s since last event)
    11.541 - LSP/$/cancelRequest (1.7872s since last event)
    11.541 - LSP/textDocument/didChange (3.2902e-5s since last event)
    11.548 - LSP/julia/getModuleAt (0.007122s since last event)
    11.548 - LSP/textDocument/didChange (8.6069e-5s since last event)
    11.555 - LSP/julia/getModuleAt (0.0064268s since last event)
    11.555 - LSP/textDocument/codeAction (9.799e-5s since last event)
    11.555 - LSP/textDocument/documentSymbol (9.8228e-5s since last event)
    11.559 - LSP/textDocument/documentLink (0.0036669s since last event)
     11.56 - LSP/textDocument/inlayHint (0.001195s since last event)
    11.561 - LSP/textDocument/codeAction (0.0014791s since last event)
    11.562 - LSP/$/cancelRequest (0.00018287s since last event)
    11.562 - LSP/$/cancelRequest (1.4067e-5s since last event)
    11.562 - LSP/textDocument/documentSymbol (2.861e-6s since last event)
    11.566 - LSP/textDocument/didSave (0.003906s since last event)
    11.644 - LSP/workspace/didChangeWatchedFiles (0.078156s since last event)
    12.167 - LSP/textDocument/codeAction (0.52376s since last event)
      25.5 - symbols received (13.332s since last event)
    25.505 - extended methods computed (0.004663s since last event)
    25.505 - project deps computed (2.0981e-5s since last event)
    25.505 - env map computed (2.861e-6s since last event)
     25.51 - initial lint done (0.005851s since last event)
=============================================

┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/error_handler.jl:15
ERROR: BoundsError: attempt to access 2-element Vector{CSTParser.EXPR} at index [3]
Stacktrace:
  [1] getindex
    @ ./essentials.jl:13 [inlined]
  [2] unwrap_nospecialize(x::CSTParser.EXPR)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:596
  [3] func_nargs(x::CSTParser.EXPR)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:165
  [4] sig_match_any(func::CSTParser.EXPR, x::CSTParser.EXPR, call_counts::Tuple{Int64, Int64, Vector{Symbol}}, tls::StaticLint.Scope, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:327
  [5] sig_match_any(func_ref::StaticLint.Binding, x::CSTParser.EXPR, call_counts::Tuple{Int64, Int64, Vector{Symbol}}, tls::StaticLint.Scope, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:320
  [6] check_call(x::CSTParser.EXPR, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:299
  [7] check_all(x::CSTParser.EXPR, opts::StaticLint.LintOptions, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:104
  [8] check_all(x::CSTParser.EXPR, opts::StaticLint.LintOptions, env::StaticLint.ExternalEnv) (repeats 4 times)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:121
  [9] lint!(doc::LanguageServer.Document, server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/staticlint.jl:75
 [10] textDocument_didChange_notification(params::LanguageServer.DidChangeTextDocumentParams, server::LanguageServerInstance, conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/requests/textdocument.jl:106
 [11] (::LanguageServer.var"#116#117"{typeof(LanguageServer.textDocument_didChange_notification), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DidChangeTextDocumentParams)
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/languageserverinstance.jl:273
 [12] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/JSONRPC/src/typed.jl:67
 [13] run(server::LanguageServerInstance; timings::Vector{Any})
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/languageserverinstance.jl:405
 [14] run(server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/languageserverinstance.jl:283
 [15] top-level scope
    @ ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/languageserver/main.jl:104
 [16] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
 [17] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:318
 [18] _start()
    @ Base ./client.jl:552
[Info  - 12:00:44 AM] Connection to server got closed. Server will restart.
true
[Error - 12:00:44 AM] Server process exited with code 1.
  Activating project at `~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/environments/languageserver/v1.10`
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/nsajko/.config/Code - OSS/User/globalStorage/julialang.language-julia/symbolstorev5'.
[ Info: Starting LS at 1718575246
[ Info: Downloading cache files... (0%)
┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/error_handler.jl:15
ERROR: BoundsError: attempt to access 2-element Vector{CSTParser.EXPR} at index [3]
Stacktrace:
  [1] getindex
    @ ./essentials.jl:13 [inlined]
  [2] unwrap_nospecialize(x::CSTParser.EXPR)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:596
  [3] func_nargs(x::CSTParser.EXPR)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:165
  [4] sig_match_any(func::CSTParser.EXPR, x::CSTParser.EXPR, call_counts::Tuple{Int64, Int64, Vector{Symbol}}, tls::StaticLint.Scope, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:327
  [5] sig_match_any(func_ref::StaticLint.Binding, x::CSTParser.EXPR, call_counts::Tuple{Int64, Int64, Vector{Symbol}}, tls::StaticLint.Scope, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:320
  [6] check_call(x::CSTParser.EXPR, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:299
  [7] check_all(x::CSTParser.EXPR, opts::StaticLint.LintOptions, env::StaticLint.ExternalEnv)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:104
  [8] check_all(x::CSTParser.EXPR, opts::StaticLint.LintOptions, env::StaticLint.ExternalEnv) (repeats 4 times)
    @ StaticLint ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/StaticLint/src/linting/checks.jl:121
  [9] lint!(doc::LanguageServer.Document, server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/staticlint.jl:75
 [10] textDocument_didChange_notification(params::LanguageServer.DidChangeTextDocumentParams, server::LanguageServerInstance, conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/requests/textdocument.jl:106
 [11] (::LanguageServer.var"#116#117"{typeof(LanguageServer.textDocument_didChange_notification), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DidChangeTextDocumentParams)
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/languageserverinstance.jl:273
 [12] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/JSONRPC/src/typed.jl:67
 [13] run(server::LanguageServerInstance; timings::Vector{Any})
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/languageserverinstance.jl:405
 [14] run(server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/packages/LanguageServer/src/languageserverinstance.jl:283
 [15] top-level scope
    @ ~/.vscode-oss/extensions/julialang.language-julia-1.79.2-universal/scripts/languageserver/main.jl:104
 [16] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
 [17] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:318
 [18] _start()
    @ Base ./client.jl:552
[Error - 12:01:00 AM] The Julia Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 12:01:00 AM] Server process exited with code 1.
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