You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Tell us how to reproduce this issue, including screenshots if you think they can be useful -->
23
24
24
25
### Expected behaviour
26
+
25
27
<!-- Tell us what should happen. -->
26
28
27
29
### Actual behaviour
30
+
28
31
<!-- Tell us what happens instead. -->
29
32
30
33
### Include debug information
34
+
31
35
Execute in the root of your project the command `haskell-language-server-wrapper --debug .` and paste the logs here (you can find the executable location [here](https://github.com/haskell/vscode-haskell#downloaded-binaries)):
32
36
33
37
<details>
@@ -38,6 +42,7 @@ Debug output:
38
42
```
39
43
<paste your logs here>
40
44
```
45
+
41
46
</details>
42
47
43
48
Paste the contents of extension specific log, you can check instructions about how to find it [here](https://github.com/haskell/vscode-haskell#troubleshooting)
Copy file name to clipboardExpand all lines: README.md
+14-17
Original file line number
Diff line number
Diff line change
@@ -112,11 +112,11 @@ either globally or per project. E.g.:
112
112
113
113
```json
114
114
{
115
-
"haskell.toolchain": {
116
-
"hls": "1.6.1.1",
117
-
"cabal": "recommended",
118
-
"stack": null
119
-
}
115
+
"haskell.toolchain": {
116
+
"hls": "1.6.1.1",
117
+
"cabal": "recommended",
118
+
"stack": null
119
+
}
120
120
}
121
121
```
122
122
@@ -131,11 +131,11 @@ Another config could be:
131
131
132
132
```json
133
133
{
134
-
"haskell.toolchain": {
135
-
"ghc": "9.2.2",
136
-
"hls": "latest"
137
-
"cabal": "recommended"
138
-
}
134
+
"haskell.toolchain": {
135
+
"ghc": "9.2.2",
136
+
"hls": "latest",
137
+
"cabal": "recommended"
138
+
}
139
139
}
140
140
```
141
141
@@ -151,11 +151,10 @@ The defaults (when omitted) are as follows:
151
151
1. install the project required `ghc` (corresponding to `with-compiler` setting in `cabal.project` for example)
152
152
2. install the latest `hls` version that supports the project required ghc version
153
153
3. install latest `cabal`
154
-
3. install latest `stack`
154
+
4. install latest `stack`
155
155
156
156
When a the value is `null`, the extension will refrain from installing it.
157
157
158
-
159
158
### Supported GHC versions
160
159
161
160
These are the versions of GHC that there are binaries of `haskell-language-server-1.6.1` for. Building from source may support more versions!
@@ -204,18 +203,16 @@ Please include the output when filing any issues on the [haskell-language-server
204
203
205
204
- Sometimes the language server might get stuck in a rut and stop responding to your latest changes.
206
205
Should this occur you can try restarting the language server with <kbd>Ctrl</kbd> <kbd>shift</kbd> <kbd>P</kbd>/<kbd>⌘</kbd> <kbd>shift</kbd> <kbd>P</kbd> > Restart Haskell LSP Server.
207
-
206
+
208
207
#### `Cradle requires ghc/cabal/stack but it isn't installed`
209
208
210
209
- In Linux/MacOS systems, opening vscode in the windows system could not use the `$PATH` set in the shell
211
210
so it will not see required tools as ghc, cabal or stack. This usually happens if you have installed them
212
-
via ghcup.
213
-
- It could be fixed changing the `$PATH` variable in the init config file used by the windows system
211
+
via ghcup.
212
+
- It could be fixed changing the `$PATH` variable in the init config file used by the windows system
214
213
(f.e. `~/.profile`, but i can vary depending on your system setup).
215
214
- See [this stackoverflow question](https://stackoverflow.com/questions/43983718/set-global-path-environment-variable-in-vs-code) for more tricks.
216
215
217
-
218
-
219
216
## Contributing
220
217
221
218
If you want to help, get started by reading [Contributing](https://github.com/haskell/vscode-haskell/blob/master/Contributing.md) for more details.
0 commit comments