colin-kiegel / rust-derive-builder

derive builder implementation for rust structs
https://colin-kiegel.github.io/rust-derive-builder/
Apache License 2.0
1.32k stars 88 forks source link

Code completition in InteliJ #264

Closed Patrik-Stas closed 2 years ago

Patrik-Stas commented 2 years ago

Hi, has anyone encountered issue that code completion doesn't work in InteliJ idea with Rust plugin? I tried expand generated macros and replace the normal code with the expanded one, then it works. For some reason it looks like InteliJ doesn't expand macros generated by this crate. Any ideas?

Thank you.

image
Patrik-Stas commented 2 years ago

Anyone running into this, the answer is that derive_builder generates macros procedurally and support for this in intelij rust plugin is limited. See here https://github.com/intellij-rust/intellij-rust/issues/1786