Skip to content

[OTP26][Windows] 0.15.1 crash or hang on start #927

Closed
@princemaple

Description

@princemaple

Environment

  • Elixir & Erlang versions (elixir --version): elixir 1.15.0-otp-26, erlang otp 26.0.2
  • Elixir Language Server version: 0.15.1
  • Operating system: win11
  • Editor or IDE name (e.g. Emacs/VSCode): Sublime
  • Editor Plugin/LSP Client name and version: LSP, LSP-elixir

Current behavior

Crash after

:: [13:39:35.001] --> lsp-elixir initialize (1): {'rootUri': 'file:///C:/Users/chenp/code/REDACTED', 'workspaceFolders': [{'uri': 'file:///C:/Users/chenp/code/REDACTED', 'name': 'REDACTED'}], 'processId': 44792, 'rootPath': 'C:\\Users\\chenp\\code\\REDACTED', 'clientInfo': {'version': '1.24.0', 'name': 'Sublime Text LSP'}, 'initializationOptions': {}, 'capabilities': {'workspace': {'workspaceEdit': {'failureHandling': 'abort', 'documentChanges': True}, 'didChangeConfiguration': {'dynamicRegistration': True}, 'codeLens': {'refreshSupport': True}, 'semanticTokens': {'refreshSupport': True}, 'inlayHint': {'refreshSupport': True}, 'workspaceFolders': True, 'diagnostics': {'refreshSupport': True}, 'executeCommand': {}, 'applyEdit': True, 'configuration': True, 'symbol': {'symbolKind': {'valueSet': [20, 6, 3, 1, 22, 12, 10, 13, 17, 24, 25, 23, 26, 18, 19, 2, 5, 15, 7, 8, 4, 11, 16, 9, 14, 21]}, 'dynamicRegistration': True, 'tagSupport': {'valueSet': [1]}}}, 'textDocument': {'declaration': {'dynamicRegistration': True, 'linkSupport': True}, 'rangeFormatting': {'dynamicRegistration': True}, 'rename': {'prepareSupport': True, 'dynamicRegistration': True, 'prepareSupportDefaultBehavior': 1}, 'implementation': {'dynamicRegistration': True, 'linkSupport': True}, 'synchronization': {'dynamicRegistration': True, 'willSave': True, 'willSaveWaitUntil': True, 'didSave': True}, 'diagnostic': {'dynamicRegistration': True, 'relatedDocumentSupport': True}, 'colorProvider': {'dynamicRegistration': True}, 'codeLens': {'dynamicRegistration': True}, 'publishDiagnostics': {'dataSupport': True, 'relatedInformation': True, 'versionSupport': True, 'codeDescriptionSupport': True, 'tagSupport': {'valueSet': [1, 2]}}, 'documentHighlight': {'dynamicRegistration': True}, 'selectionRange': {'dynamicRegistration': True}, 'definition': {'dynamicRegistration': True, 'linkSupport': True}, 'codeAction': {'dataSupport': True, 'dynamicRegistration': True, 'isPreferredSupport': True, 'resolveSupport': {'properties': ['edit']}, 'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source.fixAll', 'source.organizeImports']}}}, 'documentSymbol': {'symbolKind': {'valueSet': [20, 6, 3, 1, 22, 12, 10, 13, 17, 24, 25, 23, 26, 18, 19, 2, 5, 15, 7, 8, 4, 11, 16, 9, 14, 21]}, 'dynamicRegistration': True, 'hierarchicalDocumentSymbolSupport': True, 'tagSupport': {'valueSet': [1]}}, 'typeDefinition': {'dynamicRegistration': True, 'linkSupport': True}, 'formatting': {'dynamicRegistration': True}, 'inlayHint': {'dynamicRegistration': True, 'resolveSupport': {'properties': ['textEdits', 'label.command']}}, 'signatureHelp': {'dynamicRegistration': True, 'contextSupport': True, 'signatureInformation': {'parameterInformation': {'labelOffsetSupport': True}, 'activeParameterSupport': True, 'documentationFormat': ['markdown', 'plaintext']}}, 'completion': {'dynamicRegistration': True, 'completionItemKind': {'valueSet': [19, 15, 18, 2, 17, 20, 3, 1, 13, 14, 23, 24, 22, 25, 9, 7, 12, 10, 5, 8, 4, 16, 6, 21, 11]}, 'completionList': {'itemDefaults': ['editRange', 'insertTextFormat', 'data']}, 'completionItem': {'snippetSupport': True, 'insertTextModeSupport': {'valueSet': [2]}, 'resolveSupport': {'properties': ['detail', 'documentation', 'additionalTextEdits']}, 'labelDetailsSupport': True, 'documentationFormat': ['markdown', 'plaintext'], 'deprecatedSupport': True, 'insertReplaceSupport': True, 'tagSupport': {'valueSet': [1]}}, 'insertTextMode': 2}, 'typeHierarchy': {'dynamicRegistration': True}, 'documentLink': {'dynamicRegistration': True, 'tooltipSupport': True}, 'semanticTokens': {'formats': ['relative'], 'multilineTokenSupport': True, 'tokenTypes': ['modifier', 'method', 'namespace', 'typeParameter', 'enumMember', 'function', 'enum', 'variable', 'event', 'property', 'decorator', 'operator', 'struct', 'comment', 'type', 'class', 'string', 'macro', 'interface', 'number', 'keyword', 'regexp', 'parameter'], 'dynamicRegistration': True, 'augmentsSyntaxTokens': True, 'overlappingTokenSupport': False, 'tokenModifiers': ['modification', 'declaration', 'async', 'static', 'abstract', 'readonly', 'definition', 'documentation', 'deprecated', 'defaultLibrary'], 'requests': {'range': True, 'full': {'delta': True}}}, 'callHierarchy': {'dynamicRegistration': True}, 'references': {'dynamicRegistration': True}, 'hover': {'dynamicRegistration': True, 'contentFormat': ['markdown', 'plaintext']}}, 'general': {'markdown': {'version': '3.2.2', 'parser': 'Python-Markdown'}, 'regularExpressions': {'engine': 'ECMAScript'}}, 'window': {'workDoneProgress': True, 'showDocument': {'support': True}, 'showMessage': {'messageActionItem': {'additionalPropertiesSupport': True}}}}}
lsp-elixir: Installing ElixirLS release v0.15.1
lsp-elixir: Running in c:/Users/chenp/code/REDACTED
lsp-elixir: Install complete

Crash dump is uploaded

Expected behavior

After resetting back to otp 25.3 and elixir 1.15.0-otp-25, it runs without problems

:: [13:46:41.563] --> lsp-elixir initialize (1): {'capabilities': {'window': {'showMessage': {'messageActionItem': {'additionalPropertiesSupport': True}}, 'showDocument': {'support': True}, 'workDoneProgress': True}, 'general': {'markdown': {'parser': 'Python-Markdown', 'version': '3.2.2'}, 'regularExpressions': {'engine': 'ECMAScript'}}, 'textDocument': {'codeLens': {'dynamicRegistration': True}, 'formatting': {'dynamicRegistration': True}, 'hover': {'contentFormat': ['markdown', 'plaintext'], 'dynamicRegistration': True}, 'rename': {'prepareSupportDefaultBehavior': 1, 'dynamicRegistration': True, 'prepareSupport': True}, 'diagnostic': {'relatedDocumentSupport': True, 'dynamicRegistration': True}, 'inlayHint': {'resolveSupport': {'properties': ['textEdits', 'label.command']}, 'dynamicRegistration': True}, 'semanticTokens': {'requests': {'full': {'delta': True}, 'range': True}, 'tokenModifiers': ['deprecated', 'abstract', 'modification', 'documentation', 'declaration', 'defaultLibrary', 'definition', 'async', 'static', 'readonly'], 'augmentsSyntaxTokens': True, 'formats': ['relative'], 'multilineTokenSupport': True, 'overlappingTokenSupport': False, 'dynamicRegistration': True, 'tokenTypes': ['enumMember', 'modifier', 'namespace', 'parameter', 'enum', 'macro', 'regexp', 'decorator', 'number', 'comment', 'event', 'string', 'class', 'typeParameter', 'operator', 'property', 'method', 'variable', 'struct', 'function', 'interface', 'keyword', 'type']}, 'signatureHelp': {'contextSupport': True, 'signatureInformation': {'activeParameterSupport': True, 'parameterInformation': {'labelOffsetSupport': True}, 'documentationFormat': ['markdown', 'plaintext']}, 'dynamicRegistration': True}, 'rangeFormatting': {'dynamicRegistration': True}, 'codeAction': {'codeActionLiteralSupport': {'codeActionKind': {'valueSet': ['quickfix', 'refactor', 'refactor.extract', 'refactor.inline', 'refactor.rewrite', 'source.fixAll', 'source.organizeImports']}}, 'resolveSupport': {'properties': ['edit']}, 'isPreferredSupport': True, 'dynamicRegistration': True, 'dataSupport': True}, 'documentLink': {'tooltipSupport': True, 'dynamicRegistration': True}, 'synchronization': {'willSave': True, 'willSaveWaitUntil': True, 'didSave': True, 'dynamicRegistration': True}, 'completion': {'completionItem': {'resolveSupport': {'properties': ['detail', 'documentation', 'additionalTextEdits']}, 'insertTextModeSupport': {'valueSet': [2]}, 'documentationFormat': ['markdown', 'plaintext'], 'labelDetailsSupport': True, 'tagSupport': {'valueSet': [1]}, 'deprecatedSupport': True, 'snippetSupport': True, 'insertReplaceSupport': True}, 'completionList': {'itemDefaults': ['editRange', 'insertTextFormat', 'data']}, 'completionItemKind': {'valueSet': [20, 1, 16, 18, 13, 11, 12, 5, 17, 4, 21, 19, 23, 7, 25, 24, 10, 2, 15, 6, 9, 22, 3, 8, 14]}, 'insertTextMode': 2, 'dynamicRegistration': True}, 'selectionRange': {'dynamicRegistration': True}, 'documentHighlight': {'dynamicRegistration': True}, 'typeDefinition': {'linkSupport': True, 'dynamicRegistration': True}, 'declaration': {'linkSupport': True, 'dynamicRegistration': True}, 'references': {'dynamicRegistration': True}, 'callHierarchy': {'dynamicRegistration': True}, 'publishDiagnostics': {'tagSupport': {'valueSet': [2, 1]}, 'versionSupport': True, 'dataSupport': True, 'relatedInformation': True, 'codeDescriptionSupport': True}, 'definition': {'linkSupport': True, 'dynamicRegistration': True}, 'typeHierarchy': {'dynamicRegistration': True}, 'implementation': {'linkSupport': True, 'dynamicRegistration': True}, 'documentSymbol': {'tagSupport': {'valueSet': [1]}, 'hierarchicalDocumentSymbolSupport': True, 'dynamicRegistration': True, 'symbolKind': {'valueSet': [22, 6, 3, 10, 17, 8, 1, 9, 21, 4, 14, 24, 15, 18, 5, 26, 25, 7, 16, 13, 2, 23, 12, 19, 11, 20]}}, 'colorProvider': {'dynamicRegistration': True}}, 'workspace': {'symbol': {'tagSupport': {'valueSet': [1]}, 'dynamicRegistration': True, 'symbolKind': {'valueSet': [22, 6, 3, 10, 17, 8, 1, 9, 21, 4, 14, 24, 15, 18, 5, 26, 25, 7, 16, 13, 2, 23, 12, 19, 11, 20]}}, 'configuration': True, 'semanticTokens': {'refreshSupport': True}, 'applyEdit': True, 'executeCommand': {}, 'didChangeConfiguration': {'dynamicRegistration': True}, 'workspaceEdit': {'documentChanges': True, 'failureHandling': 'abort'}, 'workspaceFolders': True, 'diagnostics': {'refreshSupport': True}, 'inlayHint': {'refreshSupport': True}, 'codeLens': {'refreshSupport': True}}}, 'initializationOptions': {}, 'rootUri': 'file:///C:/Users/chenp/code/REDACTED', 'workspaceFolders': [{'name': 'REDACTED', 'uri': 'file:///C:/Users/chenp/code/REDACTED'}], 'processId': 46016, 'clientInfo': {'name': 'Sublime Text LSP', 'version': '1.24.0'}, 'rootPath': 'C:\\Users\\chenp\\code\\REDACTED'}
lsp-elixir: Installing ElixirLS release v0.15.1
lsp-elixir: Running in c:/Users/chenp/code/REDACTED
lsp-elixir: Install complete
lsp-elixir: Started ElixirLS v0.15.1
:: [13:46:44.099] <-  lsp-elixir window/logMessage: {'type': 3, 'message': 'Started ElixirLS v0.15.1'}
lsp-elixir: Running in c:/Users/chenp/code/REDACTED
:: [13:46:44.099] <-  lsp-elixir window/logMessage: {'type': 3, 'message': 'Running in c:/Users/chenp/code/REDACTED'}
lsp-elixir: ElixirLS built with elixir "1.15.0" on OTP "25"
:: [13:46:44.102] <-  lsp-elixir window/logMessage: {'type': 3, 'message': 'ElixirLS built with elixir "1.15.0" on OTP "25"'}
lsp-elixir: Running on elixir "1.15.0 (compiled with Erlang/OTP 25)" on OTP "25"
:: [13:46:44.102] <-  lsp-elixir window/logMessage: {'type': 3, 'message': 'Running on elixir "1.15.0 (compiled with Erlang/OTP 25)" on OTP "25"'}
lsp-elixir: Protocols are not consolidated
:: [13:46:44.104] <-  lsp-elixir window/logMessage: {'type': 3, 'message': 'Protocols are not consolidated'}
lsp-elixir: Elixir sources not found (checking in c:/home/runner/work/elixir/elixir). Code navigation to Elixir modules disabled.
:: [13:46:44.112] <-  lsp-elixir window/logMessage: {'type': 3, 'message': 'Elixir sources not found (checking in c:/home/runner/work/elixir/elixir). Code navigation to Elixir modules disabled.'}
:: [13:46:44.172] <<< lsp-elixir (1) (duration: 2608ms): {'serverInfo': {'name': 'ElixirLS', 'version': '0.15.1'}, 'capabilities': {'implementationProvider': True, 'signatureHelpProvider': {'triggerCharacters': ['(', ',']}, 'codeActionProvider': False, 'executeCommandProvider': {'commands': ['expandMacro:k_kYDJBDbk5UHF6ssTZhf8Rxs2qQ3AKv', 'getExUnitTestsInFile:k_kYDJBDbk5UHF6ssTZhf8Rxs2qQ3AKv', 'manipulatePipes:k_kYDJBDbk5UHF6ssTZhf8Rxs2qQ3AKv', 'mixClean:k_kYDJBDbk5UHF6ssTZhf8Rxs2qQ3AKv', 'restart:k_kYDJBDbk5UHF6ssTZhf8Rxs2qQ3AKv', 'spec:k_kYDJBDbk5UHF6ssTZhf8Rxs2qQ3AKv']}, 'definitionProvider': True, 'documentOnTypeFormattingProvider': {'firstTriggerCharacter': '\n'}, 'completionProvider': {'triggerCharacters': ['.', '@', '&', '%', '^', ':', '!', '-', '~']}, 'documentSymbolProvider': True, 'workspaceSymbolProvider': True, 'referencesProvider': True, 'foldingRangeProvider': True, 'textDocumentSync': {'save': {'includeText': True}, 'didOpen': {}, 'didClose': {}, 'change': {'syncKind': 2}}, 'documentFormattingProvider': True, 'macroExpansion': True, 'workspace': {'workspaceFolders': {'supported': False, 'changeNotifications': False}}, 'hoverProvider': True, 'codeLensProvider': {'resolveProvider': False}}}
:: [13:46:44.172]  -> lsp-elixir initialized: {}
:: [13:46:44.173]  -> lsp-elixir workspace/didChangeConfiguration: {'settings': {'elixirLS': {'projectDir': None, 'fetchDeps': True, 'mixTarget': None, 'dialyzerEnabled': True, 'mixEnv': 'dev', 'dialyzerFormat': 'dialyxir_long', 'dialyzerWarnOpts': ['error_handling', 'no_behaviours', 'no_contracts', 'no_fail_call', 'no_fun_app', 'no_improper_lists', 'no_match', 'no_missing_calls', 'no_opaque', 'no_return', 'no_undefined_callbacks', 'no_unused', 'unknown']}}}
:: [13:46:44.173] <-- lsp-elixir client/registerCapability (1): {'registrations': [{'registerOptions': {'watchers': [{'globPattern': '**/*.ex'}, {'globPattern': '**/*.exs'}, {'globPattern': '**/*.erl'}, {'globPattern': '**/*.hrl'}, {'globPattern': '**/*.yrl'}, {'globPattern': '**/*.xrl'}, {'globPattern': '**/*.eex'}, {'globPattern': '**/*.leex'}, {'globPattern': '**/*.heex'}, {'globPattern': '**/*.sface'}]}, 'method': 'workspace/didChangeWatchedFiles', 'id': 'B63DDB275E15ED256156A5090CE35EB12FC8CC8C'}]}
:: [13:46:44.173] >>> lsp-elixir (1) (duration: 0ms): None
...
...
Truncated
...
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions