Skip to content

Puro dart commands fail and dart unable to detect Flutter SDK #147

@Vonarian

Description

@Vonarian
puro dart run build_runner build --delete-conflicting-outputs                                                                  255 ✘  11:26:09 
Resolving dependencies in `/Users/vonar/PetaProc/joow/frontend`... 
Because joow depends on flutter_test from sdk which doesn't exist (the Flutter SDK is not available), version solving failed.

Flutter users should use `flutter pub` instead of `dart pub`.

The issue rrousselGit/riverpod#4416 is not due to dot-shorthands or generators, but how the dart executable "detects" things in 3.38.1 (Latest Flutter Stable as of now with Dart 3.10.0).

Using flutter pub works fine, while dart pub and dart run fail, even puro dart run fails.
prefs.json:

{
  "defaultEnvironment": "lts",
  "lastUpdateCheck": "2025-11-17T10:29:59.210931",
  "legacyPubCache": false
}

A puro reinstall, an envs reinstall, puro gc, modifying dart and flutter scripts, none of them help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Bugs

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions