Skip to content

rust-project proc macro error #2299

Open
@rbtcollins

Description

@rbtcollins

Not sure of the details under the hood right now.

I have a project that when I use rust-analyzer without a rust-project.json file, correctly handles proc macros.

If the only change I make is to generate a rust-project.json file per the rules_rust docs, I get:

proc macro `Parser` not expanded: Failed to get file metadata for /home/robertc/.cache/bazel/_bazel_robertc/c5f0e75839fa3d2553cd278dc66c33cc/execroot/_main/bazel-out/k8-opt-exec-ST-a57dd009456a/bin/external/crate_index__clap_derive-4.4.7/libclap_derive-1998004905.so: No such file or directory (os error 2)
proc macro `Serialize` not expanded: Failed to get file metadata for /home/robertc/.cache/bazel/_bazel_robertc/c5f0e75839fa3d2553cd278dc66c33cc/execroot/_main/bazel-out/k8-opt-exec-ST-a57dd009456a/bin/external/crate_index__serde_derive-1.0.193/libserde_derive-3101248512.so: No such file or directory (os error 2)

And indeed, those files don't exist.

I've tried disabling our remote build support, and that had no impact, so doesn't seem to be a failure to copy the artifact down.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions