7
45
Fork
You've already forked nice-plug
22

Error when trying to build gain_egui #58

Open
opened 2026年07月02日 15:14:45 +02:00 by lilitdn · 1 comment

When trying to build gain_egui I'm getting the following errors:

error[E0407]: method `track_info_updated` is not a member of trait `Plugin`
 --> src\lib.rs:455:5
 |
455 | / fn track_info_updated(&mut self, info: TrackInfo) {
456 | | if let Ok(mut track_info) = self.track_info.lock() {
457 | | *track_info = info;
458 | | }
459 | | }
 | |_____^ not a member of trait `Plugin`
error[E0425]: cannot find type `TrackInfo` in this scope
 --> src\lib.rs:49:27
 |
49 | track_info: Arc<Mutex<TrackInfo>>,
 | ^^^^^^^^^ not found in this scope
 |
help: you might be missing a type parameter
 |
17 | pub struct Gain<TrackInfo> {
 | +++++++++++
error[E0425]: cannot find type `TrackInfo` in this scope
 --> src\lib.rs:455:44
 |
455 | fn track_info_updated(&mut self, info: TrackInfo) {
 | ^^^^^^^^^ not found in this scope
error[E0433]: cannot find type `TrackInfo` in this scope
 --> src\lib.rs:100:56
 |
100 | track_info: Arc::new(std::sync::Mutex::new(TrackInfo::default())),
 | ^^^^^^^^^ use of undeclared type `TrackInfo`
Some errors have detailed explanations: E0407, E0425, E0433.
For more information about an error, try `rustc --explain E0407`.
error: could not compile `gain_egui` (lib) due to 4 previous errors
Error: Could not build gain_egui
When trying to build [gain_egui](https://codeberg.org/RustAudio/nice-plug/src/branch/main/examples/gain_egui) I'm getting the following errors: ``` error[E0407]: method `track_info_updated` is not a member of trait `Plugin` --> src\lib.rs:455:5 | 455 | / fn track_info_updated(&mut self, info: TrackInfo) { 456 | | if let Ok(mut track_info) = self.track_info.lock() { 457 | | *track_info = info; 458 | | } 459 | | } | |_____^ not a member of trait `Plugin` error[E0425]: cannot find type `TrackInfo` in this scope --> src\lib.rs:49:27 | 49 | track_info: Arc<Mutex<TrackInfo>>, | ^^^^^^^^^ not found in this scope | help: you might be missing a type parameter | 17 | pub struct Gain<TrackInfo> { | +++++++++++ error[E0425]: cannot find type `TrackInfo` in this scope --> src\lib.rs:455:44 | 455 | fn track_info_updated(&mut self, info: TrackInfo) { | ^^^^^^^^^ not found in this scope error[E0433]: cannot find type `TrackInfo` in this scope --> src\lib.rs:100:56 | 100 | track_info: Arc::new(std::sync::Mutex::new(TrackInfo::default())), | ^^^^^^^^^ use of undeclared type `TrackInfo` Some errors have detailed explanations: E0407, E0425, E0433. For more information about an error, try `rustc --explain E0407`. error: could not compile `gain_egui` (lib) due to 4 previous errors Error: Could not build gain_egui ```

I am not able to reproduce the error. Maybe you need to run cargo update?

I am not able to reproduce the error. Maybe you need to run `cargo update`?
Sign in to join this conversation.
No Branch/Tag specified
main
resizing
dev
standalone_fixes
FoobarIT/main
fixes
egui_3rd_party
vizia_baseview_update
egui_32
softbuffer
byo_gui_examples
raw_graphics_examples
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RustAudio/nice-plug#58
Reference in a new issue
RustAudio/nice-plug
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?