question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot download cabal config file for stack resolver lts 13.14

See original GitHub issue

We’ve already been there in #377 - but apparently it’s not resolved:

15:48	Can not download cabal config file for stack resolver lts-13.14, please check your network environment.

Your current beta of the plugin, Intellij IDEA 2019.1.

$ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1
$ 

and intero is on the path in $HOME/.cabal/bin/

How to proceed?

Update Not sure if it’s related - but I’m getting a ton of these:

[project-stack-repl-SplitStr:lib]  : can't load .so/.DLL for: libHSghc-prim-0.5.3.dylib (dlopen(libHSghc-prim-0.5.3.dylib, 5): image not found)

SplitStr is the name of my project. Don’t know what stack it uses, but stack in general runs on this machine. Can’t figure what executable is trying to dlopen(libHSghc-prim...), but it would be good to know. Also, all the main/normal components appear to work:

$ happy --version
Happy Version 1.19.9 Copyright (c) 1993-1996 Andy Gill, Simon Marlow (c) 1997-2005 Simon Marlow

Happy is a Yacc for Haskell, and comes with ABSOLUTELY NO WARRANTY.
This program is free software; you can redistribute it and/or modify
it under the terms given in the file 'LICENSE' distributed with
the Happy sources.
$ happy --version
Happy Version 1.19.9 Copyright (c) 1993-1996 Andy Gill, Simon Marlow (c) 1997-2005 Simon Marlow

Happy is a Yacc for Haskell, and comes with ABSOLUTELY NO WARRANTY.
This program is free software; you can redistribute it and/or modify
it under the terms given in the file 'LICENSE' distributed with
the Happy sources.
$ hindent --version
hindent 5.2.7
$ hdocs --version
Usage:
  hdocs <module> - get docs for module/file
  hdocs <module> <name> - get docs for name in module/file
  hdocs dump [r] - dump all installed docs, if [r], find docs for reexported declarations

flags
              --pretty       pretty JSON output
  -g GHC_OPT  --ghc=GHC_OPT  option to pass to GHC

$ intero --version
Intero 0.1.39
$ hsdev version
0.3.3.1
$

but of course all of the above were installed via cabal, not stack. stack fails to install most of them.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Mar 28, 2019

Can you do anything about it? Maybe have the plugin copy from $HOME/.cabal/config if it exists, and https://stackage.org did not provide its own?

Yes, will change the plugin so it will fallback to a default cabal.config.

Also, would you know what’s happening with (or, more importantly, what causes) this:

Looks like this issue: https://github.com/chrisdone/intero/issues/43

You should not install intero globally. The plugin builds intero with same Stackage resolver/GHC version as your project.

0reactions
rikvdkleijcommented, May 22, 2019

Please reopen when still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LTS Haskell 13.14 (ghc-8.6.4) :: Stackage Server
resolver : lts-13.14 ... cabal2nix-2.12, Convert Cabal files into Nix build instructions ... An implementation of forkIO for monad stacks.
Read more >
2.1. Configuration — Cabal <release> User's Guide
The global configuration file for cabal-install is ~/.cabal/config . ... and cabal will combine them and be able to download packages from any...
Read more >
User guide - The Haskell Tool Stack
The Setup.hs file is a component of the Cabal build system which stack uses. It's technically not needed by stack, but it is...
Read more >
Stack only finds newer version of Cabal
Stack solver error messages are known to be bad and choke on cabal output. I don't believe this feature is well maintained.
Read more >
haskell - Official Image | Docker Hub
FROM haskell:8.10 RUN stack install --resolver lts-17.14 pandoc citeproc ... RUN cabal update # Add just the .cabal file to capture dependencies COPY...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found