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
When using the stream! or try_stream! macros autocomplete with rust analyzer works fine until a yield statement is written, this is due to the macro no longer expanding if there is any invalid rust (but only once a yield statement has been written). See the rust analyzer issue here explaining in more detail how autocomplete fails when macros fail to expand (specifically for this crate's macros): rust-lang/rust-analyzer#12759
I have no experience writing proc macros, I'm wondering is it possible to change the way the proc macros are written to always expand even if there is a yield statement and the Rust code is invalid? This would allow rust analyzer auto complete to function properly in all cases. I tested and noticed the tokio select! macro seems to consistently expand which allows autocomplete to function normally.
The text was updated successfully, but these errors were encountered:
When using the
stream!
ortry_stream!
macros autocomplete with rust analyzer works fine until ayield
statement is written, this is due to the macro no longer expanding if there is any invalid rust (but only once ayield
statement has been written). See the rust analyzer issue here explaining in more detail how autocomplete fails when macros fail to expand (specifically for this crate's macros): rust-lang/rust-analyzer#12759I have no experience writing proc macros, I'm wondering is it possible to change the way the proc macros are written to always expand even if there is a
yield
statement and the Rust code is invalid? This would allow rust analyzer auto complete to function properly in all cases. I tested and noticed the tokioselect!
macro seems to consistently expand which allows autocomplete to function normally.The text was updated successfully, but these errors were encountered: