sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
803 stars 39 forks source link

Failed to receive exit code from application #6455

Open thoran opened 4 weeks ago

thoran commented 4 weeks ago

Description of the bug

I have VISUAL=/usr/local/bin/subl defined in the shell environment and when attempting to open a file or files from a script rather than those opening I receive the error message "Failed to receive exit code from application". After downgrading to 4169 it works again. Using the command line shortcut subl does work.

Steps to reproduce

  1. Define an alias. eg. alias cronfiles="$VISUAL ~/cron"
  2. cronfiles
  3. "Failed to receive exit code from application" and no open files.

Expected behaviour

I expect that scripts or aliases will be able to open files in Sublime Text like they did and do in 4169 and prior.

Actual behaviour

I receive the error message "Failed to receive exit code from application" and no files are opened.

Sublime Text build number

4180

Operating system & version

macOS 13.0.1

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

BenjaminSchaaf commented 4 weeks ago

What's the result of subl --version?

astro-friedel commented 3 weeks ago

I am also getting the same message when trying to use build 4180

OS: Ubuntu 22.04

Desktop: KDE

result of subl --version: Sublime Text Build 4180

BenjaminSchaaf commented 3 weeks ago

@astro-friedel That sounds unrelated. How have you installed sublime text?

astro-friedel commented 3 weeks ago

I installed via the ubuntu package manager

BenjaminSchaaf commented 3 weeks ago

@astro-friedel Does that mean you used the ubuntu software center (and thereby installed using snap) or did you follow our instructions for using apt (https://www.sublimetext.com/docs/linux_repositories.html)?

astro-friedel commented 2 weeks ago

I used the instructions for using apt.

BenjaminSchaaf commented 2 weeks ago

When starting ST do you see any errors in the console (View > Show Console)?

astro-friedel commented 2 weeks ago

I never get a console. I immediately get "Failed to receive exit code from application" in my terminal.

BenjaminSchaaf commented 2 weeks ago

Ah ok. This issue is about the command line tool not working - most likely due to a version mismatch. If Sublime Text isn't starting at all then that's a separate issue. I suggest filing a new issue including trying to launch ST in safe mode.