Skip to content
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

Error due to cyclic deps #13009

Closed
sehz opened this issue Aug 13, 2022 · 1 comment
Closed

Error due to cyclic deps #13009

sehz opened this issue Aug 13, 2022 · 1 comment

Comments

@sehz
Copy link

sehz commented Aug 13, 2022

rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)

rust-analyzer version: 0.3.1162-standalone (634cfe3d7 2022-08-07)

rustc version: (eg. output of rustc -V)

rustc -V
rustc 1.63.0 (4b91a6ea7 2022-08-08)

relevant settings: (eg. client settings, or environment variables like CARGO, RUSTUP_HOME or CARGO_HOME)


Rust analyzer crashes due to loop. This is from server log

error[E0554]: `#![feature]` may not be used on the stable release channel
   --> /Users/sehyo/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/anyhow-1.0.61/src/lib.rs:214:32
    |
214 | #![cfg_attr(backtrace, feature(backtrace))]
    |                                ^^^^^^^^^


error: aborting due to previous error


For more information about this error, try `rustc --explain E0554`.

error: could not compile `anyhow` due to 2 previous errors


[ERROR project_model::workspace] cyclic deps: fluvio_dataplane_protocol(CrateId(168)) -> fluvio_dataplane_protocol(CrateId(168)), alternative path: fluvio_dataplane_protocol(CrateId(168))
[ERROR project_model::workspace] cyclic deps: fluvio_protocol(CrateId(177)) -> fluvio_protocol(CrateId(177)), alternative path: fluvio_protocol(CrateId(177))
[ERROR project_model::workspace] cyclic deps: fluvio_protocol_derive(CrateId(191)) -> fluvio_protocol(CrateId(177)), alternative path: fluvio_protocol(CrateId(177)) -> fluvio_protocol_derive(CrateId(191))
[ERROR project_model::workspace] cyclic deps: fluvio_storage(CrateId(214)) -> fluvio_storage(CrateId(214)), alternative path: fluvio_storage(CrateId(214))

Steps to reproduce:

  1. Clone repo
git clone https://github.com/infinyon/fluvio.git
  1. Run Rust Analyzer
@lnicola
Copy link
Member

lnicola commented Aug 13, 2022

Duplicate of #12973

@lnicola lnicola marked this as a duplicate of #12973 Aug 13, 2022
@lnicola lnicola closed this as completed Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants