Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change modes in intellij #180

Open
petern-sc opened this issue Sep 19, 2023 · 2 comments
Open

Change modes in intellij #180

petern-sc opened this issue Sep 19, 2023 · 2 comments

Comments

@petern-sc
Copy link

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.

@DavidGregory084 DavidGregory084 transferred this issue from typelevel/scalac-options Sep 19, 2023
@DavidGregory084
Copy link
Member

DavidGregory084 commented Sep 19, 2023

Hi @petern-sc!

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!

@petern-sc
Copy link
Author

I must have gone to my wrong open tab 😅. Thanks for transferring this over

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants