Skip to content

modding with absolute path disables autocomplete #16666

@Proxtx

Description

@Proxtx

rust-analyzer version: 0.3.1850-standalone (68c506f 2024-02-19)
rustc version: rustc 1.77.0-nightly (30dfb9e04 2024-01-14)

I'm writing a build script that automatically mods some other files. The build script generates it's output to some directory which then is included with the include! macro. The main file behaves correcty, the autocomplete treats the injected code as if the include macro didn't exist (which is expected). In the included files compile-errors are displayed correctly as well. Just autocomplete is not working. When modding the file manually in main.rs autocomplete starts working. Note that the modded file is in a different directory than src (still within the same vscode session tho)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vfsC-bugCategory: bugS-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.S-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions