Skip to content

Instantly share code, notes, and snippets.

@simonmichael
Created December 6, 2023 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonmichael/43fad2445303d2e6d466fe744d009ba1 to your computer and use it in GitHub Desktop.
Save simonmichael/43fad2445303d2e6d466fe744d009ba1 to your computer and use it in GitHub Desktop.
HLS startup failure
2023-12-06 02:18:11.1340000 [client] INFO Finding haskell-language-server
2023-12-06 02:18:11.1350000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.1370000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.1380000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose list -t hls -c installed -r' in cwd '/'
2023-12-06 02:18:11.2840000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.2860000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.2870000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose list -t cabal -c installed -r' in cwd '/'
2023-12-06 02:18:11.3560000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.3570000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.3590000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose list -t stack -c installed -r' in cwd '/'
2023-12-06 02:18:11.4320000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.4340000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.4350000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose list -t ghc -c available -r' in cwd '/'
2023-12-06 02:18:11.5150000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.5170000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.5180000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose whereis hls 2.5.0.0' in cwd '/'
2023-12-06 02:18:11.5380000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.5400000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.5410000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose whereis cabal 3.10.2.0' in cwd '/'
2023-12-06 02:18:11.5610000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.5630000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.5640000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose whereis stack 2.13.1' in cwd '/'
2023-12-06 02:18:11.5850000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.5860000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.5870000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose whereis ghc 9.4.7' in cwd '/'
2023-12-06 02:18:11.6080000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:11.6100000 [client] INFO probing for GHCup binary
2023-12-06 02:18:11.6110000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose run --hls 2.5.0.0 --cabal 3.10.2.0 --stack 2.13.1 --ghc 9.4.7 --install' in cwd '/'
2023-12-06 02:18:11.7050000 [client] INFO Working out the project GHC version. This might take a while...
2023-12-06 02:18:11.7050000 [client] INFO Executing 'haskell-language-server-wrapper --project-ghc-version' in cwd '/Users/simon/src/hledger'
2023-12-06 02:18:13.9630000 [client] INFO The GHC version for the project or file: 9.4.7
2023-12-06 02:18:14.3820000 [client] INFO Platform constants: Darwin, A_ARM64
2023-12-06 02:18:14.3820000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:14.3860000 [client] INFO probing for GHCup binary
2023-12-06 02:18:14.3890000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose list -t hls -c installed -r' in cwd '/'
2023-12-06 02:18:14.4810000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:14.4820000 [client] INFO probing for GHCup binary
2023-12-06 02:18:14.4830000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose whereis bindir' in cwd '/'
2023-12-06 02:18:14.5050000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:14.5060000 [client] INFO probing for GHCup binary
2023-12-06 02:18:14.5070000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose whereis hls 2.4.0.0' in cwd '/'
2023-12-06 02:18:14.5280000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:14.5290000 [client] INFO probing for GHCup binary
2023-12-06 02:18:14.5310000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose whereis ghc 9.4.7' in cwd '/'
2023-12-06 02:18:14.5510000 [client] INFO Checking for ghcup installation
2023-12-06 02:18:14.5520000 [client] INFO probing for GHCup binary
2023-12-06 02:18:14.5530000 [client] INFO Executing '/Users/simon/.ghcup/bin/ghcup --no-verbose run --hls 2.4.0.0 --cabal 3.10.2.0 --stack 2.13.1 --ghc 9.4.7 --install' in cwd '/'
2023-12-06 02:18:14.6330000 [client] INFO Activating the language server in working dir: /Users/simon/src/hledger (the workspace folder)
2023-12-06 02:18:14.6330000 [client] INFO run command: /Users/simon/.ghcup/tmp/ghcup-ghc-9.4.7_cabal-3.10.2.0_hls-2.4.0.0_stack-2.13.1/haskell-language-server-wrapper --lsp
2023-12-06 02:18:14.6330000 [client] INFO debug command: /Users/simon/.ghcup/tmp/ghcup-ghc-9.4.7_cabal-3.10.2.0_hls-2.4.0.0_stack-2.13.1/haskell-language-server-wrapper --lsp
2023-12-06 02:18:14.6330000 [client] INFO server environment variables:
2023-12-06 02:18:14.6330000 [client] INFO PATH=/Users/simon/.ghcup/tmp/ghcup-ghc-9.4.7_cabal-3.10.2.0_hls-2.4.0.0_stack-2.13.1:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
2023-12-06 02:18:14.6340000 [client] INFO Starting language server
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 2.4.0.0 aarch64 ghc-9.2.8
Current directory: /
Operating system: darwin
Arguments: ["--lsp"]
Cradle directory: /
Cradle type: Default
Tool versions found on the $PATH
cabal: 3.10.2.0
stack: 2.13.1
ghc: 9.4.7
Consulting the cradle to get project GHC version...
2023-12-06T02:18:14.832174Z | Debug | executing command: ghc --numeric-version
Failed to find the GHC version of this Default project.
Couldn't execute ghc --numeric-version
2023-12-06T02:18:14.840423Z | Info | Starting server
2023-12-06T02:18:14.876971Z | Error | LSP: no handler for: "initialized"
2023-12-06T02:18:14.878930Z | Debug | LSP: set new config: {
"checkProject": false,
"formattingProvider": "fourmolu",
"ghcupExecutablePath": "",
"indentationRules": { "enabled": true },
"logFile": "",
"manageHLS": "GHCup",
"maxCompletions": 40,
"metadataURL": "",
"openDocumentationInHackage": true,
"openSourceInHackage": true,
"plugin": {
"alternateNumberFormat": { "globalOn": true },
"cabal": { "completionOn": true, "globalOn": 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": true },
"globalOn": true
},
"ghcide-hover-and-symbols": { "hoverOn": true, "symbolsOn": true },
"ghcide-type-lenses": { "config": { "mode": "always" }, "globalOn": true },
"haddockComments": { "globalOn": true },
"hlint": {
"codeActionsOn": true,
"config": { "flags": [ ] },
"diagnosticsOn": true
},
"importLens": { "codeActionsOn": true, "codeLensOn": true },
"moduleName": { "globalOn": true },
"pragmas": { "codeActionsOn": true, "completionOn": true },
"qualifyImportedNames": { "globalOn": true },
"refineImports": { "codeActionsOn": true, "codeLensOn": true },
"rename": { "config": { "crossModule": false }, "globalOn": true },
"retrie": { "globalOn": true },
"splice": { "globalOn": true },
"stan": { "globalOn": false },
"tactics": {
"codeActionsOn": true,
"codeLensOn": true,
"config": {
"auto_gas": 4,
"hole_severity": null,
"max_use_ctor_actions": 5,
"proofstate_styling": true,
"timeout_duration": 2
},
"hoverOn": true
}
},
"promptBeforeDownloads": "true",
"releasesDownloadStoragePath": "",
"releasesURL": "",
"serverEnvironment": { },
"serverExecutablePath": "",
"serverExtraArgs": "",
"toolchain": { },
"trace": { "client": "info", "server": "off" },
"upgradeGHCup": false
}
2023-12-06T02:18:14.883939Z | Error | LSP: no handler for: "workspace/didChangeConfiguration"
2023-12-06T02:18:14.886034Z | Debug | VFS: opening file:///Users/simon/src/hledger/hledger-lib/Hledger/Utils/IO.hs
2023-12-06T02:18:14.886720Z | Error | LSP: no handler for: "textDocument/didOpen"
2023-12-06T02:18:14.887148Z | Debug | LSP: set new config: {
"checkProject": false,
"formattingProvider": "fourmolu",
"ghcupExecutablePath": "",
"indentationRules": { "enabled": true },
"logFile": "",
"manageHLS": "GHCup",
"maxCompletions": 40,
"metadataURL": "",
"openDocumentationInHackage": true,
"openSourceInHackage": true,
"plugin": {
"alternateNumberFormat": { "globalOn": true },
"cabal": { "completionOn": true, "globalOn": 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": true },
"globalOn": true
},
"ghcide-hover-and-symbols": { "hoverOn": true, "symbolsOn": true },
"ghcide-type-lenses": { "config": { "mode": "always" }, "globalOn": true },
"haddockComments": { "globalOn": true },
"hlint": {
"codeActionsOn": true,
"config": { "flags": [ ] },
"diagnosticsOn": true
},
"importLens": { "codeActionsOn": true, "codeLensOn": true },
"moduleName": { "globalOn": true },
"pragmas": { "codeActionsOn": true, "completionOn": true },
"qualifyImportedNames": { "globalOn": true },
"refineImports": { "codeActionsOn": true, "codeLensOn": true },
"rename": { "config": { "crossModule": false }, "globalOn": true },
"retrie": { "globalOn": true },
"splice": { "globalOn": true },
"stan": { "globalOn": false },
"tactics": {
"codeActionsOn": true,
"codeLensOn": true,
"config": {
"auto_gas": 4,
"hole_severity": null,
"max_use_ctor_actions": 5,
"proofstate_styling": true,
"timeout_duration": 2
},
"hoverOn": true
}
},
"promptBeforeDownloads": "true",
"releasesDownloadStoragePath": "",
"releasesURL": "",
"serverEnvironment": { },
"serverExecutablePath": "",
"serverExtraArgs": "",
"toolchain": { },
"trace": { "client": "info", "server": "off" },
"upgradeGHCup": false
}
2023-12-06T02:18:14.892668Z | Debug | LSP: set new config: {
"checkProject": false,
"formattingProvider": "fourmolu",
"ghcupExecutablePath": "",
"indentationRules": { "enabled": true },
"logFile": "",
"manageHLS": "GHCup",
"maxCompletions": 40,
"metadataURL": "",
"openDocumentationInHackage": true,
"openSourceInHackage": true,
"plugin": {
"alternateNumberFormat": { "globalOn": true },
"cabal": { "completionOn": true, "globalOn": 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": true },
"globalOn": true
},
"ghcide-hover-and-symbols": { "hoverOn": true, "symbolsOn": true },
"ghcide-type-lenses": { "config": { "mode": "always" }, "globalOn": true },
"haddockComments": { "globalOn": true },
"hlint": {
"codeActionsOn": true,
"config": { "flags": [ ] },
"diagnosticsOn": true
},
"importLens": { "codeActionsOn": true, "codeLensOn": true },
"moduleName": { "globalOn": true },
"pragmas": { "codeActionsOn": true, "completionOn": true },
"qualifyImportedNames": { "globalOn": true },
"refineImports": { "codeActionsOn": true, "codeLensOn": true },
"rename": { "config": { "crossModule": false }, "globalOn": true },
"retrie": { "globalOn": true },
"splice": { "globalOn": true },
"stan": { "globalOn": false },
"tactics": {
"codeActionsOn": true,
"codeLensOn": true,
"config": {
"auto_gas": 4,
"hole_severity": null,
"max_use_ctor_actions": 5,
"proofstate_styling": true,
"timeout_duration": 2
},
"hoverOn": true
}
},
"promptBeforeDownloads": "true",
"releasesDownloadStoragePath": "",
"releasesURL": "",
"serverEnvironment": { },
"serverExecutablePath": "",
"serverExtraArgs": "",
"toolchain": { },
"trace": { "client": "info", "server": "off" },
"upgradeGHCup": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment