Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Rename env variable to correct env variable used in atom #184

Merged
merged 1 commit into from
Mar 1, 2017

Conversation

Naki21
Copy link

@Naki21 Naki21 commented Mar 1, 2017

The environmental variable ATOM_SHELL_INTERNAL_RUN_AS_NODE was renamed in the atom source code to ELECTRON_RUN_AS_NODE a while back, but was apparently never changed in the
platformio-terminal code. Changing ATOM_SHELL_INTERNAL_RUN_AS_NODE to ELECTRON_RUN_AS_NODE in the lib/process.coffeefile seems to resolve the issues people have been having not being able to run various commands in the terminal.

The environmental variable 'ATOM_SHELL_INTERNAL_RUN_AS_NODE' was
renamed in the atom source code to 'ELECTRON_RUN_AS_NODE
a while back, but was apparently never changed in the
platformio-terminal code. Changing 'ATOM_SHELL_INTERNAL_RUN_AS_NODE'
to 'ELECTRON_RUN_AS_NODE' in the 'process.coffee' file seems to resolve
the issues people have been having not being able to run various
commands in the terminal.
@Fred-Barclay
Copy link

@ivankravets It looks like this will fix #178 #177 #157 #146 #135 #128 #112 #103 #92 (strangely enough) and possibly #175 #51

@ivankravets ivankravets merged commit 1c7ddb5 into platformio:master Mar 1, 2017
@ivankravets
Copy link
Member

Thanks a lot!

@pbarbiero
Copy link

pbarbiero commented Mar 1, 2017

@Fred-Barclay unfortunately it wont for many of those on windows. The issue is that 'env' variable does not get passed properly or sent to the terminal instance, and I traced it down to pty.js being VERY outdated with tons of known issues. Specifically, see my comments in #112

See microsoft/vscode#13625 notably, which leads to node-pty being the only currently maintained pty fork that I could find.

@pbarbiero
Copy link

I have confirmed that 2.4.0 did NOT fix atleast #112

@efaryna
Copy link

efaryna commented Apr 14, 2017

Does not fix #51

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

Successfully merging this pull request may close these issues.

5 participants