Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Error when formatting while no folder is open #63

@alvv-z

Description

@alvv-z

When formatting a file without an open folder, Sublime Text 3211 and 4126 show an error in the console. I haven't tested this in other Versions.

Console Output:

Traceback (most recent call last):
  File "/opt/sublime_text/Lib/python33/sublime_plugin.py", line 1456, in run_
    return self.run(**args)
  File "/home/$USER/.config/sublime-text-3/Installed Packages/Zig Language.sublime-package/Zig.py", line 149, in run
KeyError: 'folder'

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