-
Notifications
You must be signed in to change notification settings - Fork 55
Update to call new dart
tool
#124
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
Comments
cc @natebosch |
Have we made any decisions about how backwards compatible we want to be with older Dart SDKs? @mit-mit - do we have policy about backwards compatibility with our intelliJ or VSCode plugins? |
We don't really have a policy. But given these have been here for several stable releases (since Oct 2020), I'd be fint assuming them by now. |
I admit I generally lean pretty heavily towards backwards-compatibility -- I mean, at some point package:coverage supported about 9 different variants of the VM service protocol -- but I suspect we're good to move forwards with this. A few options:
Honestly, I'm fine with any of those options but lean towards 3. I suspect the main users who need some form of backwards-compatibility are corporate/enterprise users who often lag behind public releases by months/years. Worst-case scenario, people start filing bugs and we implement option 1 then, if it turns out to be a problem. @mit-mit is the plan to eliminate the old commands altogether after some transition period? If so, do you have a timeline? EDIT: ah, it's mostly documented on dart-lang/sdk#46100 with some TBD. |
Yes, 2.10 is the minimum version.
Yes, but it will not happen all at once, see dart-lang/sdk#46100 |
Blocked for |
The exit code issue (which is now dart-lang/dart_style#1035) is now fixed. |
We need to decide whether we make a hard flip to the new API and require users to pin older versions of the plugin if they are on an older SDK where it doesn't work, or whether we want to try to parse the dart version and pick which executable to run based on that. Any thoughts on that @cbracken @sigmundch ? |
My inclination here is to detect the version. Especially given that I expect many external developers to be a couple stable versions behind the latest. As a result, they would miss on any other fix we may add in the plugin later in time until they are ready to upgrade on the Dart side. To get a better picture:
|
It depends on the method they used to install, but it's usually a short config. The tricky part is your next question.
This could end up being about the same complexity as detecting the version.
Yeah I think I'm leaning that way too. I'll see what it might take to implement it. |
I added SDK version scraping in #125 |
Several CLI commands are being deprecated from the Dart SDK (e.g.
dartfmt
,dartanalyze
) in favor of a singledart
comment; see: dart-lang/sdk#46100It would be great to update this plugin to use
dart
instead.The text was updated successfully, but these errors were encountered: