lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
690 stars 72 forks source link

Error while loading shared libraries #355

Open ianyepan opened 2 years ago

ianyepan commented 2 years ago

I'm on Arch Linux, and after upgrading my GHC to version 9.0.1, I'm seeing the following error whenever I invoke brittany:

brittany: error while loading shared libraries: libHSyaml-0.11.5.0-WMSyIrC9QZ7gx9KSZbtQT-ghc8.10.5.so: cannot open shared object file: No such file or directory

How can I go about fixing this? Any help is appreciated.

tfausak commented 2 years ago

I'm not sure exactly. Brittany doesn't officially support GHC 9.0.1 (#352), but I'm not sure that's the issue here.

felixonmars commented 2 years ago

I believe the GHC 9.0 rebuild excluded brittany so it's currently unavailable in Arch anymore.

Sorry for the trouble. We'll add brittany back when it gains GHC 9.0 support.

ianyepan commented 2 years ago

Actually, I just installed the package "brittany" and it's been working fine. The error I reported was coming from the haskell-brittany package I installed, which does not exist anymore.

Edit: brittany appears to be an orphaned AUR package though.

tfausak commented 2 years ago

Version 0.14 of Brittany supports GHC 9.0. Also it has precompiled binaries for Linux, so you could give those a try.