Git Product home page Git Product logo

Comments (18)

jwogrady avatar jwogrady commented on May 11, 2024 2

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.

jwogrady avatar jwogrady commented on May 11, 2024 1

@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.

DamnedScholar avatar DamnedScholar commented on May 11, 2024 1

I've opened an issue on the Atom repo.

from termination.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

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.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

@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.

chrisallenmoore avatar chrisallenmoore commented on May 11, 2024

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.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

@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.

chrisallenmoore avatar chrisallenmoore commented on May 11, 2024

macOS Sierra
Version 10.12.2 Beta (16C48b)

from termination.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

chrisallenmoore: thanks. 👍 What shell do you use?

from termination.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

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.

chrisallenmoore avatar chrisallenmoore commented on May 11, 2024

I use the standard Mac Terminal. Atom will open from there, but not in Termination.

from termination.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

What happens if you run sudo atom <some-command>?

from termination.

chrisallenmoore avatar chrisallenmoore commented on May 11, 2024

@Fred-Barclay that works. hmmm

from termination.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

Temporary workaround: go to the settings for termination and set unset ELECTRON_RUN_AS_NODE to run on terminal initialisation.

from termination.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

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.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

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.

Naki21 avatar Naki21 commented on May 11, 2024

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.

Fred-Barclay avatar Fred-Barclay commented on May 11, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.