Getting intellij.util.EnvironmentUtil - can't get shell environment exception in intellij 14

It works fine in intelliJ 15 but throws the following exception in intelliJ 14.

[ 149] WARN - .intellij.util.EnvironmentUtil - can't get shell environment
java.lang.Exception: rv:0 text:0
at com.intellij.util.EnvironmentUtil.getShellEnv(EnvironmentUtil.java:166)
at com.intellij.util.EnvironmentUtil.access$000(EnvironmentUtil.java:41)
at com.intellij.util.EnvironmentUtil$1.call(EnvironmentUtil.java:54)
at com.intellij.util.EnvironmentUtil$1.call(EnvironmentUtil.java:50)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

My plugin uses `PATH` env variable but the values are not present in PATH variable because of the above exception.

In IntelliJ 15, it doesn't throw the exception and all the values are present in `PATH` env variable.

Any idea why is it happening and how to fix it?

3 comments
Comment actions Permalink

Please try to replace IDEA.app/bin/printenv.py with the latest version from https://github.com/JetBrains/intellij-community/tree/master/bin/mac.

0
Comment actions Permalink

It works after changing the file.

Do the users using IntelliJ14 has to update the file to work with my plugin?

0
Comment actions Permalink

The script fails only on some configurations. Only those users for whom it fails may need to update it.

0

Please sign in to leave a comment.