Skip to content

Confusing dialog on startup: "Need to download ghc-null" #597

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

Closed
mduerig opened this issue Apr 28, 2022 · 6 comments · Fixed by #599
Closed

Confusing dialog on startup: "Need to download ghc-null" #597

mduerig opened this issue Apr 28, 2022 · 6 comments · Fixed by #599
Labels
type: bug A bug or unintended effect type: user experience An enhancement to the UX, e.g. better error handling

Comments

@mduerig
Copy link
Contributor

mduerig commented Apr 28, 2022

Your environment

Which OS do you use: Linux 5.4.0-109-generic 18.04.1-Ubuntu

Steps to reproduce

Add the following configuration and start VSCode:

    "haskell.toolchain": {
        "hls": "1.6.1.0",
        "ghc": null,
        "cabal": null,
        "stack": null
    }

Expected behaviour

VSCode starts and is ready to use, not displaying "strange" dialogue boxes.

Actual behaviour

VSCode starts and a dialogue pops up "Need to download ghc-null, continue?"

Screenshot from 2022-04-28 10-43-57

After confirming with "Yes", everything works normal.

@fendor fendor added type: bug A bug or unintended effect type: user experience An enhancement to the UX, e.g. better error handling and removed status: needs triage labels Apr 28, 2022
@fendor
Copy link
Collaborator

fendor commented Apr 28, 2022

Hi, thank you for your bug report!

Do you have GHC installed on your system? If yes, how and which GHC version?

@mduerig
Copy link
Contributor Author

mduerig commented Apr 28, 2022

No, I don't have it installed globally. This happens with pure stack projects.

@mduerig
Copy link
Contributor Author

mduerig commented Apr 28, 2022

FWIW, I just installed 8.10.7 (via ghcup). This makes the problem go away.

@fendor
Copy link
Collaborator

fendor commented Apr 28, 2022

Awesome, thank you for the detailed bug report!

@hasufell
Copy link
Member

Are you using ghc 9.0.2 with stack? Or why do you lock an older HLS version? There's a workaround for the bindist issue: haskell/haskell-language-server#2862 (comment)

@mduerig
Copy link
Contributor Author

mduerig commented Apr 28, 2022

Are you using ghc 9.0.2 with stack?

Yes and it kept crashing HLS so I reverted to 1.6.1.0 for now. But this is not related to this issue as I'm getting the same behaviour ("Need to download ghc-null") also with "hls": "null",.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A bug or unintended effect type: user experience An enhancement to the UX, e.g. better error handling
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants