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

Cyclic dependency in rust? #17015

Closed
dev-ardi opened this issue Apr 4, 2024 · 1 comment
Closed

Cyclic dependency in rust? #17015

dev-ardi opened this issue Apr 4, 2024 · 1 comment
Labels
C-bug Category: bug

Comments

@dev-ardi
Copy link

dev-ardi commented Apr 4, 2024

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

$ rust-analyzer --version
rust-analyzer 1.79.0-nightly (4fd4797 2024-04-03)

rustc version: (eg. output of rustc -V) nightly, commit 4c6c6298664fff9f3549f05ba2b689bcd30b0fc7

editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)

nvim --version
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1693350652

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/nix/store/bjqr6vi3q0f8iy4ncv1z8vl81bzkjq0r-neovim-unwrapped-0.9.4/share/nvim
"

relevant settings: running on NixOS

repository link (if public, optional): https://github.com/rust-lang/rust

I'm gettting this error:

[START][2024-04-04 17:05:07] LSP logging initiated
[ERROR][2024-04-04 17:05:07] .../vim/lsp/rpc.lua:734	"rpc"	"rust-analyzer"	"stderr"	"2024-04-04T15:05:07.511930Z ERROR project_model::workspace: cyclic deps: rand(Idx::<CrateData>(459)) -> libc(Idx::<CrateData>(376)), alternative path: libc(Idx::<CrateData>(376)) -> rustc_std_workspace_core(Idx::<CrateData>(100)) -> core(Idx::<CrateData>(91)) -> rand(Idx::<CrateData>(459))\n2024-04-04T15:05:07.511946Z ERROR project_model::workspace: cyclic deps: rand_core(Idx::<CrateData>(461)) -> getrandom(Idx::<CrateData>(323)), alternative path: getrandom(Idx::<CrateData>(323)) -> cfg_if(Idx::<CrateData>(236)) -> rustc_std_workspace_core(Idx::<CrateData>(100)) -> core(Idx::<CrateData>(91)) -> rand(Idx::<CrateData>(459)) -> rand_chacha(Idx::<CrateData>(460)) -> rand_core(Idx::<CrateData>(461))\n"
@dev-ardi dev-ardi added the C-bug Category: bug label Apr 4, 2024
@Veykril
Copy link
Member

Veykril commented Apr 4, 2024

See #14167, you can ignore that (we should probably downgrade that to a wrning nowadays)

@Veykril Veykril closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants