Skip to content

#[godot_api] function or associated item not found in godot::prelude::StringName #28

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

Closed
Gisleburt opened this issue Nov 20, 2022 · 2 comments
Labels

Comments

@Gisleburt
Copy link

error[E0599]: no function or associated item named `new` found for struct `godot::prelude::StringName` in the current scope
  --> examples/dodge-the-creeps/rust/src/hud.rs:11:1
   |
11 | #[godot_api]
   | ^^^^^^^^^^^^ function or associated item not found in `godot::prelude::StringName`
   |
   = note: this error originates in the attribute macro `godot_api` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `new` found for struct `godot::prelude::StringName` in the current scope
  --> examples/dodge-the-creeps/rust/src/player.rs:14:1
   |
14 | #[godot_api]
   | ^^^^^^^^^^^^ function or associated item not found in `godot::prelude::StringName`
   |
   = note: this error originates in the attribute macro `godot_api` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0599`.
error: could not compile `dodge-the-creeps` due to 2 previous errors

I think #27 might have introduced this 🤔

Is broken in my code and the example.

@Bromeon
Copy link
Member

Bromeon commented Nov 20, 2022

Already fixed in master. Consider joining our Discord, a lot of problems are discussed there, and response times can be smaller than via GitHub 🙂

@Bromeon Bromeon closed this as completed Nov 20, 2022
@Bromeon Bromeon added the bug label Nov 20, 2022
@Gisleburt
Copy link
Author

Will do, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants