show in pubspec.yaml when newer versions of a package are available
See original GitHub issueWould be nice to have a feature simliar to that in Android Studio for build.gradle files, where any dependency library listed that has a newer version would have some sort of syntax highlighting to show there is a newer version of the package available that matches the version rules, basically what would be installed if pub upgrade
was run.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Find and version bump outdated packages in Flutter (across ...
With the latest beta versions of Flutter (v1.17) there is now a pub command to check for, and update, outdated dependencies.
Read more >Using packages - Flutter documentation
All packages have a version number, specified in the package's pubspec.yaml file. The current version of a package is displayed next to its...
Read more >The pubspec file - Dart
Every package has a version. A version number is required to host your package on the pub.dev site, but can be omitted for...
Read more >[Solved] Packages have newer versions incompatible Error
Showing outdated packages. [*] indicates versions that are not the latest available. Package Name Current Upgradable Resolvable Latest direct dependencies: dio ...
Read more >How to install packages in your Flutter app - xeladu - Medium
Add a new entry in your pubspec.yaml file under the dependencies node with the name of the package and a version specifier like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I currently use Pubspec Assist VSCode extension to see if newer package version is available in
pubspec.yaml
. It has code lens forpubspec.yaml
files which shows latest package versions and allows single-click upgrade to latest version like this:However, the indication that package has newer versions is not quite clear, just gray code lens text. I have some ideas about how this feature might be improved if added to Dart Code:
Hope this will be helpful.
@fisforfaheem the comment above yours is showing another VS Code extension (Pubspec Assist) and not this one. If that extension is not working for you, please file an issue in their repository at https://github.com/jeroen-meijer/pubspec-assist.