-
Notifications
You must be signed in to change notification settings - Fork 208
error working with vscode:libHSghc-prim-0.5.3.so not found #1686
Comments
I've also encountered the same thing, and am so unable to use the extension at all. This occurs with GHC 8.8.3 and HIE 8.8.2 for me. |
Mismatching ghc and hie versions just do not work. Please install one hie version for each ghc version.
You should use the same GHC version for the project as you have compiled HIE with. If you did that and you dont understand why this message is shown, and you are using stack, then make sure that you open HIE in the same directory your |
After having compiled HIE with 8.8.3 (via using the I'll try compiling HIE with 8.8.2 and using GHC 8.8.2 in the session later. |
What operating system are you using? |
Arch Linux. I edited the PKGBUILD of the AUR package to use the following stack.yaml file for building HIE with GHC 8.8.3 - note the changed resolver and allow-newer: true: stack-8.8.3.yamlresolver: lts-15.5
packages:
- .
- hie-plugin-api
extra-deps:
# - ./submodules/HaRe
- apply-refact-0.7.0.0
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: jneira/cabal-helper
commit: ffb1f57a5ffc6b7ac3c46a9974c4420a6d2bb9b2
- clock-0.7.2
- constrained-dynamic-0.1.0.0
- floskell-0.10.2
- ghc-lib-parser-8.8.2.20200205
- ghc-lib-parser-ex-8.8.5.3
# To avoid build error with ghc-8.8.2
# See https://github.com/haskell/haddock/issues/1123
- git: https://github.com/haskell/haddock.git
commit: be8b02c4e3cffe7d45b3dad0a0f071d35a274d65
subdirs:
- haddock-api
# - haddock-api-2.23.0
- haddock-library-1.8.0
- haskell-lsp-0.20.0.0
- haskell-lsp-types-0.20.0.0
- lsp-test-0.10.1.0
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- ilist-0.3.1.0
- monad-dijkstra-0.1.1.2
- ormolu-0.0.3.1
- semigroups-0.18.5
- temporary-1.2.1.1
flags:
haskell-ide-engine:
pedantic: true
hie-plugin-api:
pedantic: true
allow-newer: true
nix:
packages: [ icu libcxx zlib ]
concurrent-tests: false |
Test of HIE compiled with GHC 8.8.2, using GHC 8.8.2 in the projectWithout editing the PKGBUILD of the AUR pkg, which is as follows: PKGBUILD
stack-8.8.2.yamlresolver: lts-15.2
packages:
- .
- hie-plugin-api
extra-deps:
# - ./submodules/HaRe
- apply-refact-0.7.0.0
- brittany-0.12.1.1
- bytestring-trie-0.2.5.0
# - cabal-helper-1.0.0.0
- github: jneira/cabal-helper
commit: ffb1f57a5ffc6b7ac3c46a9974c4420a6d2bb9b2
- clock-0.7.2
- constrained-dynamic-0.1.0.0
- floskell-0.10.2
- ghc-lib-parser-8.8.2.20200205
- ghc-lib-parser-ex-8.8.5.3
# To avoid build error with ghc-8.8.2
# See https://github.com/haskell/haddock/issues/1123
- git: https://github.com/haskell/haddock.git
commit: be8b02c4e3cffe7d45b3dad0a0f071d35a274d65
subdirs:
- haddock-api
# - haddock-api-2.23.0
- haddock-library-1.8.0
- haskell-lsp-0.20.0.0
- haskell-lsp-types-0.20.0.0
- lsp-test-0.10.1.0
- hie-bios-0.4.0
- hlint-2.2.11
- hoogle-5.0.17.15
- hsimport-0.11.0@rev1
- ilist-0.3.1.0
- monad-dijkstra-0.1.1.2
- ormolu-0.0.3.1
- semigroups-0.18.5
- temporary-1.2.1.1
flags:
haskell-ide-engine:
pedantic: true
hie-plugin-api:
pedantic: true
# allow-newer: true
nix:
packages: [ icu libcxx zlib ]
concurrent-tests: false I placed a doubleMe.hsdoubleMe x = x + x
blah :: Int
blah = 1 + sad
blah1 :: Int
blah1 = 1 + "sad" Those are the only two files in that directory. With Error log
|
The example you have shown ought to work, if there is no Do
Looks like the error message you need to fix. |
I have found that with no With a For a new project created with Overall I'd say the extension works for stack projects, but not for individual files, which is very confusing for someone new to Haskell. For example, I started using a tutorial for beginners, made a .hs file, and ran into the extension not working. It might be useful to, if there is no |
That is somewhat true. Main reason is that it is difficult. cradle:
stack:
component: "./File.hs" Similiarily, I think it should work for your use-case as well.
Do you have both ghc and stack installed on your system? If yes, I assume that your ghc is installed via pacman? |
Adding that It might be a good idea to add a single-file or non-project example to the README (something along the lines of "If you're not working within a project, or just want to run a single file, use something like this"), to supply a more informative error, perhaps one that auto-generates such a file ("Could not find a project - you may need to supply a hie.yaml file [link to mentioned example in the README]. Generate one for ___.hs?")
GHC is indeed installed via pacman, and stack is installed through the |
Yeah, the power and usage is vastly under-documented.
Yeah, that could be helpful. We are happy for PRs :)
Then I assume that your error happens because of the dynamic linking mess, |
I'll see what I can do on that front :)
That's possible! I may at some point try installing GHC and stack solely through manual means to try and test it. |
That would be great! Afaict, ghcup is easy to set up! |
It happens that the lib libHSghc-prim-0.5.3.so cannot be found.In fact, the lib is in /lib/ghc-8.8.3/ghc-prim-0.5.3/libHSghc-prim-0.5.3-ghc8.8.3.so, and simply creating links or running ldconfig does not work.
After reporting the not-found error, the hie module continue to panic.Here's the log.
Details
The text was updated successfully, but these errors were encountered: