rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Always builds with $HOME/.stack as stack root #571

Closed cdfa closed 4 years ago

cdfa commented 4 years ago

Hi, I recently moved my stack root to another drive because it was getting too big. I set the environment variable $STACK_ROOT to the new locations and when I run stack build everything works fine.

However, when I open the project in intellij, it starts building dependencies with the default stack root. Even when I --stack-root /home/stack to the stack arguments in the settings, it does not use my new root.

rikvdkleij commented 4 years ago

Thanks for reporting!

Maybe it helps to use IntelliJ Setting Path Variables?

cdfa commented 4 years ago

This works! Did not know about the setting. Thank you! :)

cdfa commented 4 years ago

Oh, it works for the REPLs it uses for providing language support, but the run configurations still use the default stack root.

rikvdkleij commented 4 years ago

Ok, I see, will fix that.

rikvdkleij commented 4 years ago

Should be fixed in beta75

cdfa commented 4 years ago

Can confirm! Thank you :)