-
Notifications
You must be signed in to change notification settings - Fork 283
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 extension from VSCode triggers exception on init #2411
Comments
Just took a quick look at this - seems like this is due to our extension host being out-of-date. It's failing when running this line here: https://github.com/Dart-Code/Dart-Code/blob/8893095bb30f3102986d4dfdb1abd78fa58994ef/src/extension/extension.ts#L412 The extension requires a VSCode API version of 1.47.0 - ours is currently at 1.45.0. Need to upgrade to bring it up-to-date. |
I've revved up to 1.47.1 here: #2423 With that, the extension activates, and we get some language services for existing files: However, I see a few issues - there are these errors that come up while editing:
Looks like there might be an issue with the way we are sending buffer updates (might be related to some issues I've seen with other language servers, like Haskell: #2380 ) And a parse failure for document highlights:
|
Any updates on this issue? |
Hi @Jorgee97 - a couple updates:
And then, finally, investigating this issue:
I saw that this using an older analysis service - it turns out the newer, LSP-based language server doesn't have this issue, and seems to behave much better for me in Onivim (I get much nicer completions with it, and importantly no errors): So I'd recommend using it as well - you can do the following:
You can check if the dart extension is using the LSP server by hovering over the Dart status bar item - if it says It sounds like the LSP will soon be the default, anyway: (Dart-Code/Dart-Code#2286 (comment)) |
Many thanks @bryphe, this really helps with autocompletion and fixes errors with the dart/flutter extension. |
Scenario
I saw there's already an issue marked as closed (#2097).
After installing both the flutter and dart extensions, an exception is raised, and there's no syntax highlight or autocomplete.
OS: Windows 10
The text was updated successfully, but these errors were encountered: