elixir-lsp / vscode-elixir-ls

Elixir language support and debugger for VS Code, powered by ElixirLS.
https://marketplace.visualstudio.com/items?itemName=JakeBecker.elixir-ls
MIT License
545 stars 106 forks source link

ElixirLS does not working with a js error #434

Closed tomwang57 closed 2 months ago

tomwang57 commented 2 months ago

Environment

Elixir 1.15.6 (compiled with Erlang/OTP 24)

Error message from output

[Error - 13:56:13] Request textDocument/documentSymbol failed.
TypeError: Cannot read properties of undefined (reading 'range')
    at rn (/Users/57block/.vscode/extensions/jakebecker.elixir-ls-0.23.1/out/extension.js:54:72599)
    at h (/Users/57block/.vscode/extensions/jakebecker.elixir-ls-0.23.1/out/extension.js:54:46807)
    at Object.ZF [as map] (/Users/57block/.vscode/extensions/jakebecker.elixir-ls-0.23.1/out/extension.js:54:46893)
    at Object.In [as asSymbolInformations] (/Users/57block/.vscode/extensions/jakebecker.elixir-ls-0.23.1/out/extension.js:54:72226)
    at E (/Users/57block/.vscode/extensions/jakebecker.elixir-ls-0.23.1/out/extension.js:58:56336)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)
    at process.topLevelDomainCallback (node:domain:160:15)
    at process.callbackTrampoline (node:internal/async_hooks:128:24)
    at async d.provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:154:100486)
lukaszsamson commented 2 months ago

@tomwang57 please share a repro

tomwang57 commented 2 months ago

@tomwang57 please share a repro

I reinstalled the extension and it worked. Sorry to bother.