Comments (18)
Sweet, thanks for the workaround!
Just to follow up, the atom debug/console running on Mac didn't give me any output to share. This ancient article related to PHPStorm suggests a java versioning issue.
Your workaround shows a little output on mac every time I open a new instance of the terminal, but it works great.
unset ELECTRON_RUN_AS_NODE
project $ unset ELECTRON_RUN_AS_NODE
project $
I left the issue open in case you are still working on a final fix. From my standpoint though the issue is closed.
Thanks again for all your work on this!
from termination.
@Fred-Barclay platformio-ide-terminal didn't seem to make a difference.
@chrisallenmoore what Java version are you using? Mine is as follows:
~ $ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
~ $ atom --version
Atom : 1.12.3
Electron: 1.3.6
Chrome : 52.0.2743.82
Node : 6.3.0
from termination.
I've opened an issue on the Atom repo.
from termination.
Hmmm... I see that too in Linux. I'll investigate it - thanks!
For reference, this is the Linux output:
$ atom /home/fred/Git/Astro/lunar_phase.py
$ /usr/share/atom/atom: bad option: --executed-from=/home/fred/Git/Astro
/usr/share/atom/atom: bad option: --pid=25889
from termination.
@jwogrady Can you see if the same behavior occurs with platformio-ide-terminal? That will help narrow down the search a lot.
If it is occurring with platformio-ide-terminal, could you open an issue on their page as well (but don't close this one!). They know their code the best, and while I'll definitely keep trying to track this down it would help to have another set of eyes looking at the problem. If they fix it before I do then I'll integrate the changes back here.
It's something to do with node being called instead of atom from inside termination
. Compare atom --version
from inside termination to what you see from a standalone shell and you'll see what I mean. 😄
Cheers!
from termination.
I'm getting the same error as @jwogrady. What's interesting is that I had a Java update right before I had this problem. Could the two be related?
Here is the java version i'm at now.
$ java -version
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
$ atom --version
Atom : 1.12.3
Electron: 1.3.6
Chrome : 52.0.2743.82
Node : 6.3.0
from termination.
@chrisallenmoore What OS are you using?
If it's a *nix, then what shell?
I haven't figured out the why yet, but for some reason termination (and platformio-ide-terminal, and possibly terminal-plus) replaces atom
with node
or nodejs
.
from termination.
macOS Sierra
Version 10.12.2 Beta (16C48b)
from termination.
chrisallenmoore: thanks. 👍 What shell do you use?
from termination.
Update: there's a similar issue platformio/platformio-atom-ide-terminal#106 so I'll keep an eye on that as well.
@jwogrady What happens when you open the developer console (ctrl+shift+i
though it might be cmd+shift+i
for Mac) and run atom <some-file>
? I get nothing on Linux but was wondering if there might be some output for Mac.
from termination.
I use the standard Mac Terminal. Atom will open from there, but not in Termination.
from termination.
What happens if you run sudo atom <some-command>
?
from termination.
@Fred-Barclay that works. hmmm
from termination.
Temporary workaround: go to the settings for termination and set unset ELECTRON_RUN_AS_NODE
to run on terminal initialisation.
from termination.
Thanks mate! I'm still working on a permanent fix but at least I now know this workaround is good for both Linux and Mac. 👍
I believe the offending code is this (in Atom): https://github.com/atom/atom/blob/master/src/buffered-node-process.js#L40
options.env.ELECTRON_RUN_AS_NODE = 1
So I'm working on how to undo that without breaking Atom in any way.
from termination.
Great! I was a little hesitant to do that myself since I didn't know if this was a bug in my code or an issue with Atom, hence my post on the Atom forums asking for help. Thanks for taking the initiative and opening the issue on the Atom repo! 😄
from termination.
I have been having the same issues and I think I may have solved it. See my post in #33 .
It looks like ATOM_SHELL_INTERNAL_RUN_AS_NODE was renamed to ELECTRON_RUN_AS_NODE (atom/atom#11475)
In the terminal ide process.coffee
file the filteredEnvironment
function still uses ATOM_SHELL_INTERNAL_RUN_AS_NODE
. I changed this to ELECTRON_RUN_AS_NODE
and it seems to now run the terminal properly. Let me know if this helps!
from termination.
@Naki21 Thanks! I've pushed out a new release with ELECTRON_RUN_AS_NODE
. 😄
@chrisallenmoore @jwogrady Please update to release 0.5.0 and let me know if this fixes the problem.
from termination.
Related Issues (20)
- Uncaught TypeError: Cannot read property 'stopScrolling' of undefined
- Prevent keys bound in Atom from being captured by xterm.js HOT 2
- [FR] Terminal in folder for foreign files HOT 1
- [FR] Cause Focus to toggle, when terminal closed
- [BR] Printing special characters with Python
- [BR] Command prompt doesn't appear in new terminal until after keypresses
- [Q] How to change colors in atom termination terminal. HOT 5
- [BR] Crtl-C for Sigint not working HOT 2
- [FR] : Open terminal at right side instead of bottom HOT 2
- Uncaught Channel closed HOT 2
- [BR] Apm install failed HOT 1
- [BR] Sudo not working HOT 3
- [Q] Is it possible to run "atom" command from termination terminal? HOT 5
- trims the last characters from the bottom if the caret is at the very bottom of the screen HOT 1
- [BR] trims the last characters from the bottom if the caret is at the very bottom of the screen HOT 2
- Gets hang when infinite loop is encountered[BR] HOT 1
- Uncaught Error: Cannot find module './input-dialog'Require stack:- $ATOM_HOME/packages\terminat... HOT 1
- Uncaught Error: Cannot find module '../src/term'Require stack:- $ATOM_HOME/packages\termination... HOT 1
- [Q] atom-space-pen-views
- HTMLDocument.registerElement is deprecated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termination.