Skip to content

Regression: Isolate.resolvePackageUri returns null when using resident frontend compiler #62009

@exaby73

Description

@exaby73

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

bin/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
null

Version info

$ dart --version
Dart SDK version: 3.10.0 (stable) (Thu Nov 6 05:24:55 2025 -0800) on "macos_arm64"

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-dart-cliUse 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.triagedIssue has been triaged by sub team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions