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
There was a large change godot-rust/gdext#501 that required a lot of code changes.
Adding a dependency on gd-rehearse causes it to fail with:
error[E0599]: no method named `get_tree` found for struct `Base` in the current scope
--> /Users/donblas/.cargo/git/checkouts/gd-rehearse-6d17cc79ce0f25e9/4841f7b/gd-rehearse-defs/src/runner/class.rs:186:40
|
186 | let mut scene_tree = self.base.get_tree().unwrap();
| ^^^^^^^^ method not found in `Base<Node>`
error[E0599]: no method named `callable` found for struct `Base` in the current scope
--> /Users/donblas/.cargo/git/checkouts/gd-rehearse-6d17cc79ce0f25e9/4841f7b/gd-rehearse-defs/src/runner/class.rs:187:62
|
187 | scene_tree.connect("physics_frame".into(), self.base.callable("test_run"));
| ^^^^^^^^ method not found in `Base<Node>`
error[E0599]: no method named `queue_free` found for struct `Base` in the current scope
--> /Users/donblas/.cargo/git/checkouts/gd-rehearse-6d17cc79ce0f25e9/4841f7b/gd-rehearse-defs/src/runner/class.rs:293:19
|
293 | self.base.queue_free();
| ^^^^^^^^^^ method not found in `Base<Node>`
error[E0599]: no method named `get_tree` found for struct `Base` in the current scope
--> /Users/donblas/.cargo/git/checkouts/gd-rehearse-6d17cc79ce0f25e9/4841f7b/gd-rehearse-defs/src/runner/class.rs:295:14
|
294 | / self.base
295 | | .get_tree()
| | -^^^^^^^^ method not found in `Base<Node>`
| |_____________|
|
error[E0599]: no method named `clone` found for struct `Base` in the current scope
--> /Users/donblas/.cargo/git/checkouts/gd-rehearse-6d17cc79ce0f25e9/4841f7b/gd-rehearse-defs/src/runner/class.rs:304:35
|
304 | scene_tree: self.base.clone().upcast(),
| ^^^^^ method not found in `Base<Node>`
error[E0599]: no method named `clone` found for struct `Base` in the current scope
--> /Users/donblas/.cargo/git/checkouts/gd-rehearse-6d17cc79ce0f25e9/4841f7b/gd-rehearse-defs/src/runner/class.rs:335:35
|
335 | scene_tree: self.base.clone().upcast(),
| ^^^^^ method not found in `Base<Node>`
The text was updated successfully, but these errors were encountered:
Most of these can be updated with self.base() and self.base_mut().
The part that's a bit more complex is self.base.clone.upcast(); related discussion in godot-rust/gdext#557. In particular, Base::to_gd() is not a public API, so using it is at your own risk. We need to come up with a stable API for this use case, see discussion.
@Bromeon In the case of self.base.clone().upcast(), the self.base().clone() seems to work nicely. Possibly the upcast() was unnecessary altogether.
@chamons Changes like that are unfortunately currently prone to happen, as gdext is in rapid development. Will try to keep up to date, but there may be some delay. Added badge to Readme pointing to latest gdext commit with which the crate was built and its tests ran last.
There was a large change godot-rust/gdext#501 that required a lot of code changes.
Adding a dependency on gd-rehearse causes it to fail with:
The text was updated successfully, but these errors were encountered: