Skip to content

Error when formatting @abstract methods #177

@angrykoala

Description

@angrykoala

Running version 0.18.1 with Godot 4.5.1 (after updating the formatter with "Install of Update Formatter), the following code fails to format:

@abstract class_name Spaceship
extends Node

@abstract func on_request() -> void;

The error is:

ERROR: core/variant/variant_utility.cpp:1024 - Format GDScript failed: res://components/server/software/software.gd
ERROR: core/variant/variant_utility.cpp:1024 - 	Exit code: 1 Stdout: 
ERROR: core/variant/variant_utility.cpp:1024 - 	If your script does not have any syntax errors, this might be a formatter bug.

Removing the last line, works as expected:

@abstract class_name Spaceship
extends Node

The code runs fine when executing the game, so I think the actual script is fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamThe issue (likely) can't be solved in this repository: a library needs a change

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions