question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

show in pubspec.yaml when newer versions of a package are available

See original GitHub issue

Would 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:open
  • Created 4 years ago
  • Reactions:12
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
roman-petrovcommented, Oct 20, 2021

I currently use Pubspec Assist VSCode extension to see if newer package version is available in pubspec.yaml. It has code lens for pubspec.yaml files which shows latest package versions and allows single-click upgrade to latest version like this:

image

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:

  • show colorful code lens texts
  • adding a command to upgrade all dependencies to “latest”.

Hope this will be helpful.

0reactions
DanTupcommented, Aug 30, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found