VS Code: Julia Language Server crash - Julia 1.9.1

Hello,

First time I’ve encountered this issue running Julia on WSL2.

Julia Version 1.9.1
Commit 147bdf428cd (2023-06-07 08:27 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 12 virtual cores
WSL version: 1.3.11.0
Kernel version: 5.15.90.2-3
WSLg version: 1.0.54
MSRDC version: 1.2.4240
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25880.1000-230602-1350.main
Windows version: 10.0.22631.1972

The JLS was running fine, as usual, then it suddenly crashed and a restart attempt gave the following error messages.

  Activating project at `~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.9`
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/audrius/.vscode-server/data/User/globalStorage/julialang.language-julia/symbolstorev5'.
[ Info: Starting LS at 1688468233
[ Info: All cache files downloaded.
[ Info: Indexing LibSSH2_jll...
[ Info: Indexing SuiteSparse_jll...
[ Info: Processing MbedTLS_jll...
[ Info: Loading LibSSH2_jll from cache...
[ Info: Loading MbedTLS_jll from cache...
[ Info: Loading Libdl from cache...
[ Info: Loading Artifacts from cache...
[ Info: Loading Statistics from cache... (7%)
┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/error_handler.jl:15
ERROR: StackOverflowError:
Stacktrace:
  [1] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink})
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:105
  [2] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink}) (repeats 3582 times)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:123
  [3] textDocument_documentLink_request
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:101 [inlined]
  [4] (::LanguageServer.var"#111#112"{typeof(LanguageServer.textDocument_documentLink_request), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DocumentLinkParams)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:267
  [5] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/JSONRPC/src/typed.jl:67
  [6] run(server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:387
  [7] top-level scope
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/languageserver/main.jl:104
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
  [9] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:307
 [10] _start()
    @ Base ./client.jl:522
[ Info: Loading LinearAlgebra from cache... (7%)
[ Info: Loading libblastrampoline_jll from cache... (7%)
[ Info: Loading OpenBLAS_jll from cache... (7%)
[ Info: Loading CompilerSupportLibraries_jll from cache... (7%)
[ Info: Loading SparseArrays from cache... (7%)
[ Info: Loading Serialization from cache... (7%)
[ Info: Loading Random from cache... (7%)
[ Info: Loading SHA from cache... (7%)
[ Info: Loading SuiteSparse_jll from cache... (7%)
[ Info: Loading Pkg from cache... (7%)
[ Info: Loading Downloads from cache... (7%)
[ Info: Loading LibCURL from cache... (7%)
[ Info: Loading MozillaCACerts_jll from cache... (7%)
[ Info: Loading LibCURL_jll from cache... (7%)
[ Info: Loading nghttp2_jll from cache... (7%)
[ Info: Loading Zlib_jll from cache... (7%)
[ Info: Loading NetworkOptions from cache... (7%)
[ Info: Loading FileWatching from cache... (7%)
[ Info: Loading ArgTools from cache... (7%)
[ Info: Loading Tar from cache... (7%)
[ Info: Loading UUIDs from cache... (7%)
[ Info: Loading REPL from cache... (7%)
[ Info: Loading InteractiveUtils from cache... (7%)
[ Info: Loading Markdown from cache... (7%)
[ Info: Loading Base64 from cache... (7%)
[ Info: Loading Sockets from cache... (7%)
[ Info: Loading Unicode from cache... (7%)
[ Info: Loading LibGit2 from cache... (7%)
[ Info: Loading Printf from cache... (7%)
[ Info: Loading Dates from cache... (7%)
[ Info: Loading p7zip_jll from cache... (7%)
[ Info: Loading Logging from cache... (7%)
[ Info: Loading TOML from cache... (7%)
[ Info: Loading ColorSchemes from cache... (14%)
[ Info: Loading PrecompileTools from cache... (14%)
[ Info: Loading Preferences from cache... (14%)
[ Info: Loading ColorTypes from cache... (14%)
[ Info: Loading FixedPointNumbers from cache... (14%)
[ Info: Loading ColorVectorSpace from cache... (14%)
[ Info: Loading TensorCore from cache... (14%)
[ Info: Loading SpecialFunctions from cache... (14%)
[ Info: Loading IrrationalConstants from cache... (14%)
[ Info: Loading LogExpFunctions from cache... (14%)
[ Info: Loading DocStringExtensions from cache... (14%)
[ Info: Loading OpenLibm_jll from cache... (14%)
[ Info: Loading OpenSpecFun_jll from cache... (14%)
[ Info: Loading JLLWrappers from cache... (14%)
[ Info: Loading Colors from cache... (14%)
[ Info: Loading Reexport from cache... (14%)
[ Info: Loading Symbolics from cache... (21%)
[ Info: Loading LambertW from cache... (21%)
[ Info: Loading Distributions from cache... (21%)
[ Info: Loading PDMats from cache... (21%)
[ Info: Loading SuiteSparse from cache... (21%)
[ Info: Loading Test from cache... (21%)
[ Info: Loading StatsBase from cache... (21%)
[ Info: Loading SortingAlgorithms from cache... (21%)
[ Info: Loading DataStructures from cache... (21%)
[ Info: Loading Compat from cache... (21%)
[ Info: Loading OrderedCollections from cache... (21%)
[ Info: Loading Missings from cache... (21%)
[ Info: Loading DataAPI from cache... (21%)
[ Info: Loading StatsAPI from cache... (21%)
[ Info: Loading StatsFuns from cache... (21%)
[ Info: Loading HypergeometricFunctions from cache... (21%)
[ Info: Loading DualNumbers from cache... (21%)
[ Info: Loading Calculus from cache... (21%)
[ Info: Loading NaNMath from cache... (21%)
[ Info: Loading Rmath from cache... (21%)
[ Info: Loading Rmath_jll from cache... (21%)
[ Info: Loading QuadGK from cache... (21%)
[ Info: Loading FillArrays from cache... (21%)
[ Info: Loading RuntimeGeneratedFunctions from cache... (21%)
[ Info: Loading ExprTools from cache... (21%)
[ Info: Loading ConstructionBase from cache... (21%)
[ Info: Loading DomainSets from cache... (21%)
[Info  - 6:57:31 AM] Connection to server got closed. Server will restart.
true
  Activating project at `~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.9`
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/audrius/.vscode-server/data/User/globalStorage/julialang.language-julia/symbolstorev5'.
[ Info: Starting LS at 1688468254
[ Info: All cache files downloaded.
[ Info: Loading LibSSH2_jll from cache...
[ Info: Loading MbedTLS_jll from cache...
[ Info: Loading Libdl from cache...
[ Info: Loading Artifacts from cache...
[ Info: Loading Statistics from cache... (7%)
┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/error_handler.jl:15
ERROR: StackOverflowError:
Stacktrace:
  [1] getindex(x::CSTParser.EXPR, i::Int64)
    @ CSTParser.Iterating ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:4
  [2] iterate
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:189 [inlined]
  [3] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink})
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:122
  [4] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink}) (repeats 3581 times)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:123
  [5] textDocument_documentLink_request
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:101 [inlined]
  [6] (::LanguageServer.var"#111#112"{typeof(LanguageServer.textDocument_documentLink_request), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DocumentLinkParams)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:267
  [7] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/JSONRPC/src/typed.jl:67
  [8] run(server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:387
  [9] top-level scope
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/languageserver/main.jl:104
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:307
 [12] _start()
    @ Base ./client.jl:522
[ Info: Loading LinearAlgebra from cache... (7%)
[ Info: Loading libblastrampoline_jll from cache... (7%)
[ Info: Loading OpenBLAS_jll from cache... (7%)
[ Info: Loading CompilerSupportLibraries_jll from cache... (7%)
[ Info: Loading SparseArrays from cache... (7%)
[ Info: Loading Serialization from cache... (7%)
[ Info: Loading Random from cache... (7%)
[ Info: Loading SHA from cache... (7%)
[ Info: Loading SuiteSparse_jll from cache... (7%)
[ Info: Loading Pkg from cache... (7%)
[ Info: Loading Downloads from cache... (7%)
[ Info: Loading LibCURL from cache... (7%)
[ Info: Loading MozillaCACerts_jll from cache... (7%)
[ Info: Loading LibCURL_jll from cache... (7%)
[ Info: Loading nghttp2_jll from cache... (7%)
[ Info: Loading Zlib_jll from cache... (7%)
[ Info: Loading NetworkOptions from cache... (7%)
[ Info: Loading FileWatching from cache... (7%)
[ Info: Loading ArgTools from cache... (7%)
[ Info: Loading Tar from cache... (7%)
[ Info: Loading UUIDs from cache... (7%)
[ Info: Loading REPL from cache... (7%)
[ Info: Loading InteractiveUtils from cache... (7%)
[ Info: Loading Markdown from cache... (7%)
[ Info: Loading Base64 from cache... (7%)
[ Info: Loading Sockets from cache... (7%)
[ Info: Loading Unicode from cache... (7%)
[ Info: Loading LibGit2 from cache... (7%)
[ Info: Loading Printf from cache... (7%)
[ Info: Loading Dates from cache... (7%)
[ Info: Loading p7zip_jll from cache... (7%)
[ Info: Loading Logging from cache... (7%)
[ Info: Loading TOML from cache... (7%)
[ Info: Loading ColorSchemes from cache... (14%)
[ Info: Loading PrecompileTools from cache... (14%)
[ Info: Loading Preferences from cache... (14%)
[ Info: Loading ColorTypes from cache... (14%)
[ Info: Loading FixedPointNumbers from cache... (14%)
[ Info: Loading ColorVectorSpace from cache... (14%)
[ Info: Loading TensorCore from cache... (14%)
[ Info: Loading SpecialFunctions from cache... (14%)
[ Info: Loading IrrationalConstants from cache... (14%)
[ Info: Loading LogExpFunctions from cache... (14%)
[ Info: Loading DocStringExtensions from cache... (14%)
[ Info: Loading OpenLibm_jll from cache... (14%)
[ Info: Loading OpenSpecFun_jll from cache... (14%)
[ Info: Loading JLLWrappers from cache... (14%)
[ Info: Loading Colors from cache... (14%)
[ Info: Loading Reexport from cache... (14%)
[ Info: Loading Symbolics from cache... (21%)
[ Info: Loading LambertW from cache... (21%)
[ Info: Loading Distributions from cache... (21%)
[ Info: Loading PDMats from cache... (21%)
[ Info: Loading SuiteSparse from cache... (21%)
[ Info: Loading Test from cache... (21%)
[ Info: Loading StatsBase from cache... (21%)
[ Info: Loading SortingAlgorithms from cache... (21%)
[ Info: Loading DataStructures from cache... (21%)
[ Info: Loading Compat from cache... (21%)
[ Info: Loading OrderedCollections from cache... (21%)
[ Info: Loading Missings from cache... (21%)
[ Info: Loading DataAPI from cache... (21%)
[ Info: Loading StatsAPI from cache... (21%)
[ Info: Loading StatsFuns from cache... (21%)
[ Info: Loading HypergeometricFunctions from cache... (21%)
[ Info: Loading DualNumbers from cache... (21%)
[ Info: Loading Calculus from cache... (21%)
[ Info: Loading NaNMath from cache... (21%)
[Info  - 6:57:52 AM] Connection to server got closed. Server will restart.
true
  Activating project at `~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.9`
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/audrius/.vscode-server/data/User/globalStorage/julialang.language-julia/symbolstorev5'.
[ Info: Starting LS at 1688468274
[ Info: All cache files downloaded.
[ Info: Loading LibSSH2_jll from cache...
[ Info: Loading MbedTLS_jll from cache...
[ Info: Loading Libdl from cache...
[ Info: Loading Artifacts from cache...
[ Info: Loading Statistics from cache... (7%)
┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/error_handler.jl:15
ERROR: StackOverflowError:
Stacktrace:
  [1] getindex(x::CSTParser.EXPR, i::Int64)
    @ CSTParser.Iterating ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:4
  [2] iterate
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:189 [inlined]
  [3] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink})
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:122
  [4] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink}) (repeats 3581 times)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:123
  [5] textDocument_documentLink_request
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:101 [inlined]
  [6] (::LanguageServer.var"#111#112"{typeof(LanguageServer.textDocument_documentLink_request), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DocumentLinkParams)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:267
  [7] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/JSONRPC/src/typed.jl:67
  [8] run(server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:387
  [9] top-level scope
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/languageserver/main.jl:104
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:307
 [12] _start()
    @ Base ./client.jl:522
[ Info: Loading LinearAlgebra from cache... (7%)
[ Info: Loading libblastrampoline_jll from cache... (7%)
[ Info: Loading OpenBLAS_jll from cache... (7%)
[ Info: Loading CompilerSupportLibraries_jll from cache... (7%)
[ Info: Loading SparseArrays from cache... (7%)
[ Info: Loading Serialization from cache... (7%)
[ Info: Loading Random from cache... (7%)
[ Info: Loading SHA from cache... (7%)
[ Info: Loading SuiteSparse_jll from cache... (7%)
[ Info: Loading Pkg from cache... (7%)
[ Info: Loading Downloads from cache... (7%)
[ Info: Loading LibCURL from cache... (7%)
[ Info: Loading MozillaCACerts_jll from cache... (7%)
[ Info: Loading LibCURL_jll from cache... (7%)
[ Info: Loading nghttp2_jll from cache... (7%)
[ Info: Loading Zlib_jll from cache... (7%)
[ Info: Loading NetworkOptions from cache... (7%)
[ Info: Loading FileWatching from cache... (7%)
[ Info: Loading ArgTools from cache... (7%)
[ Info: Loading Tar from cache... (7%)
[ Info: Loading UUIDs from cache... (7%)
[ Info: Loading REPL from cache... (7%)
[ Info: Loading InteractiveUtils from cache... (7%)
[ Info: Loading Markdown from cache... (7%)
[ Info: Loading Base64 from cache... (7%)
[ Info: Loading Sockets from cache... (7%)
[ Info: Loading Unicode from cache... (7%)
[ Info: Loading LibGit2 from cache... (7%)
[ Info: Loading Printf from cache... (7%)
[ Info: Loading Dates from cache... (7%)
[ Info: Loading p7zip_jll from cache... (7%)
[ Info: Loading Logging from cache... (7%)
[ Info: Loading TOML from cache... (7%)
[ Info: Loading ColorSchemes from cache... (14%)
[ Info: Loading PrecompileTools from cache... (14%)
[ Info: Loading Preferences from cache... (14%)
[ Info: Loading ColorTypes from cache... (14%)
[ Info: Loading FixedPointNumbers from cache... (14%)
[ Info: Loading ColorVectorSpace from cache... (14%)
[ Info: Loading TensorCore from cache... (14%)
[ Info: Loading SpecialFunctions from cache... (14%)
[ Info: Loading IrrationalConstants from cache... (14%)
[ Info: Loading LogExpFunctions from cache... (14%)
[ Info: Loading DocStringExtensions from cache... (14%)
[ Info: Loading OpenLibm_jll from cache... (14%)
[ Info: Loading OpenSpecFun_jll from cache... (14%)
[ Info: Loading JLLWrappers from cache... (14%)
[ Info: Loading Colors from cache... (14%)
[ Info: Loading Reexport from cache... (14%)
[ Info: Loading Symbolics from cache... (21%)
[ Info: Loading LambertW from cache... (21%)
[ Info: Loading Distributions from cache... (21%)
[ Info: Loading PDMats from cache... (21%)
[ Info: Loading SuiteSparse from cache... (21%)
[ Info: Loading Test from cache... (21%)
[ Info: Loading StatsBase from cache... (21%)
[ Info: Loading SortingAlgorithms from cache... (21%)
[ Info: Loading DataStructures from cache... (21%)
[ Info: Loading Compat from cache... (21%)
[ Info: Loading OrderedCollections from cache... (21%)
[ Info: Loading Missings from cache... (21%)
[ Info: Loading DataAPI from cache... (21%)
[ Info: Loading StatsAPI from cache... (21%)
[ Info: Loading StatsFuns from cache... (21%)
[Info  - 6:58:12 AM] Connection to server got closed. Server will restart.
true
  Activating project at `~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.9`
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/audrius/.vscode-server/data/User/globalStorage/julialang.language-julia/symbolstorev5'.
[ Info: Starting LS at 1688468294
[ Info: All cache files downloaded.
[ Info: Loading LibSSH2_jll from cache...
[ Info: Loading MbedTLS_jll from cache...
[ Info: Loading Libdl from cache...
[ Info: Loading Artifacts from cache...
[ Info: Loading Statistics from cache... (7%)
┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/error_handler.jl:15
ERROR: StackOverflowError:
Stacktrace:
  [1] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink})
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:105
  [2] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink}) (repeats 3582 times)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:123
  [3] textDocument_documentLink_request
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:101 [inlined]
  [4] (::LanguageServer.var"#111#112"{typeof(LanguageServer.textDocument_documentLink_request), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DocumentLinkParams)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:267
  [5] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/JSONRPC/src/typed.jl:67
  [6] run(server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:387
  [7] top-level scope
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/languageserver/main.jl:104
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
  [9] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:307
 [10] _start()
    @ Base ./client.jl:522
[ Info: Loading LinearAlgebra from cache... (7%)
[ Info: Loading libblastrampoline_jll from cache... (7%)
[ Info: Loading OpenBLAS_jll from cache... (7%)
[ Info: Loading CompilerSupportLibraries_jll from cache... (7%)
[ Info: Loading SparseArrays from cache... (7%)
[ Info: Loading Serialization from cache... (7%)
[ Info: Loading Random from cache... (7%)
[ Info: Loading SHA from cache... (7%)
[ Info: Loading SuiteSparse_jll from cache... (7%)
[ Info: Loading Pkg from cache... (7%)
[ Info: Loading Downloads from cache... (7%)
[ Info: Loading LibCURL from cache... (7%)
[ Info: Loading MozillaCACerts_jll from cache... (7%)
[ Info: Loading LibCURL_jll from cache... (7%)
[ Info: Loading nghttp2_jll from cache... (7%)
[ Info: Loading Zlib_jll from cache... (7%)
[ Info: Loading NetworkOptions from cache... (7%)
[ Info: Loading FileWatching from cache... (7%)
[ Info: Loading ArgTools from cache... (7%)
[ Info: Loading Tar from cache... (7%)
[ Info: Loading UUIDs from cache... (7%)
[ Info: Loading REPL from cache... (7%)
[ Info: Loading InteractiveUtils from cache... (7%)
[ Info: Loading Markdown from cache... (7%)
[ Info: Loading Base64 from cache... (7%)
[ Info: Loading Sockets from cache... (7%)
[ Info: Loading Unicode from cache... (7%)
[ Info: Loading LibGit2 from cache... (7%)
[ Info: Loading Printf from cache... (7%)
[ Info: Loading Dates from cache... (7%)
[ Info: Loading p7zip_jll from cache... (7%)
[ Info: Loading Logging from cache... (7%)
[ Info: Loading TOML from cache... (7%)
[ Info: Loading ColorSchemes from cache... (14%)
[ Info: Loading PrecompileTools from cache... (14%)
[ Info: Loading Preferences from cache... (14%)
[ Info: Loading ColorTypes from cache... (14%)
[ Info: Loading FixedPointNumbers from cache... (14%)
[ Info: Loading ColorVectorSpace from cache... (14%)
[ Info: Loading TensorCore from cache... (14%)
[ Info: Loading SpecialFunctions from cache... (14%)
[ Info: Loading IrrationalConstants from cache... (14%)
[ Info: Loading LogExpFunctions from cache... (14%)
[ Info: Loading DocStringExtensions from cache... (14%)
[ Info: Loading OpenLibm_jll from cache... (14%)
[ Info: Loading OpenSpecFun_jll from cache... (14%)
[ Info: Loading JLLWrappers from cache... (14%)
[ Info: Loading Colors from cache... (14%)
[ Info: Loading Reexport from cache... (14%)
[ Info: Loading Symbolics from cache... (21%)
[ Info: Loading LambertW from cache... (21%)
[ Info: Loading Distributions from cache... (21%)
[ Info: Loading PDMats from cache... (21%)
[ Info: Loading SuiteSparse from cache... (21%)
[ Info: Loading Test from cache... (21%)
[ Info: Loading StatsBase from cache... (21%)
[ Info: Loading SortingAlgorithms from cache... (21%)
[ Info: Loading DataStructures from cache... (21%)
[ Info: Loading Compat from cache... (21%)
[ Info: Loading OrderedCollections from cache... (21%)
[ Info: Loading Missings from cache... (21%)
[ Info: Loading DataAPI from cache... (21%)
[ Info: Loading StatsAPI from cache... (21%)
[ Info: Loading StatsFuns from cache... (21%)
[Info  - 6:58:32 AM] Connection to server got closed. Server will restart.
true
  Activating project at `~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/environments/languageserver/v1.9`
[ Info: Starting the Julia Language Server
[ Info: Symbol server store is at '/home/audrius/.vscode-server/data/User/globalStorage/julialang.language-julia/symbolstorev5'.
[ Info: Starting LS at 1688468314
[ Info: All cache files downloaded.
[ Info: Loading LibSSH2_jll from cache...
[ Info: Loading MbedTLS_jll from cache...
[ Info: Loading Libdl from cache...
[ Info: Loading Artifacts from cache...
[ Info: Loading Statistics from cache... (7%)
┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/error_handler.jl:15
ERROR: StackOverflowError:
Stacktrace:
  [1] _call(x::CSTParser.EXPR, i::Int64)
    @ CSTParser.Iterating ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:477
  [2] _getindex(x::CSTParser.EXPR, i::Int64)
    @ CSTParser.Iterating ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:29
  [3] getindex(x::CSTParser.EXPR, i::Int64)
    @ CSTParser.Iterating ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:6
  [4] iterate
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/CSTParser/src/iterate.jl:189 [inlined]
  [5] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink})
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:122
  [6] find_document_links(x::CSTParser.EXPR, doc::LanguageServer.Document, offset::Int64, links::Vector{LanguageServer.DocumentLink}) (repeats 3581 times)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:123
  [7] textDocument_documentLink_request
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/requests/misc.jl:101 [inlined]
  [8] (::LanguageServer.var"#111#112"{typeof(LanguageServer.textDocument_documentLink_request), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DocumentLinkParams)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:267
  [9] dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})
    @ JSONRPC ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/JSONRPC/src/typed.jl:67
 [10] run(server::LanguageServerInstance)
    @ LanguageServer ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/packages/LanguageServer/src/languageserverinstance.jl:387
 [11] top-level scope
    @ ~/.vscode-server/extensions/julialang.language-julia-1.47.2/scripts/languageserver/main.jl:104
 [12] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
 [13] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:307
 [14] _start()
    @ Base ./[ Info: Loading LinearAlgebra from cache... (7%)
client.jl:522
[ Info: Loading libblastrampoline_jll from cache... (7%)
[ Info: Loading OpenBLAS_jll from cache... (7%)
[ Info: Loading CompilerSupportLibraries_jll from cache... (7%)
[ Info: Loading SparseArrays from cache... (7%)
[ Info: Loading Serialization from cache... (7%)
[ Info: Loading Random from cache... (7%)
[ Info: Loading SHA from cache... (7%)
[ Info: Loading SuiteSparse_jll from cache... (7%)
[ Info: Loading Pkg from cache... (7%)
[ Info: Loading Downloads from cache... (7%)
[ Info: Loading LibCURL from cache... (7%)
[ Info: Loading MozillaCACerts_jll from cache... (7%)
[ Info: Loading LibCURL_jll from cache... (7%)
[ Info: Loading nghttp2_jll from cache... (7%)
[ Info: Loading Zlib_jll from cache... (7%)
[ Info: Loading NetworkOptions from cache... (7%)
[ Info: Loading FileWatching from cache... (7%)
[ Info: Loading ArgTools from cache... (7%)
[ Info: Loading Tar from cache... (7%)
[ Info: Loading UUIDs from cache... (7%)
[ Info: Loading REPL from cache... (7%)
[ Info: Loading InteractiveUtils from cache... (7%)
[ Info: Loading Markdown from cache... (7%)
[ Info: Loading Base64 from cache... (7%)
[ Info: Loading Sockets from cache... (7%)
[ Info: Loading Unicode from cache... (7%)
[ Info: Loading LibGit2 from cache... (7%)
[ Info: Loading Printf from cache... (7%)
[ Info: Loading Dates from cache... (7%)
[ Info: Loading p7zip_jll from cache... (7%)
[ Info: Loading Logging from cache... (7%)
[ Info: Loading TOML from cache... (7%)
[ Info: Loading ColorSchemes from cache... (14%)
[ Info: Loading PrecompileTools from cache... (14%)
[ Info: Loading Preferences from cache... (14%)
[ Info: Loading ColorTypes from cache... (14%)
[ Info: Loading FixedPointNumbers from cache... (14%)
[ Info: Loading ColorVectorSpace from cache... (14%)
[ Info: Loading TensorCore from cache... (14%)
[ Info: Loading SpecialFunctions from cache... (14%)
[ Info: Loading IrrationalConstants from cache... (14%)
[ Info: Loading LogExpFunctions from cache... (14%)
[ Info: Loading DocStringExtensions from cache... (14%)
[ Info: Loading OpenLibm_jll from cache... (14%)
[ Info: Loading OpenSpecFun_jll from cache... (14%)
[ Info: Loading JLLWrappers from cache... (14%)
[ Info: Loading Colors from cache... (14%)
[ Info: Loading Reexport from cache... (14%)
[ Info: Loading Symbolics from cache... (21%)
[ Info: Loading LambertW from cache... (21%)
[ Info: Loading Distributions from cache... (21%)
[ Info: Loading PDMats from cache... (21%)
[ Info: Loading SuiteSparse from cache... (21%)
[ Info: Loading Test from cache... (21%)
[ Info: Loading StatsBase from cache... (21%)
[ Info: Loading SortingAlgorithms from cache... (21%)
[ Info: Loading DataStructures from cache... (21%)
[ Info: Loading Compat from cache... (21%)
[ Info: Loading OrderedCollections from cache... (21%)
[ Info: Loading Missings from cache... (21%)
[ Info: Loading DataAPI from cache... (21%)
[ Info: Loading StatsAPI from cache... (21%)
[ Info: Loading StatsFuns from cache... (21%)
[ Info: Loading HypergeometricFunctions from cache... (21%)
[ Info: Loading DualNumbers from cache... (21%)
[Error - 6:58:52 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.

Source: Julia Extension

Reinstalling Julia 1.9.1 and the VS Code Julia Extension did not solve the problem.

Also, Julia 1.9.1 loads as expected on Windows 11.

Do you have a file with very deeply nested syntax constructs open in your workspace?

Yes, that does seem to have been the case.

Thank you.

Any chance you can share that? I’m curious what syntax is that deeply nested; we should probably move to a iterative instead of recursive algorithm anyways.

Sorry, that code was an method in my project that proved to be a dead end, so I deleted and replaced it before reading your message.

If I encounter this issue again in Julia 1.9.2 or future versions, I’ll keep your request in mind and save and share the code.