sublime_text
sublime_text copied to clipboard
ST hangs while opening this file in zsh syntax
Description of the bug
Steps to reproduce
- download and unzip this file: zfs-sync-snapshots.zip
subl --safe-mode zfs-sync-snapshots— it hangs at the progress bar- rename
zfs-sync-snapshotstozfs-sync-snapshots.sh 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
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.