Repository navigation
Conversation
|
One of four Travis CI builds has failed because of a timeout. Now the whole pull request is marked as failing. My understanding is this bug is never going to be fixed. Cheers. |
|
Just because the build fails doesn't mean it's not ready to be merged. |
|
It is a one-liner. It mostly needs a review to see what it does. The testing (if needed) should come after review. What it does: explicitly sets the default value to |
|
Today my Atom got automatically updated, and promptly crashed on start. I have to apply the online-liner fix in this pull request manually. |
|
I think I have the same problem. However, for me it is the |
|
@uhop @lukasoppermann How are you launching Atom when you see this? From the terminal? From Finder? |
|
When I see this I open it from finder, by dragging a folder onto the atom icon or by going to Opening Atom from the terminal via |
|
Do you use a default shell other than |
|
@maxbrunsfeld I did more digging. The unpatched Atom runs fine from a terminal (iTerm2 in my case). Yet from a finder (the standard application folder) it fails. I fiddled with my default shell (bash), and its settings. I singled out one command that broke Atom: alias env='command env | sort'It was in Commenting out that line helped. I don't know how Atom ended up using it, and where exactly. Interesting that I have this setup in |
|
Thanks so much for investigating further @uhop; that's very helpful. I have a different solution in mind for this problem, I will get back to you shortly. |
Yep. |
|
@uhop I actually still don't understand why that alias causes a problem. What version of Atom are you using? Could you share the output of the following command (with any sensitive content removed)? $SHELL -ilc env |
|
Ok, I believe we have a fix for this. The fix will be released in Atom v1.9.8 and v1.10.0-beta5. |
|
One more note: when I inspected |
|
The requested output: ✔ 15:43 ~ $ $SHELL -ilc env
Now using node v6.3.1 (npm v3.10.5)
MANPATH=/Users/elazutkin/.nvm/versions/node/v6.3.1/share/man:/usr/share/man:/usr/local/share/man:/opt/X11/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man
TERM_PROGRAM=iTerm.app
NVM_CD_FLAGS=
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/n0/hz24lz8d4rnbc8szyy3qxdc40000gp/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.yFfy5bIGkp/Render
NVM_PATH=/Users/elazutkin/.nvm/versions/node/v6.3.1/lib/node
PERL5LIB=/Users/elazutkin/perl5/lib/perl5:/Users/elazutkin/perl5/lib/perl5:/Users/elazutkin/perl5/lib/perl5
TERM_PROGRAM_VERSION=3.0.5
TERM_SESSION_ID=w0t2p1:F61D8493-60DE-4B9F-BE18-BDDB1CFF358F
PERL_MB_OPT=--install_base "/Users/elazutkin/perl5"
ATOM_HOME=/Users/elazutkin/.atom
USER=elazutkin
NVM_DIR=/Users/elazutkin/.nvm
COMMAND_MODE=unix2003
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.NMbnCiWYNH/Listeners
__CF_USER_TEXT_ENCODING=0x1F6:0x0:0x0
PATH=/Users/elazutkin/perl5/bin:/Users/elazutkin/.nvm/versions/node/v6.3.1/bin:/Users/elazutkin/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/elazutkin/perl5/bin:/Users/elazutkin/bin:/Users/elazutkin/Library/Android/sdk/platform-tools:/Users/elazutkin/Library/Android/sdk/tools:/Users/elazutkin/Library/Android/sdk/platform-tools:/Users/elazutkin/Library/Android/sdk/tools
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist
PWD=/Users/elazutkin
LANG=en_US.UTF-8
ITERM_PROFILE=Default
XPC_FLAGS=0x0
PS1=\[\e]0;\u@\h: \w\a\]\[\033[01;33m\]\w\[\033[00m\] \$
ITERM_ORIG_PS1=\[\033[0;32m\]✔ \[\033[0;37m\]$(date +%H:%M)\[\033[0;0m\] \[\033[1;33m\]\w\[\033[0;0m\]\[\033[0;0m\] $
XPC_SERVICE_NAME=0
COLORFGBG=7;0
HOME=/Users/elazutkin
SHLVL=2
ITERM_PREV_PS1=\[\e]0;\u@\h: \w\a\]\[\033[01;33m\]\w\[\033[00m\] \$
ITERM_SESSION_ID=w0t2p1:F61D8493-60DE-4B9F-BE18-BDDB1CFF358F
PERL_LOCAL_LIB_ROOT=/Users/elazutkin/perl5:/Users/elazutkin/perl5:/Users/elazutkin/perl5
LOGNAME=elazutkin
NVM_BIN=/Users/elazutkin/.nvm/versions/node/v6.3.1/bin
NVM_IOJS_ORG_MIRROR=https://iojs.org/dist
DISPLAY=/private/tmp/com.apple.launchd.HHPW2pj8Gm/org.macosforge.xquartz:0
SECURITYSESSIONID=186a8
PERL_MM_OPT=INSTALL_BASE=/Users/elazutkin/perl5
_=/usr/bin/env
✔ 09:26 ~ $ |
|
My thoughts on a bug: when aliasing something, options stop working. For example, if I define an alias like that: alias env='command env | sort'And invoke it as So if somebody runs As to Thank you for taking care of the bug. I am looking forward to test it. |
|
Damn. I had an |
|
Upgraded to 1.9.8, and it starts up fine now with and without PS: Interesting moment is that I have the same |
Yeah, for the time being, we've only added this feature (setting environment variables based on a login shell) on Mac. |
|
I have my Atom in a custom location and pointing to it via |
|
@raphaelokon are you still seeing this on v1.9.9? |
|
@maxbrunsfeld No – Can't even see a |
|
Sorry, I meant are you still seeing this on v1.9.8? |
|
Aye – after restarting Atom when it updated to v1.9.8 my custom location is ignored. |
|
@raphaelokon I can't reproduce this. What OS are you using? How are launching Atom, and how are you setting the |
|
Hmm. I am setting the |
|
Ok thanks. And how are you opening Atom? |
|
Both, clicking on the dock symbol and directly clicking on the app icon in the custom location yields the same. I wiped |
|
Any ideas @maxbrunsfeld ? |
|
@raphaelokon Yeah, I'm sorry. I didn't realize it was ever possible to use a custom |
|
Okay. I restored my settings by downgrading to |
|
I recently upgraded to |

ATOM_HOMEisundefined, which breaks Atom on startup (at least on Mac). Interesting that it isundefinedeven when I explicitly set this variable in.bashrc.The patch is a one-liner for simplicity:
ATOM_HOMEis falsy. If it is:HOMEis truthy. If it is:ATOM_HOMEtopath.join(HOME, '.atom').The description above dwarves the code.
I don't know what caused the problem, because I saw it before intermittently, but recently I updated node to 6.3.0, and Mac to 10.11.6. The combined change made the problem persistent.
Before debugging the code I tried to reinstall Atom 1.8.0, and 1.9.0-beta0 — both fail the same way (
undefinedis passed topath.join()).