scala - Enable sbt plugin in IntelliJ IDEA 14 -
i trying utilize sbt dotenv plugin intellij thought 14. have scala plugin installed (it seems sbt plugin not there anymore). thought project imported build.sbt.
i added code sbt dotenv readme project/plugins.sbt. added project/build.properties specify sbt version 0.13.6.
when run sbt console in terminal loads .env file , can access env vars sys.get("name"). in idea, not load vars. test adding sys.get("name") 1 of tests , run it. tried restarting thought not help. tried adding project/.env in add-on .env did not help.
if @ sources of dotenv plugin calls dirtyenvironmenthack.setenv works in shell because hack. guess explains environment isn't changed when loaded in intellij.
scala intellij-idea sbt
No comments:
Post a Comment