Skip to content

Addon: Error when running the formatter after install #286

Description

@CosmoMyzrailGorynych

Godot v4.7.1, Fedora Linux, installed through Flatpak. Godot has full filesystem access.
The binary is present at /home/comigo/.var/app/org.godotengine.Godot/cache/godot/gdquest/gdscript-formatter, has the +x flag. The plugin's settings do point at this location.

Throws this on every format command (tried with different scripts, all are valid and working in-game):

  ERROR: core/variant/variant_utility.cpp:1023 - Format GDScript failed: res://roguelite/relics/embedded_starfish.gd
  ERROR: core/variant/variant_utility.cpp:1023 - 	Exit code: 1 Output: 
  ERROR: core/variant/variant_utility.cpp:1023 - 	If your script does not have any syntax errors, this might be a formatter bug.

Running the executable in style ./gdscript-formatter /path/to/file.gd does work and change the file (and makes mistakes, will open a separate issue if there isn't one for that case).
Still, it doesn't run in Godot. I tried disabling other script editor-related plugin, restarted, and it didn't help.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions