archlinuxcn / repo

Arch Linux CN Repository
1.48k stars 283 forks source link

haskell-language-server-git: built binary contains reference to the build dir #1633

Closed Matelasse closed 4 years ago

Matelasse commented 4 years ago

问题类型 / Type of issues

haskell language server malfunctions when installed from archlinuxcn repos

请在此补充说明。 Please describe in detail here. First of all thanks for precompiling things for us. Now to get to the problem, first I would like to mention that I am not the only person experiencing this problem. The other person, uses AUR package for haskell-language-server and they faced the same issue as I did with HLS from archlinuxcn repos. The exact issue is documented here https://github.com/haskell/haskell-language-server/issues/47: for some reason HLS resolves to a compile-time GHC installation Step 4/6, Cradle 1/1: Loading GHC Session haskell-language-server: /build/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.5/lib/ghc-8.6.5/settings: openFile: does not exist (No such file or directory). The /build/.stack/... seems like a Pacman thing to me. I think HLS picks up compile-time paths as it installs itself. I''m not sure how this can be fixed from Arch packaging side, but for what's it worth git cloning the HLS and building it myself fixed that very issue.

poscat0x04 commented 4 years ago

I think this is a bug of hls itself, the produced binary should not contain any references to the build directory.

poscat0x04 commented 4 years ago

Closed due to stalement