Skip to content

Build on an unsaved tab raises a TypeError and does nothing #37

Open

Description

@dpc00

Claude reports:

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions