sublimehq / sublime_text

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

Problem with 3.8 Plugin when launching ST 4 from the command line (MacOS 10.14.6) #4432

Open donnaaboise opened 3 years ago

donnaaboise commented 3 years ago

Description

I am getting the following error when starting ST from the command line, using /Applications/Sublime Text/.../SharedSupport/subl.

image

I've provided a few more details in this ST Forum posting https://forum.sublimetext.com/t/unable-to-install-packages/58736.

Steps to reproduce

  1. I start Sublime in safe mode from the OSX command line using /Applications/.../SharedSupport/bin/subl --safe-mode.
    I immediately get the 3.8 plugin error.

Console output :

startup, version: 4107 osx x64 channel: stable
SAFE MODE - overriding packages, state and cache paths
executable: /Applications/Sublime Text.app/Contents/MacOS/sublime_text
application: /Applications/Sublime Text.app
working dir: /
packages path: /Users/calhoun/Library/Application Support/Sublime Text (Safe Mode)/Packages
state path: /Users/calhoun/Library/Application Support/Sublime Text (Safe Mode)/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/calhoun/Library/Application Support/Sublime Text (Safe Mode)/Installed Packages
ignored_packages: ["Vintage"]
generating syntax summary
generating meta info summary
pre session restore time: 1.17717
OpenGL Context Information:
  GL API Version: 4.1 ATI-2.11.25
  GLSL Version: 4.10
  Vendor: ATI Technologies Inc.
  Renderer: AMD Radeon Pro 460 OpenGL Engine
startup time: 1.28294
first paint time: 1.35388
error: plugin_host-3.8 has exited unexpectedly, some plugin functionality won't be available until Sublime Text has been restarted
environment variables loaded using: /opt/local/bin/bash -l (2 skipped due to non-utf8 data)

Restarting ST or rebooting does not fix the problem.

Environment

(base) (bash) .../Sublime Text.app/Contents/MacOS % subl --version
Sublime Text Build 4107

MacOS 10.14.6 Linux : Ubuntu 20.04. Bash :

GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin18.7.0)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(base) (bash) .../Sublime Text.app/Contents/MacOS % otool -L plugin_host-3.8
plugin_host-3.8:
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 904.4.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.0.0)
    /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration (compatibility version 1.0.0, current version 1109.40.9)
    /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0)
    /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication (compatibility version 1.0.0, current version 64541.4.0)
    /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 164.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 59754.41.1)
    /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (compatibility version 1.2.0, current version 1.11.0)
    /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
    @executable_path/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
    @executable_path/libssl.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2022.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1770.106.0)
    /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 1463.0.0)
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1122.4.0)
    /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1770.106.0)
    /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
donnaaboise commented 3 years ago

It looks like the problem is with launching ST from the command line, using subl.

When I start ST from the Launcher (or the Application directory, or a Dock icon), both plugins (3.3 and 3.8) run as expected, and the Preferences menu is restored (no more greyed items). Once ST is open, I can use subl to open files directly from the command line. So it appears this work-around solves my immediate problem.

The command-C key binding still doesn’t copy, but now I am thinking that is a separate issue. Interestingly, starting in safe mode restores the command-C functionality.

aghozlane commented 2 years ago

I am so tired of this issue occurring every time that sublime is updated on mac os. Can the authors of sublime please fix it ?

tobassum786 commented 1 year ago

I remove old version of sublime and download new one but problem still same.

Plugin_host-3.3 has exited unexpectedly, some plugin functionality won’t be available until Sublime Text has been restarted