Skip to content

Code completion not working in #[tokio::main] #13355

@chanced

Description

@chanced

rust-analyzer version: rust-analyzer version: 0.4.1232-standalone (476d043 2022-10-04)
rustc version: rustc 1.64.0 (a55dd71d5 2022-09-19)
relevant settings:

Image showing that rust analyzer vs code setting Proc Macro is Enabled


I'm not getting code completion in #[tokio::main] but it seems based on old issues that it should work?

Screen.Recording.2022-10-05.at.8.00.43.PM.mov

This is happening in a fresh project with the following Cargo.toml:

[package]
name = "example"
version = "0.1.0"
edition = "2021"

[dependencies]
tokio = { version = "1.21.2", features = ["full"] }

Sorry if I should have resurrected an old issue instead of starting a new one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionA-macromacro expansionBroken WindowBugs / technical debt to be addressed immediatelyC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions