zed icon indicating copy to clipboard operation
zed copied to clipboard

Dart LSP error: "Unknown method textDocument/didSave"

Open ernanvr opened this issue 1 year ago • 5 comments

Check for existing issues

  • [x] Completed

Describe the bug / provide steps to reproduce it

I installed Dart Zed Extension. Every time I save a file I get "Unknown method textDocument/didSave" error. image

Environment

image

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log

ernanvr avatar Jul 12 '24 02:07 ernanvr

This issue occurred in the latest Zed version (0.143.6, 0.143.7).

mcpeng avatar Jul 12 '24 05:07 mcpeng

I found a related issue on dart-lang repo and this My understanding is that dart-lang server doesn't support textDocumentSync. Zed editor should check whether the server method is supported before sending it.

avatarnguyen avatar Jul 12 '24 09:07 avatarnguyen

I'm loving Zed, but it's amazing how annoying this bug is... it's making me think about going back to vscode until there's a resolution. I wish I understood how I could fix it.

jocubeit avatar Jul 13 '24 05:07 jocubeit

I'm loving Zed, but it's amazing how annoying this bug is... it's making me think about going back to vscode until there's a resolution. I wish I understood how I could fix it.

That's exactly what I was thinking

ernanvr avatar Jul 13 '24 14:07 ernanvr

Thank you @avatarnguyen , that information was very useful. I've created https://github.com/zed-industries/zed/pull/14412 and that seems to fix the issues.

SomeoneToIgnore avatar Jul 13 '24 18:07 SomeoneToIgnore

Closed via

  • https://github.com/zed-industries/zed/pull/14412

JosephTLyons avatar Jul 17 '24 20:07 JosephTLyons