DEV Community

Discussion on: VS Code for Haskell in 2020

Collapse
 
jasonsbarr profile image
Jason Barr

stack install intero

RedownloadInvalidResponse Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/fpco/lts-haskell/master//lts-15.1.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 "C:\\sr\\build-plan\\lts-15.1.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Connection","keep-alive"),("Content-Length","15"),("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","8524:489A:0056:006F:5E54091D"),("Accept-Ranges","bytes"),("Date","Mon, 24 Feb 2020 17:34:23 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-chi21128-CHI"),("X-Cache","HIT, MISS"),("X-Cache-Hits","1, 0"),("X-Timer","S1582565663.254117,VS0,VE21"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","c87bcd6b5c2f58d489911cf06e3fcfc5485e2fb0"),("Expires","Mon, 24 Feb 2020 17:39:23 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})

I don't know enough about it to know what I'm doing wrong or why it's not working, and trying to Google for info isn't helping.

Things like this make me really appreciate npm install -g [...].

Collapse
 
egregors profile image
Egregors

This is looks like some network failure. Just checked clean install stack dependencies on the Windows, and all seems works (Windows 10 Pro, x64). Please, check your network and try again. If you'll got this error one more time, could you please sent me more information about your system and setups?

Collapse
 
jasonsbarr profile image
Jason Barr

It turns out I needed to run stack update to get current resolver values. I finally figured it out earlier today.

It took 2+ days to find a resource that mentioned doing this (it was a Github issue thread for some other project, the name of which escapes me at the moment). Not a single one of the tutorials I found on setting up VS Code for Haskell or otherwise getting started with Haskell/Stack mentioned it.

If I didn't really want to learn Haskell I would have skipped out much earlier.

Collapse
 
jasonsbarr profile image
Jason Barr • Edited

By the way, intero is no longer being developed and will likely stop working with some unspecified future version of GHC, which means Haskelly will also not fully work anymore.

I installed haskell-ide-helper and the VSCode Haskell language server extension instead of intero and Haskelly on the advice of vacationlabs.com/haskell/environme..., which I found after the aforementioned Github issue thread.