haskell / haskell-ide-engine

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

Error hie-test-utils compiling for hie-8.6.3 on Mac OS X mojave. #1041

Closed wpoosanguansit closed 5 years ago

wpoosanguansit commented 5 years ago

I do get:

Installing internal library hie-test-utils in /Users/anonym/Downloads/haskell-ide-engine/.stack-work/install/x86_64-osx/lts-13.0/8.6.3/lib/x86_64-osx-ghc-8.6.3/haskell-ide-engine-0.5.0.0-9vWVKrscep560EmwgxGLne-hie-test-utils Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.3: Error: Could not find module: TestUtils with any suffix: ["hi"] in the search path: [".stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/hie-test-utils"]

lukel97 commented 5 years ago

Does running stack clean/stack clean --full help? You might also want to make sure that you're on stack 1.9.3 for this, internal libraries were broken on stack 1.9.1, and you can upgrade to it with stack upgrade

Anrock commented 5 years ago

rm -rf ~/.stack then stack upgrade did the trick. Thanks.

Fixed identical case in #1046, so closing this. If that wouldn't help - feel free to reopne.

wpoosanguansit commented 5 years ago

I am sorry for being late. Just like to confirm that update stack to the latest version 1.9.3 resolves the issue.

haskell-ide-engine git:(master) ✗ hie --version Version 0.5.0.0, Git revision 81c26ad8e226688e4564ca907d59726dbe45ea02 (dirty) (2359 commits) x86_64 ghc-8.6.3