-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.Use area-dart-cli for issues related to the 'dart' command like tool.area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamIssue has been triaged by sub team
Description
Not sure when this regressed, but running a program with dart run -r causes Isolate.resolvePackageUri and Isolate.resolvePackageUriSync to always return null
To reproduce
pubspec.yaml
name: test_project
description: A sample command-line application.
version: 1.0.0
environment:
sdk: ^3.10.0
dependencies:
path: ^1.9.0bin/test_project.dart
import 'dart:isolate';
Future<void> main() async {
print(await Isolate.resolvePackageUri(Uri.parse('package:path/')));
}Expected output
$ dart run
file:///Users/exaby73/.pub-cache/hosted/pub.dev/path-1.9.1/lib/$ dart run -r
file:///Users/exaby73/.pub-cache/hosted/pub.dev/path-1.9.1/lib/Actual output
$ dart run
file:///Users/exaby73/.pub-cache/hosted/pub.dev/path-1.9.1/lib/$ dart run -r
nullVersion info
$ dart --version
Dart SDK version: 3.10.0 (stable) (Thu Nov 6 05:24:55 2025 -0800) on "macos_arm64"
Shreemanarjun and smit-ai
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.Use area-dart-cli for issues related to the 'dart' command like tool.area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamIssue has been triaged by sub team