rikvdkleij / intellij-haskell

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

Feature request: make Stack root path configurable #612

Closed strump closed 3 years ago

strump commented 3 years ago

Intellij Haskell plugin creates directory %LOCALAPPDATA%\rikvdkleij\intellij-haskell on Windows to store Stack cache, binaries, etc. This path is not configurable and hardcoded in GlobalInfo.scala.

On some machines it could cause a problem. If I'm running out of space on %LOCALAPPDATA% disk I can't move Stack root path to another disk.

It would be great to have something like "Stack root directory:" field in the HaskellConfigurable.scala

rikvdkleij commented 3 years ago

Thanks for reporting!

Yes, can implement that but it will have to consequence that you will have to move the content manually to prevent the plugin has to rebuild all tools again.

rikvdkleij commented 3 years ago

@strump sorry for the delay. Is this feature request still valid?

strump commented 3 years ago

@rikvdkleij yes, this feature would be helpful for me

rikvdkleij commented 3 years ago

Should be fixed in beta85, https://github.com/rikvdkleij/intellij-haskell/releases/tag/v1.0.0-beta85

strump commented 3 years ago

Tested "Cache path" setting with v1.0.0-beta85

Works ok :+1:

rikvdkleij commented 3 years ago

@strump Thanks for testing!