You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
I can build the app, but I get the following error: Invalid argument(s): A directory corresponding to fileSystemPath "/Users/develien/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build" could not be found #3549
Invalid argument(s): A directory corresponding to fileSystemPath "/Users/develien/.pub-cache/hosted/pub.dartlang.org/devtools-2.9.2/build" could not be found
There seems to be a problem with the 2.9.2 commit as there were no problems until yesterday.
I have the same problem today,I fixed it with running "dart pub global activate devtools -v 2.8.0"
Reacted by Ayush Mandowara, Hieu Pham, Ben Konyi, John Bhujel, zilvinas-novade, Lomash Dubey, Sokhib, Aamil Silawat, Umut Ocak, Duan Nguyen and 10 more
Reacted by HariPrakashGolusu, Evellyn Lima and Daniel Valerio
Reacted by thanhchelsea, Forward, Ayush Mandowara, John Bhujel, zilvinas-novade, Aamil Silawat, Naimur Hasan, Atsushi Kadowaki, HariPrakashGolusu, Evellyn Lima and 1 more
Reacted by Rajesh, HariPrakashGolusu and Evellyn Lima
thanks,i first try this way,but did not work , then downgrade the devtools version, it works.
You can fix that by adding that directory "$YOUR_PATH\flutter.pub-cache\bin" to your system's "Path" environment variable.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
@yakupbilgen if you're able to upgrade to the latest stable Dart/Flutter SDK, that should prevent the issue as those versions will stick with v2.8.0.
I can't upgrade, my organization is sticking with flutter 2.2.1 and I can't do much about that. Can we please just release a version of devtools that has the appropriate files so that the auto-upgrade of the latest devtools doesn't hamper our work?
On Dec 30, 2021, at 5:21 AM, ayush-mandowara-bst ***@***.***> wrote:
@yakupbilgen if you're able to upgrade to the latest stable Dart/Flutter SDK, that should prevent the issue as those versions will stick with v2.8.0.
I can't upgrade, my organisation is sticking with flutter 2.2.1 and I can't do much about that. Can we please just release a version of devtools which has the appropriate files so that the auto upgrade of latest devtools doesn't hamper our work?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
I suspect those with the ability to publish DevTools are out on vacation right now.
I'm going to add a setting to the VS Code extension to allow disabling the auto-update of DevTools (Dart-Code/Dart-Code#3750) which will be available in the pre-release channel soon which may help in the meantime.
The next release of the Dart extension for VS Code contains a setting that will let you opt-out of automatic updating of DevTools:
This only applies to older SDKs, as the latest SDKs ship with DevTools and VS Code will just use the one from there.
If you'd like to be able to use this setting before the stable extension release, you can switch to the pre-release channel of the Dart/Flutter extensions in VS Code here:
You'll need to run pub global activate devtools 2.8.0 after unticking this, then restart VS Code. You can switch between the release/pre-release channels of the extensions at any time.
Reacted by Yakup Bilgen, Lomash Dubey, Ana Perez Ghiglia and Pavel
@DanTup Hi Dan, are you sure we should use the devtools version 0.8.0 and not 2.8.0. Is the reason behind it to handle this auto updation internally specifically in 0.8.0 version or is it just a typo ?
I've installed v3.29.0 as stated, however the blue box "Switch to Pre-Release Version" isn't there. A search of "update dev" results in "No Settings Found".
The root cause is Flutter updates to beta versions by default instead of stable.
@sandwichstealer I guess 3.32 is already available being the reason pre-release option isn't showing up but I can't confirm about the beta and stable versions involvement. Secondly, search for update dev won't work unless you restart the VS Code I guess that might be the case here as it was in my case too at first attempt.
@sandwichstealer version 3.29.0 is the older version (it was the stable version at the time of my screenshot above, and not the pre-release version). Version 3.32.0 has now been published so you don't need the pre-release version to get this fix. Please update to v3.32.0 and then the setting should appear (if you don't see v3.32.0 you may need to update VS Code).
@jonasfj in VS Code we're using the API to get the latest version number to decide if we should try to update. This means even on the latest version of the SDK, we read the latest version from https://pub.dev/api/packages/devtools and conclude there's an update even though it's retracted (the update does nothing, but it seems wasteful).
What's the correct/best way from that API data to pick the "latest stable that is not retracted" version? Are the items in versions guaranteed to be sorted by version, or publish dates? (I couldn't find anything specific about this in these docs).
What's the correct/best way from that API data to pick the "latest stable that is not retracted" version? Are the items in versions guaranteed to be sorted by version, or publish dates? (I couldn't find anything specific about this in these docs).
No guarantees is given on the ordering. You could probably use something like Version.prioritize.
But the logic we use in dart pub is actually somewhat complicated.
If the current version is a stable release, we only consider newer stable releases (stable release is one that doesn't have a -dev... component in the version number -- also called a prerelease component).
If the current version is a pre-release then we prefer any newer stable releases if one exist, otherwise, we check if a newer pre-release is available.
This might be too complicated for your use-case. So I would suggest just using latest from the API, and ensuring that the latest version on pub.dev is not retracted. In general, the latest version of a package should not be retracted -- I guess we would even tweak latest in the API to not be a retracted version.
I guess we would even tweak latest in the API to not be a retracted version.
I think that would be nice, but I don't know if it's breaking. I think probably I'll leave things as-is for now - like you say, chances are the latest version won't be retracted and it won't matter, and for the latest SDKs we're not pulling DevTools from Pub anyway so it's probably only webdev left being activated by us (stagehand was another, but that's also been migrated to the SDK).
Activity
sangwonnf commentedon Dec 21, 2021
So am I. Did you find a solution?
xxqwf commentedon Dec 21, 2021
So am I. Did you find a solution?
nabeel001 commentedon Dec 21, 2021
I'm facing a similar issue too, Any solutions yet..?
yangweiyi commentedon Dec 21, 2021
I have a similar problem. Have you solved it?
liaozhiqun commentedon Dec 21, 2021
I have the same problem today,I fixed it with running "dart pub global activate devtools -v 2.8.0"
thanhchelsea commentedon Dec 21, 2021
wwoahhh ... thank liaozhiqun. i fix with running "dart pub global activate devtools -v 2.8.0"
xxqwf commentedon Dec 21, 2021
thanks!!
liaozhiqun commentedon Dec 21, 2021
Vaytrex commentedon Dec 21, 2021
You can fix that by adding that directory "$FLUTTER_PATH\flutter\.pub-cache\bin" to your system's "Path" environment variable.
navaronbracke commentedon Dec 21, 2021
The 2.9.2 release apparently doesn't have the required build folder as started in the error log. 2.8.0 is fine however.
ayushxx7 commentedon Dec 21, 2021
For
android stuidodart pub global activate devtools -v 2.8.0to downgrade (as suggested above)It should work now.
ayush-mandowara-bst commentedon Dec 21, 2021
use
activateinstead ofactiveto avoid subcommand error.bkonyi commentedon Dec 21, 2021
2.9.2has been retracted, please rundart pub global activate devtools -v 2.8.0to resolve this issue.tylergasperlin commentedon Dec 22, 2021
this worked but use "activate" instead of active
dart pub global activate devtools -v 2.8.012 remaining items
sureshbb commentedon Dec 30, 2021
I have solved the issue running these commands from terminal,
ayush-mandowara-bst commentedon Dec 30, 2021
I can't upgrade, my organization is sticking with flutter 2.2.1 and I can't do much about that. Can we please just release a version of devtools that has the appropriate files so that the auto-upgrade of the latest devtools doesn't hamper our work?
chornbe commentedon Dec 30, 2021
DanTup commentedon Dec 30, 2021
I suspect those with the ability to publish DevTools are out on vacation right now.
I'm going to add a setting to the VS Code extension to allow disabling the auto-update of DevTools (Dart-Code/Dart-Code#3750) which will be available in the pre-release channel soon which may help in the meantime.
DanTup commentedon Dec 30, 2021
The next release of the Dart extension for VS Code contains a setting that will let you opt-out of automatic updating of DevTools:
This only applies to older SDKs, as the latest SDKs ship with DevTools and VS Code will just use the one from there.
If you'd like to be able to use this setting before the stable extension release, you can switch to the pre-release channel of the Dart/Flutter extensions in VS Code here:
You'll need to run
pub global activate devtools 2.8.0after unticking this, then restart VS Code. You can switch between the release/pre-release channels of the extensions at any time.Ldev007 commentedon Jan 1, 2022
@DanTup Hi Dan, are you sure we should use the devtools version 0.8.0 and not 2.8.0. Is the reason behind it to handle this auto updation internally specifically in 0.8.0 version or is it just a typo ?
Thanks for this fix though.
DanTup commentedon Jan 1, 2022
@Ldev007 oops, well spotted - that was indeed a typo and 2.8.0 is the correct version. I've edited the command in my comment above. Thanks!
jonasfj commentedon Jan 3, 2022
FYI, retraction only works for Dart
>= 2.15, see dart.dev/go/package-retraction.sandwichstealer commentedon Jan 3, 2022
I've installed v3.29.0 as stated, however the blue box "Switch to Pre-Release Version" isn't there. A search of "update dev" results in "No Settings Found".
The root cause is Flutter updates to beta versions by default instead of stable.
Ldev007 commentedon Jan 3, 2022
@sandwichstealer I guess 3.32 is already available being the reason pre-release option isn't showing up but I can't confirm about the beta and stable versions involvement. Secondly, search for update dev won't work unless you restart the VS Code I guess that might be the case here as it was in my case too at first attempt.
DanTup commentedon Jan 4, 2022
@sandwichstealer version 3.29.0 is the older version (it was the stable version at the time of my screenshot above, and not the pre-release version). Version 3.32.0 has now been published so you don't need the pre-release version to get this fix. Please update to v3.32.0 and then the setting should appear (if you don't see v3.32.0 you may need to update VS Code).
DanTup commentedon Jan 4, 2022
@jonasfj in VS Code we're using the API to get the latest version number to decide if we should try to update. This means even on the latest version of the SDK, we read the
latestversion from https://pub.dev/api/packages/devtools and conclude there's an update even though it's retracted (the update does nothing, but it seems wasteful).What's the correct/best way from that API data to pick the "latest stable that is not retracted" version? Are the items in
versionsguaranteed to be sorted by version, or publish dates? (I couldn't find anything specific about this in these docs).kenzieschmoll commentedon Jan 4, 2022
Published 2.9.3 on pub to resolve this issue.
jonasfj commentedon Jan 5, 2022
No guarantees is given on the ordering. You could probably use something like Version.prioritize.
But the logic we use in
dart pubis actually somewhat complicated.-dev...component in the version number -- also called a prerelease component).This might be too complicated for your use-case. So I would suggest just using
latestfrom the API, and ensuring that the latest version on pub.dev is not retracted. In general, the latest version of a package should not be retracted -- I guess we would even tweaklatestin the API to not be a retracted version.DanTup commentedon Jan 5, 2022
@jonasfj
I think that would be nice, but I don't know if it's breaking. I think probably I'll leave things as-is for now - like you say, chances are the latest version won't be retracted and it won't matter, and for the latest SDKs we're not pulling DevTools from Pub anyway so it's probably only
webdevleft being activated by us (stagehandwas another, but that's also been migrated to the SDK).Thanks!