-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
#[export(file)]
should be limited to certain field types
#772
Comments
godotengine/godot#93366 |
i dont see why this issue should be brought up to godot |
Bromeon said that it's issue of Godot that it doesn't notify about incorrect export property |
Sorry about the confusion here, tried to clarify it on the Godot issue. I'm not sure whether Godot performs the same validations for |
|
Won't it support in 4.3? I've seen some information with improvement this part. Maybe I'm wrong, can't find anymore :( |
I don't know -- do you have the time to test your example with a recent 4.3 beta release? |
not really, it requires build |
No need to build -- you can get nightly artifacts from https://github.com/Bromeon/godot4-nightly/actions 🙂 Just click on the latest workflow run, scroll down and select the matching artifact for your platform (e.g. |
#[export(file)]
should be limited to certain field types
If user tries convert
@export_file("*.txt")
to Array:LSP shows error:
And in console:
But if user does it in rust:
It leads to this:
For user it's unexpected and it would be rather to notify about incorrect annotation.
Reprocase: godot-rust-repro.zip
Discord source conversation
The text was updated successfully, but these errors were encountered: