sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

ST hangs while opening this file in zsh syntax

Open delan opened this issue 1 month ago • 1 comments

Description of the bug

Image

Steps to reproduce

  1. download and unzip this file: zfs-sync-snapshots.zip
  2. subl --safe-mode zfs-sync-snapshots — it hangs at the progress bar
  3. rename zfs-sync-snapshots to zfs-sync-snapshots.sh
  4. subl --safe-mode zfs-sync-snapshots.sh — it opens normally (but in Bash syntax)

Expected behavior

the file opens normally, even in zsh syntax.

Actual behavior

the file fails to open, hanging permanently at the progress bar, with 100% cpu in “file_read_threa”:

Thread 6 (Thread 0x7f07867fd6c0 (LWP 450826) "file_read_threa"):
#0  0x0000559f6097bbed in ?? ()
#1  0x0000559f60979c27 in ?? ()
#2  0x0000559f6096f88f in ?? ()
#3  0x0000559f6096ef5d in ?? ()
#4  0x0000559f6096806b in ?? ()
#5  0x0000559f60dc7f04 in ?? ()
#6  0x0000559f60dc8501 in ?? ()
#7  0x00007f0793fb397a in start_thread () from /nix/store/8p33is69mjdw3bi1wmi8v2zpsxir8nwd-glibc-2.40-66/lib/libc.so.6
#8  0x00007f079403bd2c in __clone3 () from /nix/store/8p33is69mjdw3bi1wmi8v2zpsxir8nwd-glibc-2.40-66/lib/libc.so.6

Sublime Text build number

4200

Operating system & version

NixOS 25.11.20250830.d7600c7

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information


delan avatar Nov 18 '25 08:11 delan

Thank's for reporting. I can reproduce described behavior on Windows as well, using ST4200.

Many fixes have been added to ShellScript syntaxes after ST 4200 was released. One of them seems to fix this issue as well. Provided file loads without issues using latest syntax definitions from https://github.com/sublimehq/Packages/tree/master/ShellScript.

deathaxe avatar Nov 18 '25 08:11 deathaxe