LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

More helpful error message?

Open ParadaCarleton opened this issue 2 years ago • 0 comments

So, I got this when trying to @enter a function:

ERROR: InvalidStateException: Channel is closed.
Stacktrace:
 [1] check_channel_state
   @ ./channels.jl:174 [inlined]
 [2] put!
   @ ./channels.jl:319 [inlined]
 [3] send_notification(x::VSCodeServer.JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, method::String, params::NamedTuple{(:code, :filename), Tuple{String, String}})
   @ VSCodeServer.JSONRPC ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/JSONRPC/src/core.jl:167
 [4] top-level scope
   @ REPL[146]:1

I also got this error:

Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.

Restarting the REPL seemed to fix it, but I'm not sure if this is the best course of action in general. If so, maybe the error should suggest this?

ParadaCarleton avatar Dec 12 '22 19:12 ParadaCarleton