Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package Control install fails on Linux if .config folder does not exist. #5385

Open
jordan-ayers opened this issue Apr 28, 2022 · 1 comment

Comments

@jordan-ayers
Copy link

jordan-ayers commented Apr 28, 2022

Description of the bug

Using a minimal EL8 equivalent Linux VM over PuTTY, with no '~/.config' folder present, causes Package Control installation to fail. In general, it appears that ST4 fails to create its '.config/sublime-text' folder entirely when '.config' is not already present, so other operations (such as the temporary workspace) likely also fail.

Steps to reproduce

  1. This may require running remote desktop applications over a ssh session. Eliminating the .config folder may not be possible while running a normal desktop session.
  2. Delete your user's .config folder entirely.
  3. Launch ST4.
  4. Open the command panel (Ctrl + Shift + P)
  5. Select 'Install Package Control'

Expected behavior

Package Control should be installed (creating the ~/.config/sublime-text/ folder if needed).

Actual behavior

"Install Package Control" results in an error window, and the following log message:

Error installing Package Control: [Errno 2] No such file or directory: '/home/<username>/.config/sublime-text/Installed Packages/Package Control.sublime-package'
error: An error occurred installing Package Control

Please check the Console for details

Visit https://packagecontrol.io/installation for manual instructions

Also in the logs, but not from the 'Install Package Control' operation:

Unable to write to session file: /home/<username>/.config/sublime-text/Local Auto Save Temp Session.sublime_session.tmp

On startup, paths under '~/.config' are reported for 'packages path', 'state path', and 'zip path', but none of these actually exist.

Closing ST4, running 'mkdir ~/.config`, and re-starting ST4 resolves the issue.

Sublime Text build number

4216

Operating system & version

Rocky Linux 8.5

(Linux) Desktop environment and/or window manager

XMing 6.9.0.31 (over ssh from Win 11 Pro)

Additional information

I installed ST4 from the dnf stable repo onto a minimal Rocky Linux 8.5 VM under Windows 11 Pro / Hyper-V. XMing and PuTTY (with X11 forwarding enabled) were used to run the program. Some xorg-x11 packages needed to run desktop apps were installed, but no desktop system was installed. (xorg-x11-font-utils, xorg-x11-server-utils, xorg-x11-xauth; I also installed xorg-x11-fonts-ISO8859-1-100dpi, but that shouldn't matter). I might have also had to manually install libglvnd-glx to provide missing dynamically linked libraries.

I wasn't trying to create an insane setup; ST4 was just one of the first tools I tried to install this time around.

I am using a headless Linux VM with remote desktop applications for development. Users with a full desktop system are unlikely to encounter these conditions.

OpenGL context information

No response

@tianxiang0521
Copy link

Me Too!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants