Skip to content

unresolved-field error in interdependent workspace crates #14296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
martijnarts opened this issue Mar 9, 2023 · 2 comments
Closed

unresolved-field error in interdependent workspace crates #14296

martijnarts opened this issue Mar 9, 2023 · 2 comments
Labels
A-ty type system / type inference / traits / method resolution C-bug Category: bug

Comments

@martijnarts
Copy link

I'm seeing an unresolved-field error on a field that definitely exists and compiles just fine. I think the problem is actually the weird dependencies I've introduced into my workspace modules though. I've reproduced it here: https://github.com/martijnarts/ra-unresolved-field-repro

I haven't tried to fully minimise the reproduction. It might be the case that this happens even without all the interdependencies and such, this is just the scenario that I see in my production code.

Here's what it looks like when breaking:

how-it-breaks

rust-analyzer version: 0.3.1426-standalone (0a956ec 2023-03-05)

rustc version: rustc 1.66.0 (69f9c33d7 2022-12-12)

relevant settings: happens in a basic, unconfigured rust/rust-analyzer setup.

@martijnarts martijnarts added the C-bug Category: bug label Mar 9, 2023
@Veykril Veykril added the A-ty type system / type inference / traits / method resolution label Mar 9, 2023
@lnicola
Copy link
Member

lnicola commented Mar 9, 2023

Probably a dupe of #14167.

It works if you remove the dev-dependency on crate-c from crate-b.

@lnicola lnicola closed this as completed Mar 9, 2023
@martijnarts
Copy link
Author

Ah yes it's definitely a dupe of that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ty type system / type inference / traits / method resolution C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants