pubspec-assist icon indicating copy to clipboard operation
pubspec-assist copied to clipboard

Incorrect (and harmful) versions installed

Open JCKodel opened this issue 3 years ago • 2 comments

pubspec-assist should consider the Flutter SDK constraints. For instance, if you request flutter_crashlytics package, it will add version 1.0.0, but this version is beta:

image

Right now, pubspac-assist is pretty useless, because we can't use the versions it adds (we need to check every package on the version page and check if it is beta or stable and adjust the version manually to the latest stable version available, defeating the whole purpose of this plugin) =\

JCKodel avatar Mar 01 '21 16:03 JCKodel

I have a demo of this working but I haven't tested it out thoroughly and there aren't reliable methods of getting the Dart SDK version. I totally agree that this needs to be in the extension, at least as an option.

hatem-u avatar Mar 02 '21 23:03 hatem-u

I have a demo of this working but I haven't tested it out thoroughly and there aren't reliable methods of getting the Dart SDK version. I totally agree that this needs to be in the extension, at least as an option.

Flutter will give you the Dart current version (if you parse its output): Not ideal, but better than nothing (also, dart -v have the same output, but the user can have the Dart language compiler installed as well, which is different than that used by Flutter)

> flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.19042.804], locale pt-BR)
    • Flutter version 1.22.6 at C:\flutter
    • Framework revision 9b2d32b605 (6 weeks ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

...

JCKodel avatar Mar 02 '21 23:03 JCKodel