claude-code-lsps icon indicating copy to clipboard operation
claude-code-lsps copied to clipboard

dart lsp can not work

Open k1r3zz opened this issue 10 months ago • 4 comments

Image Image

Claude Code v2.0.76

Image

I have installed lsp and dart is available on my computer, but I have been unable to use dart lsp

k1r3zz avatar Jan 06 '26 02:01 k1r3zz

Image

k1r3zz avatar Jan 06 '26 02:01 k1r3zz

Thanks for reporting! You're on Claude Code v2.0.76, which has a known LSP integration bug (race condition). This was fixed in v2.1.0+.

Please upgrade to the latest Claude Code version:

claude --version  # Check current version
# Upgrade to latest

The dart-analyzer plugin configuration matches the official Dart LSP specs, so upgrading should resolve the issue.

If you still see problems after upgrading to v2.1.0+, please:

  1. Check /plugin for any errors
  2. Verify dart --version works in your terminal
  3. Share any error messages from the Plugins tab

Let me know if the issue persists after upgrading!

boostvolt avatar Jan 08 '26 17:01 boostvolt

hello, I can use it now, but I have a question. I have multiple flutter dart versions locally for different projects In the new flutter version, the "mcp" of DARt-MCP-server can be used. It can call the dart language server and lsp by itself. However, I switched to the old flutter 3.29, which does not support DARt-MCP-server. He also can't directly use the dart language server through your service. I just want to use this lsp server in those projects that can't upgrade the dart. I wonder if there's a way

k1r3zz avatar Jan 09 '26 02:01 k1r3zz

The plugin uses whatever dart is in your PATH. Use FVM or set PATH to the desired Flutter SDK before starting Claude Code. dart language-server works with Flutter 3.29.

boostvolt avatar Jan 16 '26 22:01 boostvolt