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

hie-wrapper.exe not being installed the same way as hie.exe #1635

Closed flip111 closed 4 years ago

flip111 commented 4 years ago
haskell-ide-engine> Preprocessing executable 'hie-wrapper' for haskell-ide-engine-1.0.0.0..
haskell-ide-engine> Building executable 'hie-wrapper' for haskell-ide-engine-1.0.0.0..
haskell-ide-engine> [1 of 2] Compiling Main
haskell-ide-engine> [2 of 2] Compiling Paths_haskell_ide_engine
haskell-ide-engine> Linking .stack-work\dist\e626a42b\build\hie-wrapper\hie-wrapper.exe ...
haskell-ide-engine> Preprocessing executable 'hie' for haskell-ide-engine-1.0.0.0..
haskell-ide-engine> Building executable 'hie' for haskell-ide-engine-1.0.0.0..
haskell-ide-engine> [1 of 3] Compiling Paths_haskell_ide_engine
haskell-ide-engine> [2 of 3] Compiling RunTest
haskell-ide-engine> [3 of 3] Compiling Main
haskell-ide-engine> Linking .stack-work\dist\e626a42b\build\hie\hie.exe ...
haskell-ide-engine> Preprocessing library 'hie-test-utils' for haskell-ide-engine-1.0.0.0..
haskell-ide-engine> Building library 'hie-test-utils' for haskell-ide-engine-1.0.0.0..
haskell-ide-engine> [1 of 1] Compiling TestUtils
haskell-ide-engine> copy/register
haskell-ide-engine> Installing library in C:\Users\flip111\haskell\haskell-ide-engine\.stack-work\install\58a8ec84\lib\x86_64-windows-ghc-8.6.5\haskell-ide-engine-1.0.0.0-K6hxICiYLvOLlJEIwZ0iaj
haskell-ide-engine> Installing executable hie-wrapper in C:\Users\flip111\haskell\haskell-ide-engine\.stack-work\install\58a8ec84\bin
haskell-ide-engine> Installing executable hie in C:\Users\flip111\haskell\haskell-ide-engine\.stack-work\install\58a8ec84\bin

After this hie.exe get another action

Copying from C:\Users\flip111\haskell\haskell-ide-engine\.stack-work\install\58a8ec84\bin\hie.exe to C:\Users\flip111\AppData\Roaming\local\bin\hie.exe

No such action is attempted for hie-wrapper.exe. Visual studio code advises to use hie-wrapper because of the project using a different GHC version. But the build directory of stack in not in my PATH.

flip111 commented 4 years ago

Might be related to https://github.com/haskell/haskell-ide-engine/issues/1634

flip111 commented 4 years ago

This is because hie.exe failed to installed so it doesn't attempt to install other executables.