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

Dart pack is interfering with rust_analyzer from loading. #468

Closed
vamseekm opened this issue Jul 20, 2023 · 8 comments
Closed

Dart pack is interfering with rust_analyzer from loading. #468

vamseekm opened this issue Jul 20, 2023 · 8 comments

Comments

@vamseekm
Copy link

I have multiple language packs enabled and suddenly rust_anlyzer isn't loading anymore as long as the dart pack is present. :LspInfo is showing rust_analyzer is loaded and attached to the current rust file buffer.

@Uzaaft
Copy link
Member

Uzaaft commented Jul 23, 2023

I just tested with the dark pack and rust pack enabled at the same time. No issues here.
Are you sure that RA is not being slow?
What version of RA are you running?

@vamseekm
Copy link
Author

vamseekm commented Jul 25, 2023

~/.local/share/nvim/mason/bin/rust-analyzer version seems to be

rust-analyzer 0.3.1599-standalone (99718d0c8 2023-07-22)

here is my user config.

  plugins = {
    "AstroNvim/astrocommunity",
    -- { import = "astrocommunity.bars-and-lines.vim-illuminate" },
    { import = "astrocommunity.colorscheme.everforest" },
    -- { import = "astrocommunity.colorscheme.tokyonight-nvim" },
    -- { import = "astrocommunity.colorscheme.poimandres-nvim" },
    -- { import = "astrocommunity.diagnostics.trouble-nvim" },
    -- { import = "astrocommunity.lsp.lsp-inlayhints-nvim" },
    -- { import = "astrocommunity.pack.bash" },
    -- { import = "astrocommunity.pack.go" },
    -- { import = "astrocommunity.pack.html-css" },
    -- { import = "astrocommunity.pack.json" },
    -- { import = "astrocommunity.pack.lua" },
    -- { import = "astrocommunity.pack.markdown" },
    -- { import = "astrocommunity.pack.proto" },
    -- { import = "astrocommunity.pack.python" },
    { import = "astrocommunity.pack.rust" },
    -- { import = "astrocommunity.pack.tailwindcss" },
    -- { import = "astrocommunity.pack.typescript" },
    -- { import = "astrocommunity.pack.vue" },
    { import = "astrocommunity.pack.dart" },
    -- { import = "astrocommunity.utility.noice-nvim" },
  },
  colorscheme = "everforest",
}

@Uzaaft
Copy link
Member

Uzaaft commented Jul 25, 2023

Oh that might be one of the buggy ones @vamseekm . Try and update RA to the newest version :)

@vamseekm
Copy link
Author

I think the binary that's being is used is from homebrew so I upgraded that one. And it's getting loaded and lsp things are working fine. But once I enable dart tools and restart the editor rust-analyzer isn't even showing up in the OS process list. It could be a platform-specific (OSX) quirk.

@Uzaaft
Copy link
Member

Uzaaft commented Jul 26, 2023

I'm also using OSX.
@vamseekm Couldn't it be that RA is just being slow?
I think, it might just be my imagination, but rust + dart pack causes my RA to startup slower

@vamseekm
Copy link
Author

Previously waited a few minutes more than normal to see if the rust analyser was starting slow. Will check again and confirm if the slow startup is the issue.

@Uzaaft
Copy link
Member

Uzaaft commented Aug 2, 2023

Managed to recreate this today🤣 Seems like RA is using extra time to setup when flutter + Rust is enabled.

@Uzaaft
Copy link
Member

Uzaaft commented Apr 25, 2024

Bug is no longer there.

@Uzaaft Uzaaft closed this as completed Apr 25, 2024
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

Successfully merging a pull request may close this issue.

2 participants