Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't figure out what GHC version the project is using in macos m1 arch: spawn Unknown system error -86 #474

Closed
qcfu-bu opened this issue Sep 28, 2021 · 2 comments
Labels
can-workaround os: macOS macOS related issues type: bug A bug or unintended effect type: setup Issues related with the extension setup, including binaries downloads

Comments

@qcfu-bu
Copy link

qcfu-bu commented Sep 28, 2021

M1 macbook pro. When starting up a cabal project the following error is displayed

Couldn't figure out what GHC version the project is using: spawn Unknown system error -86

The language server is not downloaded automatically.

I can confirm that both ghc and cabal are installed and configured on PATH correctly.

ghc version : 8.10.7
cabal version : 3.6.0.0

@qcfu-bu
Copy link
Author

qcfu-bu commented Sep 28, 2021

I figured out how to solve this issue. Turns out that the haskell-language-server-wrapper-1.4.0-darwin is not natively compatible with the m1 chip. Installing and enabling rosetta 2 in the terminal was able to solve this issue.

The command used to install rosetta 2.

softwareupdate --install-rosetta

@qcfu-bu qcfu-bu closed this as completed Sep 28, 2021
@jneira jneira added can-workaround os: macOS macOS related issues type: bug A bug or unintended effect type: setup Issues related with the extension setup, including binaries downloads labels Sep 28, 2021
@jneira
Copy link
Member

jneira commented Sep 28, 2021

Many thanks for reporting the isssue and the workaround. We aim to support macos m1 architecture directly, the issue tracking it is haskell/haskell-language-server#2008.
There you can check there are prebuilt binaries for m1 via ghcup. Unfortunately the extension does not download it automatically (see #458) so you have to install it using ghcup

@jneira jneira changed the title Couldn't figure out what GHC version the project is using: spawn Unknown system error -86 Couldn't figure out what GHC version the project is using in macos m1 arch: spawn Unknown system error -86 Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can-workaround os: macOS macOS related issues type: bug A bug or unintended effect type: setup Issues related with the extension setup, including binaries downloads
Projects
None yet
Development

No branches or pull requests

2 participants