paulo-fernando-silva / vscOctaveDebugger

MIT License
35 stars 4 forks source link

Passing environment variables to octave #49

Closed Marian-Braendle closed 3 years ago

Marian-Braendle commented 3 years ago

Hi, until e37c0ee50a30f87e0a5aa656dd8b8c6b750a32e1 I could pass environment variables by prepending the "octave" setting with e.g. export DISPLAY=:22; octave. With shell not set to true this doesn't work anymore.

Is there any other way to pass environment variables to octave? I couldn't find a working solution.

paulo-fernando-silva commented 3 years ago

I seez. hmm... I can't remember why I added that. I think I'll remove it because I don't think it's doing anything.

paulo-fernando-silva commented 3 years ago

oh, I see the problem. I'll add a new way to pass env to the process as soon as I can. Sorry for the inconvenience.

paulo-fernando-silva commented 3 years ago

Just published version 0.4.15 which adds support for environment variables and more. Both the method you described and "octaveEnvironment": { "FOO": "bar", "VAR": "XPTO" }, are supported. Check readme for details. Reopen if you have problems getting it to work.