You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to construct a built-in singleton (ex: DisplayServer.new()), this error message is misleading:
The error message says it's abstract, which seems like it should indicate that you need to use a derived class. However, this is a singleton, and you are meant to use its methods directly. Instead of the current error text, it should say something about how it's a singleton and you should use its methods directly.
Steps to reproduce
Write DisplayServer.new() in the script editor.
Minimal reproduction project
Since it's one line I am not going to bother making a MRP.
The text was updated successfully, but these errors were encountered:
Godot version
0511f9d 4.2.dev (current master as of writing)
System information
macOS 13.4.1 (this issue affects all systems)
Issue description
When trying to construct a built-in singleton (ex:
DisplayServer.new()
), this error message is misleading:The error message says it's abstract, which seems like it should indicate that you need to use a derived class. However, this is a singleton, and you are meant to use its methods directly. Instead of the current error text, it should say something about how it's a singleton and you should use its methods directly.
Steps to reproduce
Write
DisplayServer.new()
in the script editor.Minimal reproduction project
Since it's one line I am not going to bother making a MRP.
The text was updated successfully, but these errors were encountered: