haxe-sublime-bundle icon indicating copy to clipboard operation
haxe-sublime-bundle copied to clipboard

Haxe: Run build fails on ST4: no attribute text_queue_lock

Open dpc00 opened this issue 1 month ago • 0 comments

"Haxe: Run build" does nothing on Sublime Text 4: AttributeError: 'HaxeExecCommand' object has no attribute 'text_queue_lock'.

Steps (Sublime Text 4 build 4200, Linux, Haxe 4.3.7, package from Package Control): open a .hx file in a folder with a build.hxml, run "Haxe: Run build" from the command palette.

Result: nothing is built, and the console has

File ".../Haxe.sublime-package/HaxeComplete.py", line 2279, in run
AttributeError: 'HaxeExecCommand' object has no attribute 'text_queue_lock'

Cause: HaxeExecCommand.run does if int(sublime.version()) >= 3080: and then touches self.text_queue_lock, self.text_queue and self.text_queue_proc. Those belong to the ST3 Default/exec.py; the ST4 ExecCommand has none of them, so the check passes on ST4 and the first line fails.

dpc00 avatar Oct 06 '26 23:10 dpc00