You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build on an unsaved tab raises a TypeError and does nothing #37
Running Build on an unsaved AutoIt tab raises a TypeError in the console and nothing else happens. Sublime Text build 4215 (Python 3.14), Windows 11, installed from Package Control (v1.3.6).
autoitbuild.run (and autoitcompile.run) take self.window.active_view().file_name(), which is None for an unsaved tab, and put it straight into the command list:
cmd= [AutoItExePath, "/ErrorStdOut", filepath]
Test: new tab, syntax set to AutoIt Script, ran the autoitbuild command. Console:
File ".../Default.sublime-package/exec.py", line 248, in run
cmd_string = " ".join(cmd)
TypeError: sequence item 2: expected str instance, NoneType found
No build output and no message to the user. Expected: save first, or show a status message such as "Save the file first".
Not tested: the real AutoIt3.exe (AutoIt is not installed here). I ran the commands with a stand-in executable in AutoItExePath; the command lines the package built were correct for a saved file.
Activity