Closed joy0516 closed 1 year ago
Seems like you might be able to get more info by running this command on cli and replacing --no-verbose with --verbose?
Seems like you might be able to get more info by running this command on cli and replacing --no-verbose with --verbose?
I ran the command in the terminal and got error:Unable to find a download for the requested version/distro.
There are two possible reasons for the issue.
For the second one, when I restart vs studio, it shows Could not find a HLS binary at "haskell.serverExecutablePath": "~/.local/bin/haskell-language-server"! Consider installing HLS via ghcup or change "haskell.manageHLS" in your settings.
Thank you for your bug report, for more detailed bug reports in VSCode, please follow the instructions here https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems.
~/.local/bin/haskell-language-server
come from? Can you run this HLS on the CLI, eg. cd <root-of-your-project> && ~/.local/bin/haskell-language-server --debug <some-file-in-your-project>
ubuntu-22.05
, or something like that. If possible, also include the output uname -a
Thank you for your bug report, for more detailed bug reports in VSCode, please follow the instructions here https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems.
- Where does
~/.local/bin/haskell-language-server
come from? Can you run this HLS on the CLI, eg.cd <root-of-your-project> && ~/.local/bin/haskell-language-server --debug <some-file-in-your-project>
- Please include your OS as info, e.g.
ubuntu-22.05
, or something like that. If possible, also include the outputuname -a
~/.local/bin/haskell-language-server
came from Configure Option/Path to Server Executable in the link https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems.
Actually there is no path called ~/.local/bin/haskell-language-server
in my computer. So it must be wrong. what input should be for "haskell.serverExecutablePath"?
So it must be wrong. what input should be for "haskell.serverExecutablePath"?
It is an example value for when you have not used ghcup for installing HLS. In other words, not just the correct value you have to fill in. Read https://github.com/haskell/vscode-haskell#path-to-server-executable where it states that you only have to fill in that value if you have a custom installation of HLS.
Can you make sure, ghcup installed HLS correctly? If you are not on windows, use ghcup tui
and make sure HLS is installed. If it is, it should be on your PATH and you should be ale to run haskell-language-server --debug <some-file-in-your-project>
from the root of your project. If you are on windows (again, please state your OS and Arch), use ghcup list
and ghcup install hls
as appropriate.
I can see that there is a hls folder in ~/.ghcup and version is 1.7.0.0. I thought it should be installed correctly. I am on MacOS.
i tried ghcup tui
and tried to install hls again, but i got the warning:
[ Warn ] Could not get download info, trying cached version (this may not be recent!)
[ ... ] If this problem persists, consider switching downloader via:
[ ... ] ghcup config set downloader Wget
ping @hasufell for details
Did you try ghcup config set downloader Wget
? Maybe that works better?
Seems like you might be able to get more info by running this command on cli and replacing --no-verbose with --verbose?
I ran the command in the terminal and got error:Unable to find a download for the requested version/distro.
That error is documented here: https://errors.haskell.org/messages/GHCup-00010/index.html
Please follow the suggested instructions there.
i tried
ghcup tui
and tried to install hls again, but i got the warning: [ Warn ] Could not get download info, trying cached version (this may not be recent!) [ ... ] If this problem persists, consider switching downloader via: [ ... ] ghcup config set downloader Wget
Try running ghcup --metadata-caching=0 --metadata-fetching-mode=Strict tui
.
Also kindly report your distro and distroversion.
Try running ghcup --metadata-caching=0 --metadata-fetching-mode=Strict tui.
I got msg : Invalid option `--metadata-fetching-mode=Strict'
Try running ghcup --metadata-caching=0 --metadata-fetching-mode=Strict tui.
I got msg : Invalid option `--metadata-fetching-mode=Strict'
Update your installation via ghcup upgrade
.
Update your installation via ghcup upgrade.
It returns No GHCup update available.
In the path ~/.gucup/tmp/ghcup-ghc-8.10.7_cabal-3.6.2.0_hls-1.7.0.0
, I can see that there exists haskell-language-server file. I think hls should be installed on my computer. But I have no idea why VS code could not use it.
If you are not on windows, use ghcup tui and make sure HLS is installed. If it is, it should be on your PATH and you should be ale to run haskell-language-server --debug
from the root of your project.
What does PATH mean here?
Update your installation via ghcup upgrade.
It returns No GHCup update available.
What is the ghcup version? Run ghcup --version
.
Update your installation via ghcup upgrade.
It returns No GHCup update available.
What is the ghcup version? Run
ghcup --version
.
The GHCup Haskell installer, version v0.1.18.0
Please follow the instructions here: https://errors.haskell.org/messages/GHCup-00160/index.html
No activity for a while, closing as stale.
ERROR Error:
ghcup --no-verbose run --hls 1.9.0.0 --cabal 3.6.2.0 --stack 2.7.5 --ghc 8.10.7 --install
exited with exit code 27.what does it mean?