Skip to content

RustLsp expandMacro fails to work in standalone file #90

@fjchen7

Description

@fjchen7

Neovim version (nvim -v)

v0.9.4

Operating system/version

macOS

Output of :checkhealth rustaceanvim

==============================================================================
rustaceanvim: require("rustaceanvim.health").check()

Checking for Lua dependencies ~
- OK [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) installed.

Checking external dependencies ~
- OK rust-analyzer: found rust-analyzer 0.3.1756-standalone (e402c494b 2023-12-01)
- OK Cargo: found cargo 1.74.0 (ecb9851af 2023-10-18)
- OK rustc: found rustc 1.74.0 (79e9716c9 2023-11-13)
- WARNING       debug adapter: not found.
  Install [lldb](https://lldb.llvm.org/) for extended capabilities.
  A debug adapter (defaults to: LLDB).
  Required for debugging features.

Checking config ~
- OK No errors found in config.

Checking for conflicting plugins ~
- OK No conflicting plugins detected.

How to reproduce the issue

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

Run RustLsp expandMacro on macro println!

Expected behaviour

Expand macro

Actual behaviour

image

The minimal config used to reproduce this issue.

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions