-
Notifications
You must be signed in to change notification settings - Fork 100
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
Stack setup failed with error 1 #298
Comments
Maybe the problem is that setup_haskell.hs calls stack internally with a shabang: So invoking I believe @p-alik is familiar with that section of code and may be able to investigate. |
Installation succeeded on ubuntu 18.04.
setup_haskell.hs doesn't look for installed helpers. It overrides them heedlessly. |
I also see this error on a more or less clean install of Ubuntu 20.04. Am too much of a noob to diagnose but happy to provide additional info about this system. |
@saniac, please provide:
|
Run in my home directory, I hope that's right. stack --version stack ghc -- --version stack setup --verbosity warning ( doesn't produce any output.) |
Could you try to execute
However on a new vagrant box ubuntu/focal64 I can't reproduce the issue:
|
stack setup --resolver lts-14.12 --verbosity warning echo $7 My laptop has a fairly new Focal install. I've just checked my bash history to see how I got Haskell and stack set up, in case that's relevant. I installed the haskell-platform. Then installed haskell-stack. Then executed stack upgrade. |
|
Output: ~/.config/haskell-vim-now/install.sh |
But also: stack setup --resolver lts-14.12 --verbosity warning echo $0 Which is not 0. I'm just theorising here, but I have bash-it installed. I wonder if something it does is interfering with the shell scripts. I'm just going to uninstall it and see what happens. |
Update: removing bash-it did not make a difference. |
I couldn't reproduce the issue in any of on default installed shells
|
Output attached. |
That's weird, |
I'm sorry to have wasted your time, I'm an idiot who has not closely read instructions. I've reviewed carefully and realise now that sometimes I was typing "echo $? is 0 consistently for both "stack setup --resolver lts-14.12 --verbosity debug" and "stack setup --resolver lts-14.12 --verbosity warning". |
In this case |
Yes, the last lines are: --- Installing plugins using vim-plug... |
Tried again, output below. ... Stack setup failed with exit code: 1 stderr: RedownloadInvalidResponse Request { host = "raw.githubusercontent.com" port = 443 secure = True requestHeaders = [] path = "/fpco/lts-haskell/master//lts-16.10.yaml" queryString = "" method = "GET" proxy = Nothing rawBody = False redirectCount = 10 responseTimeout = ResponseTimeoutDefault requestVersion = HTTP/1.1 } "/home/stephen/.stack/build-plan/lts-16.10.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Connection","keep-alive"),("Content-Length","14"),("Content-Type","text/plain; charset=utf-8"),("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'; sandbox"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","1; mode=block"),("Via","1.1 varnish (Varnish/6.0)"),("X-GitHub-Request-Id","72BE:0BDE:1FBA06:23672E:5F45F959"),("Accept-Ranges","bytes"),("Date","Wed, 26 Aug 2020 05:55:38 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-akl10333-AKL"),("X-Cache","MISS, MISS"),("X-Cache-Hits","0, 0"),("X-Timer","S1598421338.249071,VS0,VE303"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","757882ecee632259d3ac142fcdcbe5c18471ac42"),("Expires","Wed, 26 Aug 2020 06:00:38 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}) stdout: *** setup_haskell.hs failed with error 1. *** Aborting... stephen@vivo:~$ |
Thank you, @saniac! |
There is no mention of the stack version. If this is a stack 1.9 report, then it is no longer supported. |
Okay, I am not sure what is going on but I think the location should be https://github.com/commercialhaskell/stackage-snapshots/blob/master/lts/16/10.yaml Though I am not a stack authority. |
@saniac, I can only guess there is some mixed up in your enviroment because as you mentioned you had installed |
Can confirm, purged Ubuntu Focal haskell-stack, verified stack running from ~/.local/bin is 2.3.3. Still fails. |
@saniac, the last option, I would suggest, is to remove content of |
stephen@vivo: ... Setting up GHC if needed... Still happening I'm afraid. I can't exclude remnants of earlier efforts short of a clean install of this OS, but this is as close as I can get. |
Adding
set -x
to the top of the shell script shows that this is the failing command:I believe I have all the dependencies:
Not sure if it's an issue that
ghc
can only be launched viastack
.The text was updated successfully, but these errors were encountered: