Open cblp opened 9 months ago
Hi, thank you for the bug report!
This seems very weird, we shouldn't try to read a settings file for GHC 9.0.2 as it doesn't exist in that release! Also, in your report, there are mentions of three different ghc versions, which is one too many :)
Can you turn on the debugging output https://github.com/haskell/vscode-haskell?tab=readme-ov-file#investigating-and-reporting-problems and show us the logs here, please?
2024-03-10 14:59:10.2730000 [client] DEBUG Environment variables:
2024-03-10 14:59:10.2730000 [client] DEBUG PATH: /Users/cblp/.nix-profile/bin:/Users/cblp/Library/Application Support/Coursier/bin:/Users/cblp/felix/bin:/Users/cblp/.local/bin:/Users/cblp/.cargo/bin:/Users/cblp/.cabal/bin:/usr/local/opt/qt/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/cblp/.cabal/bin:/Users/cblp/.ghcup/bin
2024-03-10 14:59:10.2730000 [client] INFO Finding haskell-language-server
2024-03-10 14:59:10.2960000 [client] INFO Searching for server executables haskell-language-server-wrapper,haskell-language-server in $PATH
2024-03-10 14:59:10.2960000 [client] INFO $PATH environment variable: /Users/cblp/.nix-profile/bin:/Users/cblp/Library/Application Support/Coursier/bin:/Users/cblp/felix/bin:/Users/cblp/.local/bin:/Users/cblp/.cargo/bin:/Users/cblp/.cabal/bin:/usr/local/opt/qt/bin:/usr/local/opt/openjdk/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/cblp/.cabal/bin:/Users/cblp/.ghcup/bin
2024-03-10 14:59:10.3100000 [client] INFO Found server executable in $PATH: haskell-language-server-wrapper
2024-03-10 14:59:10.3100000 [client] INFO Activating the language server in working dir: . (parent dir of loaded file Untitled-2)
2024-03-10 14:59:10.3130000 [client] INFO run command: haskell-language-server-wrapper --lsp -d
2024-03-10 14:59:10.3130000 [client] INFO debug command: haskell-language-server-wrapper --lsp -d
2024-03-10 14:59:10.3130000 [client] INFO server cwd: .
2024-03-10 14:59:10.3130000 [client] INFO server environment variables:
2024-03-10 14:59:10.3130000 [client] DEBUG document selector patten: **/*
2024-03-10 14:59:10.3140000 [client] INFO Starting language server
[Trace - 15:59:10] Sending request 'initialize - (0)'.
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 2.5.0.0 x86_64 ghc-9.2.8
Current directory: /
Operating system: darwin
Arguments: ["--lsp","-d"]
Cradle directory: /
Cradle type: Default
Tool versions found on the $PATH
cabal: 3.10.2.1
stack: 2.13.1
ghc: 9.4.8
Consulting the cradle to get project GHC version...
2024-03-10T14:59:10.670126Z | Debug | executing command: ghc --numeric-version
Failed to find the GHC version of this Default project.
Couldn't execute ghc --numeric-version
2024-03-10T14:59:10.682902Z | Info | Starting server
[Trace - 15:59:10] Received request 'window/showMessageRequest - (0)'.
[Trace - 15:59:10] Received response 'initialize - (0)' in 312ms.
[Trace - 15:59:10] Sending notification 'initialized'.
[Trace - 15:59:10] Sending notification 'workspace/didChangeConfiguration'.
[Trace - 15:59:10] Sending notification 'textDocument/didOpen'.
2024-03-10T14:59:10.697850Z | Error | LSP: no handler for: "initialized"
2024-03-10T14:59:10.698702Z [Trace - 15:59:10] Received request 'workspace/configuration - (1)'.
[Trace - 15:59:10] Sending response 'workspace/configuration - (1)'. Processing request took 0ms
| Debug | LSP: set new config: {
"checkProject": false,
"formattingProvider": "fourmolu",
"ghcupExecutablePath": "",
"indentationRules": { "enabled": true },
"logFile": "",
"manageHLS": "PATH",
"maxCompletions": 40,
"metadataURL": "",
"openDocumentationInHackage": true,
"openSourceInHackage": true,
"plugin": {
"alternateNumberFormat": { "globalOn": true },
"cabal": {
"codeActionsOn": true,
"completionOn": true,
"diagnosticsOn": true
},
"callHierarchy": { "globalOn": true },
"changeTypeSignature": { "globalOn": true },
"class": { "codeActionsOn": true, "codeLensOn": true },
"eval": {
"config": { "diff": true, "exception": false },
"globalOn": true
},
"explicit-fields": { "globalOn": true },
"explicit-fixity": { "globalOn": true },
"fourmolu": { "config": { "external": false } },
"gadt": { "globalOn": true },
"ghcide-code-actions-bindings": { "globalOn": true },
"ghcide-code-actions-fill-holes": { "globalOn": true },
"ghcide-code-actions-imports-exports": { "globalOn": true },
"ghcide-code-actions-type-signatures": { "globalOn": true },
"ghcide-completions": {
"config": { "autoExtendOn": true, "snippetsOn": false },
"globalOn": true
},
"ghcide-hover-and-symbols": { "hoverOn": true, "symbolsOn": true },
"ghcide-type-lenses": { "config": { "mode": "always" }, "globalOn": true },
"hlint": {
"codeActionsOn": true,
"config": { "flags": [ ] },
"diagnosticsOn": true
},
"importLens": { "codeActionsOn": true, "codeLensOn": false },
"moduleName": { "globalOn": true },
"ormolu": { "config": { "external": false } },
"overloaded-record-dot": { "globalOn": true },
"pragmas-completion": { "globalOn": true },
"pragmas-disable": { "globalOn": true },
"pragmas-suggest": { "globalOn": true },
"qualifyImportedNames": { "globalOn": true },
"rename": { "config": { "crossModule": false }, "globalOn": true },
"retrie": { "globalOn": true },
"semanticTokens": {
"config": {
"classMethodToken": "method",
"classToken": "class",
"dataConstructorToken": "enumMember",
"functionToken": "function",
"patternSynonymToken": "macro",
"recordFieldToken": "property",
"typeConstructorToken": "enum",
"typeFamilyToken": "interface",
"typeSynonymToken": "type",
"typeVariableToken": "typeParameter",
"variableToken": "variable"
},
"globalOn": false
},
"splice": { "globalOn": true },
"stan": { "globalOn": false }
},
"promptBeforeDownloads": "true",
"releasesDownloadStoragePath": "",
"releasesURL": "",
"serverEnvironment": { },
"serverExecutablePath": "",
"serverExtraArgs": "",
"toolchain": { },
"trace": { "client": "debug", "server": "messages" },
"upgradeGHCup": true
}
2024-03-10T14:59:10.717741Z | Error | LSP: no handler for: "workspace/didChangeConfiguration"
2024-03-10T14:59:10.718648Z | Debug | VFS: opening file:///Users/cblp/dev/ekva/exe/Main.hs[Trace - 15:59:10] Received request 'workspace/configuration - (2)'.
[Trace - 15:59:10] Sending response 'workspace/configuration - (2)'. Processing request took 1ms
2024-03-10T14:59:10.719418Z | Error | LSP: no handler for: "textDocument/didOpen"
2024-03-10T14:59:10.720080Z | Debug | LSP: set new config: {
"checkProject": false,
"formattingProvider": "fourmolu",
"ghcupExecutablePath": "",
"indentationRules": { "enabled": true },
"logFile": "",
"manageHLS": "PATH",
"maxCompletions": 40,
"metadataURL": "",
"openDocumentationInHackage": true,
"openSourceInHackage": true,
"plugin": {
"alternateNumberFormat": { "globalOn": true },
"cabal": {
"codeActionsOn": true,
"completionOn": true,
"diagnosticsOn": true
},
"callHierarchy": { "globalOn": true },
"changeTypeSignature": { "globalOn": true },
"class": { "codeActionsOn": true, "codeLensOn": true },
"eval": {
"config": { "diff": true, "exception": false },
"globalOn": true
},
"explicit-fields": { "globalOn": true },
"explicit-fixity": { "globalOn": true },
"fourmolu": { "config": { "external": false } },
"gadt": { "globalOn": true },
"ghcide-code-actions-bindings": { "globalOn": true },
"ghcide-code-actions-fill-holes": { "globalOn": true },
"ghcide-code-actions-imports-exports": { "globalOn": true },
"ghcide-code-actions-type-signatures": { "globalOn": true },
"ghcide-completions": {
"config": { "autoExtendOn": true, "snippetsOn": false },
"globalOn": true
},
"ghcide-hover-and-symbols": { "hoverOn": true, "symbolsOn": true },
"ghcide-type-lenses": { "config": { "mode": "always" }, "globalOn": true },
"hlint": {
"codeActionsOn": true,
"config": { "flags": [ ] },
"diagnosticsOn": true
},
"importLens": { "codeActionsOn": true, "codeLensOn": false },
"moduleName": { "globalOn": true },
"ormolu": { "config": { "external": false } },
"overloaded-record-dot": { "globalOn": true },
"pragmas-completion": { "globalOn": true },
"pragmas-disable": { "globalOn": true },
"pragmas-suggest": { "globalOn": true },
"qualifyImportedNames": { "globalOn": true },
"rename": { "config": { "crossModule": false }, "globalOn": true },
"retrie": { "globalOn": true },
"semanticTokens": {
"config": {
"classMethodToken": "method",
"classToken": "class",
"dataConstructorToken": "enumMember",
"functionToken": "function",
"patternSynonymToken": "macro",
"recordFieldToken": "property",
"typeConstructorToken": "enum",
"typeFamilyToken": "interface",
"typeSynonymToken": "type",
"typeVariableToken": "typeParameter",
"variableToken": "variable"
},
"globalOn": false
},
"splice": { "globalOn": true },
"stan": { "globalOn": false }
},
"promptBeforeDownloads": "true",
"releasesDownloadStoragePath": "",
"releasesURL": "",
"serverEnvironment": { },
"serverExecutablePath": "",
"serverExtraArgs": "",
"toolchain": { },
"trace": { "client": "debug", "server": "messages" },
"upgradeGHCup": true
}
2024-03-10T14:59:10.733933Z | Debug | LSP: set new config: {
"checkProject": false,
"formattingProvider": "fourmolu",
"ghcupExecutablePath": "",
"indentationRules": { "enabled": true },
"logFile": "",
"manageHLS": "PATH",
"maxCompletions": 40,
"metadataURL": "",
"openDocumentationInHackage": true,
"openSourceInHackage": true,
"plugin": {
"alternateNumberFormat": { "globalOn": true },
"cabal": {
"codeActionsOn": true,
"completionOn": true,
"diagnosticsOn": true
},
"callHierarchy": { "globalOn": true },
"changeTypeSignature": { "globalOn": true },
"class": { "codeActionsOn": true, "codeLensOn": true },
"eval": {
"config": { "diff": true, "exception": false },
"globalOn": true
},
"explicit-fields": { "globalOn": true },
"explicit-fixity": { "globalOn": true },
"fourmolu": { "config": { "external": false } },
"gadt": { "globalOn": true },
"ghcide-code-actions-bindings": { "globalOn": true },
"ghcide-code-actions-fill-holes": { "globalOn": true },
"ghcide-code-actions-imports-exports": { "globalOn": true },
"ghcide-code-actions-type-signatures": { "globalOn": true },
"ghcide-completions": {
"config": { "autoExtendOn": true, "snippetsOn": false },
"globalOn": true
},
"ghcide-hover-and-symbols": { "hoverOn": true, "symbolsOn": true },
"ghcide-type-lenses": { "config": { "mode": "always" }, "globalOn": true },
"hlint": {
"codeActionsOn": true,
"config": { "flags": [ ] },
"diagnosticsOn": true
},
"importLens": { "codeActionsOn": true, "codeLensOn": false },
"moduleName": { "globalOn": true },
"ormolu": { "config": { "external": false } },
"overloaded-record-dot": { "globalOn": true },
"pragmas-completion": { "globalOn": true },
"pragmas-disable": { "globalOn": true },
"pragmas-suggest": { "globalOn": true },
"qualifyImportedNames": { "globalOn": true },
"rename": { "config": { "crossModule": false }, "globalOn": true },
"retrie": { "globalOn": true },
"semanticTokens": {
"config": {
"classMethodToken": "method",
"classToken": "class",
"dataConstructorToken": "enumMember",
"functionToken": "function",
"patternSynonymToken": "macro",
"recordFieldToken": "property",
"typeConstructorToken": "enum",
"typeFamilyToken": "interface",
"typeSynonymToken": "type",
"typeVariableToken": "typeParameter",
"variableToken": "variable"
},
"globalOn": false
},
"splice": { "globalOn": true },
"stan": { "globalOn": false }
},
"promptBeforeDownloads": "true",
"releasesDownloadStoragePath": "",
"releasesURL": "",
"serverEnvironment": { },
"serverExecutablePath": "",
"serverExtraArgs": "",
"toolchain": { },
"trace": { "client": "debug", "server": "messages" },
"upgradeGHCup": true
}
[Trace - 16:00:05] Sending notification 'textDocument/didOpen'.
2024-03-10T15:00:05.273751Z | Debug | VFS: opening file:///private/tmp/d.hs
2024-03-10T15:00:05.274364Z | Error | LSP: no handler for: "textDocument/didOpen"
Your environment
MacOS GHC 9.4.8 and other from ghcup How is your project built (alternative: link to the project)? no project, just a .hs file
VS Code + haskell.haskell v2.4.3 HLS 2.5.0.0 (GHC: 9.2.8) from ghcup Have you configured HLS in any way (especially: a
hie.yaml
file)? noSteps to reproduce
Expected behaviour
No error messages
Actual behaviour
Error message
Debug information