Skip to content

GD0001: partial modifier static analysis for Godot 4 #81

Closed
godotengine/godot
#87253
@Sythelux

Description

@Sythelux

Godot 4 now requires anything inheriting from Godot.Object to be partial. The Plugin doesn't recognise this, yet

example code:

public class Main : Node3D
{
	public override void _Ready()
	{
		GD.Print("_Ready");
	}
}

This looks fine in Rider, but when building in Godot it yields:

[...]\Main.cs(4,1): Error GD0001 : Missing partial modifier on declaration of type 'Main' which is a subclass of 'Godot.Object'

It would be good to have a static analysis of Rider to show that error in the editor before building.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions