Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Rust Analyzer can't recognize the IUnknown #195

Description

@Ciantic

It's very hard to develop on 0.3 since Rust Analyzer can't recognize the IUnknown.

In VSCode settings.json I have this:

{
    "rust-analyzer.procMacro.enable": true
}

And if I write this:

use com::{interfaces, interfaces::iunknown::IUnknown};

fn main() {
    println!("Hello, world!"); 
}

It gives unresolved import:

image

Yet it builds just fine with cargo build.

I think RLS support is a must, developing without IDE support is pretty difficult, maybe I have misconfigured my setup somehow.

Also from the get-go, I think I don't like the macro approach in 0.3, because I suspect it will break Go to definition etc. IDE features that used to work with trait approach.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions