This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Got error while processing diagnostics (Cannot load -dynamic objects) #1101
Open
Description
I am trying to setup HIE with VS Code on mac OS but whenever I open Haskell file, I got following error:
Got error while processing diagnostics: lib/LensesConfig.hs:1:1: fatal: Cannot load -dynamic objects when GHC is built the normal way To fix this, either: (1) Use -fexternal-interpreter, or (2) Build the program twice: once the normal way, and then with -dynamic using -osuf to set a different object file suffix.
Source: Haskell Language Server (Extension)
I followed the installation instructions in README and built HIE using make hie-8.4.3
(hie and hie-wrapper are in $PATH
). The project I am working on is open source (available here: https://github.com/ds-wizard/dsw-server) and builds without errors. Even though the error message is pretty clear I am not sure how to fix it 😞 .
I assumed the problem is caused by VS Code extension, but got the same error with Atom.
Any help is appreciated :-)