Skip to content

Editor plugin and .exe formats differently #207

Description

@suumpmolk

When working on adding a Github Action for GDScript-formatter to my project it complained about files not being formatted. I noticed that if I run the formatter myself (me on Windows, Github Action on Ubuntu) it differs from how it is formatted by the plugin in the editor for certain files.

Example (Editor):

extends Node


func _ready() -> void:
	randomize()

Example (Powershell / Github Action):

extends Node

func _ready() -> void:
	randomize()

Notice the extra line between extends and func.

When running in Powershell/cmd I'm using the same .exe that the editor is.

Image

This does not happen in files where there are variables between the extends and the first func

Any ideas what's going on?

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