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
All of the defmt logging macro calls of the libraries in this project return the wrong path (at least when using probe-rs)
While the crate and module paths of the call sites are actually correct, the file paths and lines point instead to the declaration site of the crates' convenience macros, as can be seen in this excerpt:
0.000087 INFO USB: config_descriptor used: 49
└─ embassy_usb::builder::{impl#1}::build @ /home/julia/.cargo/git/checkouts/embassy-9312dcb0ed774b29/15c3ae8/embassy-usb/src/fmt.rs:143
0.000114 INFO USB: bos_descriptor used: 12
└─ embassy_usb::builder::{impl#1}::build @ /home/julia/.cargo/git/checkouts/embassy-9312dcb0ed774b29/15c3ae8/embassy-usb/src/fmt.rs:143
0.000141 INFO USB: msos_descriptor used: 0
└─ embassy_usb::builder::{impl#1}::build @ /home/julia/.cargo/git/checkouts/embassy-9312dcb0ed774b29/15c3ae8/embassy-usb/src/fmt.rs:143
0.000166 INFO USB: control_buf size: 64
└─ embassy_usb::builder::{impl#1}::build @ /home/julia/.cargo/git/checkouts/embassy-9312dcb0ed774b29/15c3ae8/embassy-usb/src/fmt.rs:143
From experimenting with this myself, with both declarative and procedural macros, it appears that this is a limitation of using declarative macros, which is also probably(?) why the defmt crate itself uses procedural macros in all of its exports.
The text was updated successfully, but these errors were encountered:
All of the defmt logging macro calls of the libraries in this project return the wrong path (at least when using probe-rs)
While the crate and module paths of the call sites are actually correct, the file paths and lines point instead to the declaration site of the crates' convenience macros, as can be seen in this excerpt:
From experimenting with this myself, with both declarative and procedural macros, it appears that this is a limitation of using declarative macros, which is also probably(?) why the defmt crate itself uses procedural macros in all of its exports.
The text was updated successfully, but these errors were encountered: