Atom silently dismisses some serious (though non-critical) startup errors #13326
Comments
I'm not sure I understand what the bug is here. According to your first paragraph, you say that you configured the |
The underlying layer (Electron) is not recognizing The problem in itself is not so important actually, as almost nobody sets this var to something that specific, but the problem of this issue is that Atom ignores this error, so the user doesn't know something is not working. For comparison, VS.Code also uses Electron, also fails to recognize the path, but it warns the user about the problem. |
Do you happen to know where in the code this socket is being created? |
Mm no, but it's not part of Atom code base, it's in Electron initialization. |
Thanks for your contribution! This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Issues that are labeled as triaged will not be automatically marked as stale. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
I had configured (via /etc/environment) the TMP var (which specifies the temporary directory on most GNU/Linux) to point to ~/.tmp, but as I already know, node-based apps don't recognize it (though other apps, like Thunderbird, do).
This dir is where node-based apps store a temporary unix socket for IPC. What I see as a problem (I understand this is not a bug, but a implementation decision, though IMO it would be better to change it) is that when Atom is not able to create an IPC socket (or on any other significant, though not critical error), it silently ignores the error and continues as if everything was OK. Then we observe a degradation in user experience without understanding the real cause. In my case it was that Atom was not detecting correctly that there was already a running instance so it was creating a new window for each new file opened externally (via shell/cli). Though, it does create an error file ~/.atom/nohup.out with the following content:
For a comparison (and this is how the error was discovered) Visual Studio Code (which is also node-based) reports the error on initialization and fails to start.
The text was updated successfully, but these errors were encountered: