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
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -233,6 +233,46 @@ Please include the output when filing any issues on the [haskell-language-server
233
233
(f.e. `~/.profile`, but i can vary depending on your system setup).
234
234
- See [this stackoverflow question](https://stackoverflow.com/questions/43983718/set-global-path-environment-variable-in-vs-code) for more tricks.
235
235
236
+
#### `Failed to get project GHC version` on darwin M1 with stack
237
+
238
+
If you have installed stack via the official cannels, the binary will not be M1 native, but x86 and trigger the rosetta compatibility layer. GHCup provides real stack/HLS M1 binaries, so make sure you install stack via GHCup. Also see https://github.com/haskell/haskell-language-server/issues/2864
239
+
240
+
#### `GHC ABIs don't match`
241
+
242
+
If you're running stack with GHC 9.0.2, you will get this because of an outdated
243
+
GHC bindist that stack installs.
244
+
245
+
Force it to install the fixed bindist (that includes profiling libs) by adding this to your stack.yaml (depending on your platform):
Alternatively let GHCup install the correct bindist and then set `system-ghc: true` in your `stack.yaml`.
256
+
257
+
Now make sure to remove cached/installed libraries to avoid getting segfaults at runtime.
258
+
259
+
If you hit this problem although you're not using stack or GHC 9.0.2, please report an issue. As a workaround, you can try to compile HLS from source (the extension should pick it up) via ghcup, see [https://haskell-language-server.readthedocs.io/en/stable/installation.html#ghcup](https://haskell-language-server.readthedocs.io/en/stable/installation.html#ghcup).
260
+
261
+
#### Something else doesn't work
262
+
263
+
If something just doesn't work, but you recall an old configuration that did, you
264
+
may try forcing a particular setting, e.g. by disabling all automatic installations
265
+
except HLS:
266
+
267
+
```json
268
+
"haskell.toolchain": {
269
+
"hls": "1.6.1.0",
270
+
"ghc": null,
271
+
"cabal": null,
272
+
"stack": null
273
+
}
274
+
```
275
+
236
276
## Contributing
237
277
238
278
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