Skip to content

Problem when trying to upgrade ghcup (for VS Code Haskell extension) #710

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
houseofwealth opened this issue Sep 14, 2022 · 5 comments
Closed

Comments

@houseofwealth
Copy link

My HLS extension has been working fine on VS Code (Windows), but then I rather foolishly said "yes" to the suggestion that I upgrade to the latest version. Which didn't go well. Now I don't have any working Haskell extension. I am enclosing the output below. I have no idea what Error Codes 30 and 27 is referring to:

2022-09-14 22:39:32.2120000 [client] DEBUG Environment variables:
2022-09-14 22:39:32.2130000 [client] DEBUG   PATH: C:\ProgramFiles\Notepad++;C:\ProgramFiles\z3-4.8.12-x64-win\bin;C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\bin;C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\ProgramFiles\iconv-1.9.2.win32\bin;C:\ProgramFiles\zlib-1.2.5\bin;C:\ProgramFiles\libxml2-2.7.8.win32\bin;C:\ProgramFiles\NuSMV-2.6.0-win64\bin;C:\ProgramFiles\z3-4.8.12-x64-win\bin;C:\ProgramFiles\Python310\Scripts;C:\ProgramFiles\Python310;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\HID Global\ActivClient;C:\Program Files\HID Global\ActivClient;C:\ProgramFiles\WinMerge;C:\ProgramFiles\swipl-8.4.2\bin;C:\ProgramFiles\nasm;C:\ProgramFiles;C:\Users\snedunu\AppData\Local\Microsoft\WindowsApps;C:\ProgramFiles\MiKTeX\miktex\bin\x64;C:\ProgramFiles\Microsoft VS Code\bin;C:\ProgramFiles\Graphviz\bin;C:\ProgramFiles\ghcup\bin;C:\cygwin64\lib\lapack
2022-09-14 22:39:32.2130000 [client] INFO Finding haskell-language-server
2022-09-14 22:39:32.2140000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:32.3510000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:32.3520000 [client] INFO Executing 'ghcup --no-verbose upgrade' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:32.9020000 [client] DEBUG Execution of 'ghcup --no-verbose upgrade' terminated with code 0
2022-09-14 22:39:32.9020000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:33.0250000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:33.0260000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:33.1410000 [client] DEBUG Execution of 'ghcup --no-verbose list -t hls -c installed -r' terminated with code 0
2022-09-14 22:39:33.1410000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:33.2670000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:33.2670000 [client] INFO Executing 'ghcup --no-verbose list -t cabal -c installed -r' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:33.3790000 [client] DEBUG Execution of 'ghcup --no-verbose list -t cabal -c installed -r' terminated with code 0
2022-09-14 22:39:33.3800000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:33.5060000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:33.5060000 [client] INFO Executing 'ghcup --no-verbose list -t stack -c installed -r' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:33.6140000 [client] DEBUG Execution of 'ghcup --no-verbose list -t stack -c installed -r' terminated with code 0
2022-09-14 22:39:33.7310000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:33.8460000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:33.8470000 [client] INFO Executing 'ghcup --no-verbose whereis hls 1.7.0.0' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:33.9190000 [client] DEBUG Execution of 'ghcup --no-verbose whereis hls 1.7.0.0' terminated with code 0
2022-09-14 22:39:33.9200000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:34.0370000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:34.0380000 [client] INFO Executing 'ghcup --no-verbose whereis cabal 3.6.2.0' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:34.1080000 [client] DEBUG Execution of 'ghcup --no-verbose whereis cabal 3.6.2.0' terminated with code 0
2022-09-14 22:39:34.1080000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:34.2180000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:34.2190000 [client] INFO Executing 'ghcup --no-verbose whereis stack 2.7.5' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:34.2840000 [client] DEBUG Execution of 'ghcup --no-verbose whereis stack 2.7.5' terminated with code 0
2022-09-14 22:39:34.3940000 [client] INFO Executing 'ghc.exe --numeric-version' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:34.7300000 [client] DEBUG Execution of 'ghc.exe --numeric-version' terminated with code 0
2022-09-14 22:39:34.7300000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:34.8500000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:34.8500000 [client] INFO Executing 'ghcup --no-verbose run --hls 1.7.0.0 --cabal 3.6.2.0 --stack 2.7.5 --install' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:35.1860000 [client] DEBUG Execution of 'ghcup --no-verbose run --hls 1.7.0.0 --cabal 3.6.2.0 --stack 2.7.5 --install' terminated with code 0
2022-09-14 22:39:35.1860000 [client] INFO Working out the project GHC version. This might take a while...
2022-09-14 22:39:35.1870000 [client] INFO Executing 'haskell-language-server-wrapper --project-ghc-version' in cwd 'c:\Users\snedunu\Documents\Projects\FM\qq2'
2022-09-14 22:39:45.6140000 [client] DEBUG Execution of 'haskell-language-server-wrapper --project-ghc-version' terminated with code 0
2022-09-14 22:39:45.6140000 [client] INFO The GHC version for the project or file: 8.10.7
2022-09-14 22:39:45.7570000 [client] INFO Platform constants: Windows, A_64
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.1.0 compatible with GHC Versions: 8.6.4,8.6.5,8.8.4,8.10.2,8.10.3,8.10.4
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.2.0 compatible with GHC Versions: 8.10.2,8.10.3,8.10.4,8.10.5,8.6.4,8.6.5,8.8.4
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.3.0 compatible with GHC Versions: 8.10.2,8.10.3,8.10.4,8.10.5,8.6.4,8.6.5,8.8.4,9.0.1
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.4.0 compatible with GHC Versions: 8.10.2,8.10.3,8.10.4,8.10.5,8.10.6,8.10.7,8.6.4,8.6.5,8.8.4,9.0.1
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.5.0 compatible with GHC Versions: 8.10.5,8.10.6,8.10.7,8.6.5,8.8.4,9.0.1
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.5.1 compatible with GHC Versions: 8.10.5,8.10.6,8.10.7,8.6.5,8.8.4,9.0.1
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.6.0.0 compatible with GHC Versions: 8.10.6,8.10.7,8.6.5,8.8.4,9.0.1,9.0.2,9.2.1
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.6.1.0 compatible with GHC Versions: 8.10.6,8.10.7,8.6.5,8.8.4,9.0.1,9.0.2,9.2.1
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.7.0.0 compatible with GHC Versions: 8.6.5,8.8.4,8.10.7,9.0.2,9.2.1,9.2.2
2022-09-14 22:39:45.7570000 [client] DEBUG HLS 1.8.0.0 compatible with GHC Versions: 8.10.7,9.0.2,9.2.3,9.2.4,9.4.1,9.4.2
2022-09-14 22:39:45.7570000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:45.8870000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:45.8870000 [client] INFO Executing 'ghcup --no-verbose list -t hls -c installed -r' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:46.0170000 [client] DEBUG Execution of 'ghcup --no-verbose list -t hls -c installed -r' terminated with code 0
2022-09-14 22:39:46.0170000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:46.1640000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:46.1650000 [client] INFO Executing 'ghcup --no-verbose whereis bindir' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:46.2430000 [client] DEBUG Execution of 'ghcup --no-verbose whereis bindir' terminated with code 0
2022-09-14 22:39:46.2450000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:46.3830000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:46.3840000 [client] INFO Executing 'ghcup --no-verbose whereis hls 1.8.0.0' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:46.4780000 [client] DEBUG Execution of 'ghcup --no-verbose whereis hls 1.8.0.0' terminated with code 30
2022-09-14 22:39:46.4780000 [client] ERROR Error executing 'ghcup --no-verbose whereis hls 1.8.0.0' with error code 30
2022-09-14 22:39:46.4780000 [client] ERROR stderr: �[1m[ Error ]�[0m The version 1.8.0.0 of the tool hls is not installed.

2022-09-14 22:39:46.4780000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:46.6200000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:46.6210000 [client] INFO Executing 'ghcup --no-verbose whereis ghc 8.10.7' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:39:46.7020000 [client] DEBUG Execution of 'ghcup --no-verbose whereis ghc 8.10.7' terminated with code 0
2022-09-14 22:39:49.7550000 [client] INFO User accepted download for hls-1.8.0.0.
2022-09-14 22:39:49.7550000 [client] INFO Checking for ghcup installation
2022-09-14 22:39:49.8900000 [client] INFO found ghcup at ghcup
2022-09-14 22:39:49.8910000 [client] INFO Executing 'ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.6.2.0 --stack 2.7.5 --ghc 8.10.7 --install' in cwd 'C:\ProgramFiles\Microsoft VS Code'
2022-09-14 22:40:34.8750000 [client] DEBUG Execution of 'ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.6.2.0 --stack 2.7.5 --ghc 8.10.7 --install' terminated with code 27
2022-09-14 22:40:34.8750000 [client] ERROR Error executing 'ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.6.2.0 --stack 2.7.5 --ghc 8.10.7 --install' with error code 27
2022-09-14 22:40:34.8750000 [client] ERROR stderr: �[1m[ Info  ]�[0m verifying digest of: gs.exe
�[1m[ Info  ]�[0m downloading: https://downloads.haskell.org/~hls/haskell-language-server-1.8.0.0/haskell-language-server-1.8.0.0-x86_64-windows.zip as file C:\ProgramFiles\ghcup\tmp\ghcup-05db4a414d04d1ec\haskell-language-server-1.8.0.0-x86_64-windows.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  2  348M    2 7468k    0     0  9243k      0  0:00:38 --:--:--  0:00:38 9243k
  5  348M    5 18.3M    0     0  10.1M      0  0:00:34  0:00:01  0:00:33 10.1M
  8  348M    8 29.9M    0     0  10.6M      0  0:00:32  0:00:02  0:00:30 10.6M
 12  348M   12 42.2M    0     0  11.1M      0  0:00:31  0:00:03  0:00:28 11.1M
 15  348M   15 52.4M    0     0  10.9M      0  0:00:31  0:00:04  0:00:27 10.9M
 17  348M   17 62.1M    0     0  10.7M      0  0:00:32  0:00:05  0:00:27 10.9M
 21  348M   21 74.1M    0     0  10.8M      0  0:00:31  0:00:06  0:00:25 11.1M
 24  348M   24 85.7M    0     0  10.9M      0  0:00:31  0:00:07  0:00:24 11.1M
 28  348M   28 97.6M    0     0  11.0M      0  0:00:31  0:00:08  0:00:23 11.0M
 31  348M   31  109M    0     0  11.1M      0  0:00:31  0:00:09  0:00:22 11.3M
 34  348M   34  120M    0     0  11.1M      0  0:00:31  0:00:10  0:00:21 11.7M
 37  348M   37  129M    0     0  10.9M      0  0:00:31  0:00:11  0:00:20 11.1M
 38  348M   38  135M    0     0  10.5M      0  0:00:32  0:00:12  0:00:20  9.9M
 42  348M   42  147M    0     0  10.6M      0  0:00:32  0:00:13  0:00:19  9.9M
 45  348M   45  158M    0     0  10.7M      0  0:00:32  0:00:14  0:00:18  9.9M
 48  348M   48  170M    0     0  10.7M      0  0:00:32  0:00:15  0:00:17  9.9M
 52  348M   52  182M    0     0  10.8M      0  0:00:32  0:00:16  0:00:16 10.5M
 55  348M   55  194M    0     0  10.8M      0  0:00:31  0:00:17  0:00:14 11.6M
 59  348M   59  206M    0     0  10.9M      0  0:00:31  0:00:18  0:00:13 11.8M
 61  348M   61  215M    0     0  10.8M      0  0:00:32  0:00:19  0:00:13 11.2M
 64  348M   64  225M    0     0  10.8M      0  0:00:32  0:00:20  0:00:12 10.8M
 67  348M   67  236M    0     0  10.8M      0  0:00:32  0:00:21  0:00:11 10.9M
 71  348M   71  248M    0     0  10.9M      0  0:00:31  0:00:22  0:00:09 10.9M
 74  348M   74  260M    0     0  10.9M      0  0:00:31  0:00:23  0:00:08 10.8M
 77  348M   77  271M    0     0  10.9M      0  0:00:31  0:00:24  0:00:07 11.2M
 80  348M   80  281M    0     0  10.9M      0  0:00:31  0:00:25  0:00:06 11.3M
 83  348M   83  292M    0     0  10.9M      0  0:00:31  0:00:26  0:00:05 11.1M
 86  348M   86  302M    0     0  10.8M      0  0:00:31  0:00:27  0:00:04 10.8M
 90  348M   90  314M    0     0  10.9M      0  0:00:31  0:00:28  0:00:03 10.7M
 93  348M   93  325M    0     0  10.9M      0  0:00:31  0:00:29  0:00:02 10.7M
 96  348M   96  336M    0     0  10.9M      0  0:00:31  0:00:30  0:00:01 10.9M
 99  348M   99  346M    0     0  10.9M      0  0:00:31  0:00:31 --:--:-- 10.8M
100  348M  100  348M    0     0  10.9M      0  0:00:31  0:00:31 --:--:-- 10.9M
�[1m[ Info  ]�[0m verifying digest of: haskell-language-server-1.8.0.0-x86_64-windows.zip
�[1m[ Info  ]�[0m Unpacking: haskell-language-server-1.8.0.0-x86_64-windows.zip to C:\ProgramFiles\ghcup\tmp\ghcup-55ec3dc796530789
�[1m[ Error ]�[0m Tar directory does not exist: haskell-language-server-1.8.0.0

2022-09-14 22:40:34.8750000 [client] ERROR Internal Error: `ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.6.2.0 --stack 2.7.5 --ghc 8.10.7 --install` exited with exit code 27.
                              Consult the [Extensions Output](https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems)
                              for details.
2022-09-14 22:40:34.8760000 [client] ERROR Error: `ghcup --no-verbose run --hls 1.8.0.0 --cabal 3.6.2.0 --stack 2.7.5 --ghc 8.10.7 --install` exited with exit code 27.
                              Consult the [Extensions Output](https://github.com/haskell/vscode-haskell#investigating-and-reporting-problems)
                              for details.
	at c:\Users\snedunu\.vscode\extensions\haskell.haskell-2.2.1\dist\extension.js:1:341165
	at ChildProcess.exithandler (node:child_process:415:5)
	at ChildProcess.emit (node:events:526:28)
	at maybeClose (node:internal/child_process:1092:16)
	at ChildProcess._handle.onexit (node:internal/child_process:302:5)

@michaelpj michaelpj transferred this issue from haskell/haskell-language-server Sep 15, 2022
@michaelpj
Copy link
Contributor

cc @maerwald

@fendor
Copy link
Collaborator

fendor commented Sep 15, 2022

The release is broken for windows and likely ubuntu, work-around is described here https://discourse.haskell.org/t/ann-haskell-language-server-1-8-0-0-released/5053/11

@hasufell
Copy link
Member

Windows is fixed. Ubuntu is coming later today. Folks will have to ghcup rm hls 1.8.0.0 && ghcup install hls latest once it's rolled out.

@hasufell
Copy link
Member

Ubuntu has been fixed: haskell/ghcup-metadata@cea8655

Bindists are unofficial: https://downloads.haskell.org/~ghcup/unofficial-bindists/haskell-language-server/1.8.0.0/

CI run: https://github.com/haskell/ghcup-metadata/actions/runs/3066752966


To fix your existing installation run this:

ghcup rm hls 1.8.0.0
ghcup install hls 1.8.0.0

@houseofwealth
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants