Sublime Forum

Sublime won't open: Failed to receive exit code from application

#1

I have installed and reinstalled sublime 4 multiple times, and I cannot open it. I am not sure at else I can provide regarding this problem, but if someone could help me get to the bottom of it that would be great. Thanks.

MacBook Pro late-2013 (13 inch)
ProductName:    macOS
ProductVersion: 11.6
BuildVersion:   20G165
Sublime Text Build 4113

After uninstalling version 4 I reinstalled version 3 and it works as expected.

0 Likes

#2

How are you installing it (using finder, command line, etc?) and how are you trying to open it?

0 Likes

#3

I just updated to Sublime Text Build 4180 in ubuntu 24.04 and I’m having the same issue-

0 Likes

#4

Does it open in safe mode?

0 Likes

#5

I’m having the same issue recently, it doesn’t work even in safe mode.

However it works when I completely quit sublime text. The issue happened to me only when an existing sublime window is running.

1 Like

#6

If Sublime Text is updated while it’s running you likely won’t be able to use the command line or otherwise open open a file from another application.

0 Likes

#7

I’m having the same experience. I cannot open it in safe mode via alt+click or the

subl --safe-mode

Both die before I even see anything appear and there’s never any error dialog.

I have tried the latest for macOS: sublime_text_build_4180_mac.zip as well as the latest dev build (which is previous to current general release): sublime_text_build_4178_mac.zip

No difference in behavior for those.

Local machine details:

  • Model: MacBook Pro - 16-inch, 2023
  • OS: macOS 14.6.1 (23G93)
0 Likes

#8

What’s the result of running subl --version?

0 Likes

#9

Thanks! This solved my issue.

I realized the subl version was on Sublime Text Build 4143 when the Sublime text app is 4180. Now both on the same version fixed the issue.

0 Likes

#10
subl --version
Sublime Text Build 4180

So my version matches whatever is installed in my default applications folder, since the CLI is pointing within it:

command -v subl
/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
0 Likes

#11

Do you see any errors in the console (View > Show Console) after launching Sublime Text?

0 Likes

#12

I’m not sure if your question about viewing the console was for me, but if so, I cannot view the UI at all since it is crashing before even appearing.

0 Likes

#13

Ah ok, I got confused because this thread is about the command line tool not working - not about the whole app. Do you see a crash report in ~/Library/Caches/Sublime Text/Crash Reports/, it may be in either pending, new or completed?

0 Likes

#14

ah, my bad… well, unfortunately the directories are all empty:

0 Likes

#15

OK… maybe it was solar flares or something… I am no longer having any issues with opening Sublime Text. Wild since I didn’t even reboot. So since yesterday, I have take zero actions, but today all works fine.

0 Likes

#16

I hit this issue as well on the latest update from 4130->4180.

It looks like there were two installations of sublime-text on my machine for some reason and this update created an issue between them. One of them was running from here /snap/sublime-text/177/opt/sublime_text/sublime_text, and the other from here /opt/sublime_text/sublime_text. One of them was also able to auto-update, but the other couldn’t.

I think one of them was from snap, and the other from apt-get (or might be from a .deb file).

In the end, I got rid of all of them with sudo apt-get remove sublime-text, and sudo snap remove sublime-text. Then, I reinstalled through sudo apt-get install sublime-text. After this, all the processes for sublime I found consistently pointed to /opt/sublime_text/sublime_text, and the issue was gone.

1 Like