JuliaEditorSupport / julia-intellij

:computer: Julia Plugin for IntelliJ IDEA ┗:smiley:┛ ┏:smiley:┓ ┗:smiley:┛
GNU General Public License v3.0
303 stars 30 forks source link

add Environment variable configuration for Running #378

Open zxj5470 opened 5 years ago

zxj5470 commented 5 years ago

Java Application : image

Our Run configuration : image

zxj5470 commented 5 years ago

We need to Run environment variable like

using Distributed
println(Threads.nthreads())

when I set an environment variable,such as JULIA_NUM_THREADS , to 12 It'll become like this: image

But our plugin doesn't load it: image

ice1000 commented 5 years ago

I think that's because you're modifying env var in your bashrc, which is ignored by IntelliJ's ProcessWrapper.

zxj5470 commented 5 years ago

No,it's Windows. And JULIA_NUM_THREADS is an All user environment variable.

ice1000 commented 5 years ago

woc

zxj5470 commented 5 years ago

Well,all user environment variable is different from current user……But we still need to append some variables when running.

ice1000 commented 5 years ago

I will take care of this, don't worry