-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[extension] Issues with Dart / Flutter extension #3999
Comments
@sr229 it'd be nice to see if the following VSCode extension works properly in Theia |
@vince-fugnitto we do have a VSCode-compatible API AFAIK so let's see how that bodes well |
@sr229 if you find issues, please dump your findings here. We will categorise and prioritise them. |
I work on the Dart/Flutter extensions for VS Code - I was just trying them out here to see how well they worked. I think the extensions may be failing to activate since the first thing I expect it to do is pop up and tell me it can't find a Dart SDK but it did not. We search There are some errors in the console which may be related:
There were many other things I noticed didn't work - but I suspect they're all related to this (for ex. no code completion, no SDK version in the status bar, commands like "Dart: New Project" don't work). FWIW, there are also these warnings - which I suspect are just bits you haven't implemented yet, but FYI Dart does use them (debug/toolBar to add a hot reload icon to the debug toolbar, and view/title for some options in the Flutter Outline view):
|
Hey @DanTup, I looked into it and the latest version doesn't work the code-dart extension uses new yet unsupported API ( There are however many errors coming from the language server which seem wrong. Would be great if you can have a look and share any insights as I don't have experience in flutter/dart. |
I think many of the errors come from not having run I was trying to get pub-get-on-pubspec-changes to work, but it didn't seem to run. I tried to run the Dart: Capture Logs command to help debug, but that command doesn't seem to show up in the command palette - it has a context which should be set when the extension is activated: I think maybe the extension still is not activating correctly, maybe due to this:
|
I've changed the config so it opens on hello_world (see https://github.com/svenefftinge/flutter_web/blob/master/.gitpod.yml#L3) We'll have a deeper look into the rough edges (e.g. i noticed weird editing issues) with your extension. And report our progress here. Thanks for trying! |
Also, related flutter/flutter#32436 |
@svenefftinge what's the best way to report issues when trying to use Dart/Flutter? Should I list them here, or open separate issues for each, or something else? For ex., hit this one just now:
The objects are |
Separate issues will be better. |
Let me know if you want a separate issue for that one, and I'll open new issues for anything else like this I find. Thanks! |
By the way - when I click Start -> Debug, nothing happens (even with a custom build with the treeview code commented out to avoid errors during activation). Is there any way to debug that (assuming it's expected to work)? |
You can track progress in this branch: https://github.com/theia-ide/theia/tree/ak/flutter_support Related issues: |
Missing commands:
|
Missing activation events:
|
@DanTup Could you help me a bit please? I'm trying to understand what are expectations around I'm going to stub |
Sorry for the delay, I missed this one. The Essentially, VS Code allows extensions to publish URIs like I don't think not implementing this would be a problem, but should you wish to in future, you would probably end up with some link on your own domain that maps to the same (eg. The feature it was intended to support (which has not been linked up) was that we could have links on the website to "run this sample" that could spawn VS Code and have it automatically create the sample app (via |
I think this has been resolved now. |
Description
Dart is a language created by Google that is standardized under ECMA TC52. It has gained traction recently because of a recent development named Flutter.
There is a community LS for Dart support via a Dart Analysis Server Shim.
The text was updated successfully, but these errors were encountered: