Skip to content

Traits exposed by proc_macro are not visibile for IDE completion. #8558

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
mehmooda opened this issue Apr 17, 2021 · 2 comments
Closed

Traits exposed by proc_macro are not visibile for IDE completion. #8558

mehmooda opened this issue Apr 17, 2021 · 2 comments
Labels
A-macro macro expansion

Comments

@mehmooda
Copy link

mehmooda commented 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 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.

@mehmooda 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
@bjorn3
Copy link
Member

bjorn3 commented Apr 17, 2021

Proc macro attributes are not yet implemented. They are planned to be implemented during the current six week sprint though: #8486

@bjorn3 bjorn3 added the A-macro macro expansion label Apr 17, 2021
@flodiebold
Copy link
Member

Duplicate of #6029

@flodiebold flodiebold marked this as a duplicate of #6029 Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macro macro expansion
Projects
None yet
Development

No branches or pull requests

3 participants