You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to change to development mode when building a project with Intellij?
I've been able to change to development mode when using the sbt console with environment variables or sbt commands but this doesn't work when doing Build > Build Project from the intellij UI.
It would be nice to be able to do this to not have to worry about unused variables or imports when developing.
The text was updated successfully, but these errors were encountered:
I've transferred this to sbt-tpolecat because scalac-options does not know about modes, so it belongs here.
It's an interesting question - I don't believe that IntelliJ uses sbt for builds unless you specifically configure it to delegate build actions to sbt.
As a result, it can't pick up scalac options that depend on more dynamic sbt configuration.
If you are delegating build actions to sbt, then you need to find a way to pass environment variables to sbt when building in IntelliJ.
I'm not an IntelliJ user so it's hard for me to advise how to go about doing that!
Is there a way to change to development mode when building a project with Intellij?
I've been able to change to development mode when using the sbt console with environment variables or sbt commands but this doesn't work when doing Build > Build Project from the intellij UI.
It would be nice to be able to do this to not have to worry about unused variables or imports when developing.
The text was updated successfully, but these errors were encountered: