Skip to content

Instantly share code, notes, and snippets.

@rajcspsg
Created March 9, 2021 03:46
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 rajcspsg/81bd373d35dba5cf355264d17e275bb8 to your computer and use it in GitHub Desktop.
Save rajcspsg/81bd373d35dba5cf355264d17e275bb8 to your computer and use it in GitHub Desktop.
Haskell-language-server-wrapper
Module "/home/rajkumar/Coding/Haskell/cabal_project/a" is loaded by Cradle: Cradle {cradleRootDir = "/home/rajkumar/Coding/Haskell/cabal_project", cradleOptsProg = CradleAction: Cabal}
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.0.0.0, Git revision 4cd1cf934638881e52b3eba9f70157a4b799c0e9 (dirty) x86_64 ghc-8.10.4
Current directory: /home/rajkumar/Coding/Haskell/cabal_project
Operating system: linux
Arguments: ["--lsp"]
Cradle directory: /home/rajkumar/Coding/Haskell/cabal_project
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.4.0.0
stack: Not found
ghc: 8.10.4
Consulting the cradle to get project GHC version...
Failed to get project GHC version:CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling cabal --builddir=/home/rajkumar/.cache/hie-bios/dist-cabal_project-d38639f8dff0b416658ea858de9c35fa v2-exec --with-compiler /home/rajkumar/.cache/hie-bios/wrapper-13a09b18ea883dd377d59db5e821a86b ghc -v0 -- --numeric-version","","cabal: Could not resolve dependencies:\n[__0] trying: cabal-project-0.1.0.0 (user goal)\n[__1] next goal: base (dependency of cabal-project)\n[__1] rejecting: base-4.14.1.0/installed-4.14.1.0 (conflict: cabal-project =>\nbase^>=4.15.0.0)\n[__1] skipping: base-4.14.1.0, base-4.14.0.0, base-4.13.0.0, base-4.12.0.0,\nbase-4.11.1.0, base-4.11.0.0, base-4.10.1.0, base-4.10.0.0, base-4.9.1.0,\nbase-4.9.0.0, base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2,\nbase-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0,\nbase-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0,\nbase-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0,\nbase-3.0.3.2, base-3.0.3.1 (has the same characteristics that caused the\nprevious version to fail: excluded by constraint '^>=4.15.0.0' from\n'cabal-project')\n[__1] fail (backjumping, conflict set: base, cabal-project)\nAfter searching the rest of the dependency tree exhaustively, these were the\ngoals I've had most trouble fulfilling: cabal-project, base\n\n"]}
Process lsp-haskell stderr finished
Module "/home/rajkumar/Coding/Haskell/cabal_project/a" is loaded by Cradle: Cradle {cradleRootDir = "/home/rajkumar/Coding/Haskell/cabal_project", cradleOptsProg = CradleAction: Cabal}
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.0.0.0, Git revision 4cd1cf934638881e52b3eba9f70157a4b799c0e9 (dirty) x86_64 ghc-8.10.4
Current directory: /home/rajkumar/Coding/Haskell/cabal_project
Operating system: linux
Arguments: ["--lsp"]
Cradle directory: /home/rajkumar/Coding/Haskell/cabal_project
Cradle type: Cabal
Tool versions found on the $PATH
cabal: 3.4.0.0
stack: Not found
ghc: 8.10.4
Consulting the cradle to get project GHC version...
Failed to get project GHC version:CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling cabal --builddir=/home/rajkumar/.cache/hie-bios/dist-cabal_project-d38639f8dff0b416658ea858de9c35fa v2-exec --with-compiler /home/rajkumar/.cache/hie-bios/wrapper-13a09b18ea883dd377d59db5e821a86b ghc -v0 -- --numeric-version","","cabal: Could not resolve dependencies:\n[__0] trying: cabal-project-0.1.0.0 (user goal)\n[__1] next goal: base (dependency of cabal-project)\n[__1] rejecting: base-4.14.1.0/installed-4.14.1.0 (conflict: cabal-project =>\nbase^>=4.15.0.0)\n[__1] skipping: base-4.14.1.0, base-4.14.0.0, base-4.13.0.0, base-4.12.0.0,\nbase-4.11.1.0, base-4.11.0.0, base-4.10.1.0, base-4.10.0.0, base-4.9.1.0,\nbase-4.9.0.0, base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2,\nbase-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0,\nbase-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0,\nbase-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0,\nbase-3.0.3.2, base-3.0.3.1 (has the same characteristics that caused the\nprevious version to fail: excluded by constraint '^>=4.15.0.0' from\n'cabal-project')\n[__1] fail (backjumping, conflict set: base, cabal-project)\nAfter searching the rest of the dependency tree exhaustively, these were the\ngoals I've had most trouble fulfilling: cabal-project, base\n\n"]}
Process lsp-haskell stderr finished
Command "haskell-language-server-wrapper --lsp" is present on the path.
Command "haskell-language-server-wrapper --lsp" is present on the path.
Found the following clients for /home/rajkumar/Coding/Haskell/cabal_project/test.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
Command "haskell-language-server-wrapper --lsp" is present on the path.
Command "haskell-language-server-wrapper --lsp" is present on the path.
Found the following clients for /home/rajkumar/Coding/Haskell/cabal_project/app/Main.hs: (server-id lsp-haskell, priority 0)
The following clients were selected based on priority: (server-id lsp-haskell, priority 0)
[Trace - 10:08:11 PM] Sending request 'initialize - (2)'.
Params: {
"processId": null,
"rootPath": "/home/rajkumar/Coding/Haskell/cabal_project",
"clientInfo": {
"name": "emacs",
"version": "GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3)\n of 2020-08-28"
},
"rootUri": "file:///home/rajkumar/Coding/Haskell/cabal_project",
"capabilities": {
"workspace": {
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
]
},
"applyEdit": true,
"symbol": {
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
}
},
"executeCommand": {
"dynamicRegistration": false
},
"workspaceFolders": true,
"configuration": true
},
"textDocument": {
"declaration": {
"linkSupport": true
},
"definition": {
"linkSupport": true
},
"implementation": {
"linkSupport": true
},
"typeDefinition": {
"linkSupport": true
},
"synchronization": {
"willSave": true,
"didSave": true,
"willSaveWaitUntil": true
},
"documentSymbol": {
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"hierarchicalDocumentSymbolSupport": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true,
"prepareSupport": true
},
"codeAction": {
"dynamicRegistration": true,
"isPreferredSupport": true,
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
},
"resolveSupport": {
"properties": [
"edit",
"command"
]
},
"dataSupport": true
},
"completion": {
"completionItem": {
"snippetSupport": true,
"documentationFormat": [
"markdown"
],
"resolveAdditionalTextEditsSupport": true
},
"contextSupport": true
},
"signatureHelp": {
"signatureInformation": {
"parameterInformation": {
"labelOffsetSupport": true
}
}
},
"documentLink": {
"dynamicRegistration": true,
"tooltipSupport": true
},
"hover": {
"contentFormat": [
"markdown",
"plaintext"
]
},
"foldingRange": {
"dynamicRegistration": true
},
"callHierarchy": {
"dynamicRegistration": false
},
"publishDiagnostics": {
"relatedInformation": true,
"tagSupport": {
"valueSet": [
1,
2
]
},
"versionSupport": true
}
},
"window": {
"workDoneProgress": true
}
},
"initializationOptions": null,
"workDoneToken": "1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment