Proc-macro does not work with com crate

Should the proc_macro support work?

I just get "unresolved" import. My test is here: rust-analyzer-com-rs-failure/ at master · Ciantic/rust-analyzer-com-rs-failure · GitHub

It compiles just fine with cargo build but it seems as if the proc_macros doesn't work at all in VSCode.

I have this in my project setup:

    "rust-analyzer.procMacro.enable": true,
    "": "nightly",
    "rust-analyzer.cargo.loadOutDirsFromCheck": true

You also need "rust-analyzer.cargo.loadOutDirsFromCheck": true for rust-analyzer to be able to find the compiled proc-macro.

I added that also. Didn't help, thanks though. Would love to figure out this.

Looks like something broke in the rust-analyzer before 2020-10-05, see my bug report in here: Rust Analyzer can't recognize the IUnknown · Issue #195 · microsoft/com-rs · GitHub

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.