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
The proc macro attribute defines a MyWidgetExt trait with methods such as connect_my_signal and emit_my_signal. But they are not visible for auto completion and if you try to write use MyWidgetExt as Test; you get unresolved import. Even though cargo check is fine.
The text was updated successfully, but these errors were encountered:
mehmooda
changed the title
traits exposed by proc_macro is not visibile for IDE completion.
Traits exposed by proc_macro are not visibile for IDE completion.
Apr 17, 2021
If you have a proc macro attribute which generates a new trait. It doesn't seem to be visible to use in the current crate;
See https://github.com/mehmooda/glib_macro_test/blob/main/muse/src/main.rs
The proc macro attribute defines a MyWidgetExt trait with methods such as
connect_my_signal
andemit_my_signal
. But they are not visible for auto completion and if you try to writeuse MyWidgetExt as Test;
you get unresolved import. Even though cargo check is fine.The text was updated successfully, but these errors were encountered: