GithubHelp home page GithubHelp logo

Comments (7)

Ciantic avatar Ciantic commented on June 3, 2024

I've also raised this in Rust Analyzer forums: https://users.rust-lang.org/t/proc-macros-does-not-work-with-com-crate/53731

I can't understand how one can program without intellisense 🙂 I need to get this working.

from com-rs.

MarijnS95 avatar MarijnS95 commented on June 3, 2024

@Ciantic Afaik this has been working fine in the past, but even going back to rust-analyzer 2020-10-05 shows the same issue. Oddly enough jump-to-symbol works in the webview2 example.

Note that IUnknown is a plain struct here that's not wrapped/generated by proc-macro...

from com-rs.

Ciantic avatar Ciantic commented on June 3, 2024

Edit I see you managed to repro this with all the way to 2020-10-05? Well something is broken in analyzer in that case.

My repro is here:

https://github.com/Ciantic/rust-analyzer-com-rs-failure/blob/master/src/main.rs

It appears after VSCode has started, it takes like a minute for me to appear.

from com-rs.

rylev avatar rylev commented on June 3, 2024

This was also raised here on Zulip. You'll need to enable both "Load out dirs from check" and "Enable proc macro support".

from com-rs.

Ciantic avatar Ciantic commented on June 3, 2024

@rylev It didn't work, I added it earlier: https://github.com/Ciantic/rust-analyzer-com-rs-failure/blob/master/.vscode/settings.json

Can you fork my repo and fix the example? I can't figure it out.

from com-rs.

Ciantic avatar Ciantic commented on June 3, 2024

Uh, looks like my Zulip thing has gone forward more, Jonas Schievink opened an PR rust-lang/rust-analyzer#7171

And commented that

Ah, the problem is that the interfaces! macro collides with the interfaces module, apparently, so I'm assuming the macro expansion fails early on, but works from the IDE later

So maybe it will be fixed in rust-analyzer itself?

from com-rs.

MarijnS95 avatar MarijnS95 commented on June 3, 2024

Edit I see you managed to repro this with all the way to 2020-10-05? Well something is broken in analyzer in that case.

@Ciantic Yup. Could have been (way) longer since I last actively developed on a crate with com-rs though.

Rebuilt RA at rust-lang/rust-analyzer@861a547 (includes that PR), doesn't solve it (don't think it was intended to, but I have not read into the PR/Zulip yet).

from com-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.