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

Rust Analyzer can't recognize the IUnknown #195

Open
@Ciantic

Description

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.

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