Skip to content

Auto Completion/Suggestion Within Proc Macros Broken Since Version 2024-12-23 (0.3.2228) #18834

Closed
@dnlsndr

Description

@dnlsndr

rust-analyzer version: 0.3.2237-standalone (59bc7b4 2024-12-29)

rustc version: rustc 1.83.0 (90b35a623 2024-11-26)

editor or extension: VSCode

relevant settings: Default rust-analyzer configuration

repository link (if public, optional): https://github.com/dnlsndr/rust-analyzer-autocomplete

Ever since version 2024-12-23 has been released, auto completion does not work anymore within proc macros.

To reproduce this, please clone my repository mentioned above and follow these steps:

  1. Open the project in an editor such as VSCode or Zed with the specified rust analyzer version
  2. Go to main.rs to the test section
  3. Try to invoke an auto-completion/suggestion for the nice_struct.
  4. The editor will then respond with "No Suggestions" (e.g. in VSCode)

Using the older version 2024-12-16 (0.3.2220) everything works fine and auto-completions/suggestions appear in the editor.

I've tracked the issue down to possibly this PR that broke auto-completion:
#18723

@ChayimFriedman2 I'll mark you here, as your PR was the closest I could find relating to the issue that I'm seeing :) Doesn't mean you caused it or anything.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions