Closed alvarogaiotti closed 1 year ago
Seems like the extension is thinking that I have an old flutter version:
[lsp-server]: rightVersion false
I dug a bit in the repo and the error seems to be in src/lib/sdk.ts, line 91:
return v.every((n, idx) => n >= version[idx]);
after forking the repo, changing the line to:
return (v.every((n, idx) => n >= version[idx]) || v[0] > version[0]);
and installing the extension with vim-plug and testing it [lsp-server]: rightVersion
is true and everything seems to work fine.
That version check is indeed incorrect, thanks for debugging. I’ll fix the comparison.
In my case, I use Flutter 3.4.0-19.0.pre.54 - channel flutter-3.4-candidate.22 In this flutter sdk version the LSP working greatly, but in channel flutter-3.4-candidate.23, some features stop working
on channel flutter-3.4-candidate.22, the Padding widget return with (padding: panding) and I can change
but in channel flutter-3.4-candidate.23, the same widget return with (...)
and updating to channel master LSP not working
please help
@phferreira @alvarogaiotti can you check if this is fixed in v1.9.10?
Actually this one was about dart 3, that should work in v1.9.10
@phferreira can you respond on the other ticket if your issues is also resolved
Describe the bug The lsp is not working with flutter version 3.9.0-1.0.pre.92.
To Reproduce Steps to reproduce the behavior:
Expected behavior Lsp working the standard way, providing completion and code actions etc.
Desktop (please complete the following information):
Output channel: