-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve certain error messages #407
Comments
removing the blanket impl of |
after #467 a lot of conversion errors are nicer, but some still could be improved. for instance when trying to pass an
this could be improved in this case to say how you can fix it, since the fix is usually to change the variable's type to |
Not a huge deal, but when a #[func] called from godot panics, Godot throws
|
@jrockett6 related: #254 and to some extent #422. |
In cases where the godot versions between gdext and godot bin are incompatible, it'd be good to read out the version numbers explicitly (for example, if you select the wrong version branch in gdext) |
Edit bromeon: context in Discord thread. Registering a class twice will result in an error like this.
This error doesn't tell us the actual issue. It should probably say something like "Class x registered more than once". |
When changing the base class of an object and hot reloading, gdext spews a bunch of errors, but the first one that godot itself provides is all that's required for the developer to understand what went wrong and how to fix it.
|
This message (posted in the wrong issue):
|
The image didn't get posted... or maybe it's just gone now after I deleted the original message. Here it is, for context. |
An error I spent way too long debugging is this one:
GDscript entry point
The actual code I wrote that was triggering this error was: if let Some(gui) = &mut self.gui.clone() {
if gui.is_instance_valid() {
gui.queue_free();
}
} Specifically I believe it was on the call to On first pass, Even something as simple as declaring the name of the object that is being cloned would be nice (though I imagine that wouldn't be accessible at this point, just sharing things that would be helpful) Also of note: my problem is solved, no need for suggested solutions. |
Users gave feedback that certain error messages are unhelpful. This thread collects concrete examples.
While some of them are due to the nature of how we interact with Godot and cannot always be improved, in other cases there might be low-hanging fruits.
The text was updated successfully, but these errors were encountered: