Skip to content

Error after adding rules_rust to my project #264

@calebzulawski

Description

@calebzulawski

After adding rules_rust to my project, I can no longer generate a compile_commands.json. I get the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'bazel-out/darwin_arm64-opt-exec-ST-d8084f4a0513/bin/external/portable_cc_toolchain+/detail/tools/clang++.sh'

If I examine bazel-out, I find the following file:

bazel-out/darwin_arm64-opt-exec-ST-d57f47055a04/bin/external/portable_cc_toolchain+/detail/tools/clang++.sh

Note that the hash is different. I suspect something with toolchain resolution is making the configuration different.

Metadata

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