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
When attempting to enable a command using pub global activate, the Dart SDK installation process fails. This issue occurs consistently. The error message does not provide a clear indication of the root cause, making it difficult to troubleshoot. This problem affects the usability of packages that rely on global activation for their commands.
Steps to reproduce
Run dart pub global activate dvmx.
Run dvm install --latest
Observe that the Dart SDK installation fails.
Expected behavior
The Dart SDK should be installed successfully.
Actual behavior
The installation process fails.
Log
$ dvm install --latest
✗ Failed to install 3.5.0.
Exception: Could not find Dart SDK (6.8s)
Environment
Dart Version: 3.4.1
DVM Version: 0.0.7
OS Version: macOS 14.5
Note
If you enable the DVM command and install the Dart SDK using the following command, it works correctly:
brew install blendfactory/tap/dvm
The text was updated successfully, but these errors were encountered:
When the dvm command is enabled from Pub.dev or Git, it disregards the pubspec.lock file and resolves package dependencies based on the Dart SDK version and pubspec.yaml, which results in packages being retrieved. Due to this, a version of the archive package with breaking changes was used, leading to issues. Specifically, in version 3.5.0 of the archive package, the extractArchiveToDisk() method was changed from a synchronous operation to an asynchronous one. As a result, the next process was executed before the extraction of the compressed file was completed, leading to exceptions being thrown because the necessary files could not be found.
Overview
When attempting to enable a command using pub global activate, the Dart SDK installation process fails. This issue occurs consistently. The error message does not provide a clear indication of the root cause, making it difficult to troubleshoot. This problem affects the usability of packages that rely on global activation for their commands.
Steps to reproduce
dart pub global activate dvmx
.dvm install --latest
Expected behavior
The Dart SDK should be installed successfully.
Actual behavior
The installation process fails.
Log
Environment
Note
If you enable the DVM command and install the Dart SDK using the following command, it works correctly:
The text was updated successfully, but these errors were encountered: