haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 209 forks source link

Bug : addDLL - libpq or dependencies not loaded #1745

Closed Kurren123 closed 4 years ago

Kurren123 commented 4 years ago

Hi

I'm trying to use the postgresql-simple package on windows 10. I have postgresql installed, and the following file does exist on my pc: C:\Program Files\PostgreSQL\11\lib\libqp.dll.

However I am getting the following HIE error:

2020-04-19 07:46:59.9398293 [ThreadId 3] - Ghc error on cradle initialisation: "addDLL: C:\\PROGRA~1\\POSTGR~1\\11\\lib\\libpq or dependencies not loaded. (Win32 er"

Full output of hie --debug --vomit can be found here. Source repository here.

Any help would be much appreciated!

jneira commented 4 years ago

Hi! i am afraid that i've tried to reproduce it with no luck:

imagen

Are you able to build the project in the command line with stack build? did you do that before opening the project dir with the editor?

The output of the extension in vscode could be useful, too. Mine is here.

Kurren123 commented 4 years ago

Hi @jneira , thanks for your reply. Seeing as it was working on yours, I re-installed postgresql 11 using the windows installer (previously I used chocolatey) and it works. I think its because some libraries that libqp.dll depended on were missing. Closing issue