-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: first hourThe first hour of using FlutterThe first hour of using Flutterc: crashStack traces logged to the consoleStack traces logged to the consolefound in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Using the master channel, running flutter pub get with any arguments except --directory or -C throws with the error saying the tool expected to find a project root in <INSERT_ARGUMENT>. E.g. flutter pub get -v or flutter pub get --offline.
flutter --version
Flutter 3.7.0-31.0.pre.25 • channel master • ssh://[email protected]/flutter/flutter.git
Framework • revision 2c34a88eb8 (2 hours ago) • 2023-01-31 02:28:09 -0500
Engine • revision 72abe0e4b8
Tools • Dart 3.0.0 (build 3.0.0-179.0.dev) • DevTools 2.20.1flutter doctor -v
[!] Flutter (Channel master, 3.7.0-31.0.pre.25, on macOS 13.0 22A380 darwin-arm64, locale en-NO)
• Flutter version 3.7.0-31.0.pre.25 on channel master at /Users/arne/flutter
! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.0.0-0.0.dev/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/arne/flutter. Consider adding /Users/arne/flutter/bin to the front of your path.
! Upstream repository ssh://[email protected]/flutter/flutter.git is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to ssh://[email protected]/flutter/flutter.git to dismiss this error.
• Framework revision 2c34a88eb8 (2 hours ago), 2023-01-31 02:28:09 -0500
• Engine revision 72abe0e4b8
• Dart version 3.0.0 (build 3.0.0-179.0.dev)
• DevTools version 2.20.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/arne/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[✓] VS Code (version 1.74.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.58.0
[✓] Connected device (3 available)
• Arne’s iPhone (mobile) • 00008101-00052D0E3A92001E • ios • iOS 16.0 20A362
• macOS (desktop) • macos • darwin-arm64 • macOS 13.0 22A380 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.119
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
logs
➜ core_mobile git:(dart-3) ✗ flutter pub get -v
[ +7 ms] executing: sysctl hw.optional.arm64
[ +5 ms] Exit code 0 from: sysctl hw.optional.arm64
[ ] hw.optional.arm64: 1
[ ] executing: [/Users/arne/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[ +11 ms] Exit code 0 from: git -c log.showSignature=false log
-n 1 --pretty=format:%H
[ ] 2c34a88eb89628e6a80caa50dd03797f9b6aa5e5
[ ] executing: [/Users/arne/flutter/] git tag --points-at
2c34a88eb89628e6a80caa50dd03797f9b6aa5e5
[ +18 ms] Exit code 0 from: git tag --points-at
2c34a88eb89628e6a80caa50dd03797f9b6aa5e5
[ ] executing: [/Users/arne/flutter/] git describe --match
*.*.* --long --tags 2c34a88eb89628e6a80caa50dd03797f9b6aa5e5
[ +30 ms] Exit code 0 from: git describe --match *.*.* --long
--tags 2c34a88eb89628e6a80caa50dd03797f9b6aa5e5
[ ] 3.7.0-30.0.pre-25-g2c34a88eb8
[ +4 ms] executing: [/Users/arne/flutter/] git rev-parse
--abbrev-ref --symbolic @{upstream}
[ +9 ms] Exit code 0 from: git rev-parse --abbrev-ref
--symbolic @{upstream}
[ ] origin/master
[ ] executing: [/Users/arne/flutter/] git ls-remote
--get-url origin
[ +9 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] ssh://[email protected]/flutter/flutter.git
[ +2 ms] executing: [/Users/arne/flutter/] git rev-parse
--abbrev-ref HEAD
[ +9 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ ] executing: sw_vers -productName
[ +8 ms] Exit code 0 from: sw_vers -productName
[ ] macOS
[ ] executing: sw_vers -productVersion
[ +7 ms] Exit code 0 from: sw_vers -productVersion
[ ] 13.0
[ ] executing: sw_vers -buildVersion
[ +7 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 22A380
[ ] executing: uname -m
[ +2 ms] Exit code 0 from: uname -m
[ ] arm64
[ +5 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is
not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts'
is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is
not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is
not required, skipping update.
[ +16 ms] Artifact Instance of 'MaterialFonts' is not required,
skipping update.
[ ] Artifact Instance of 'GradleWrapper' is not required,
skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is
not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts'
is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required,
skipping update.
[ ] Artifact Instance of 'FlutterSdk' is not required,
skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is
not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is
not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not
required, skipping update.
[ ] Artifact Instance of 'PubDependencies' is not
required, skipping update.
[ +29 ms] Using a naked argument for directory is deprecated
and will
stop working in a future Flutter release.
Use --directory instead.
[ +7 ms] "flutter get" took 97ms.
[ +1 ms] Expected to find project root in -v.
[ ]
#0 throwToolExit
(package:flutter_tools/src/base/common.dart:10:3)
#1 PackagesGetCommand.runCommand
(package:flutter_tools/src/commands/packages.dart:254:11)
#2 FlutterCommand.verifyThenRunCommand
(package:flutter_tools/src/runner/flutter_command.dart:1451:12)
<asynchronous suspension>
#3 FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1287:27)
<asynchronous suspension>
#4 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#5 CommandRunner.runCommand
(package:args/command_runner.dart:212:13)
<asynchronous suspension>
#6 FlutterCommandRunner.runCommand.<anonymous
closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:288
:9)
<asynchronous suspension>
#7 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#8 FlutterCommandRunner.runCommand
(package:flutter_tools/src/runner/flutter_command_runner.dart:236
:5)
<asynchronous suspension>
#9 run.<anonymous closure>.<anonymous closure>
(package:flutter_tools/runner.dart:64:9)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure>
(package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#11 main
(package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
[ +117 ms] ensureAnalyticsSent: 116ms
[ +1 ms] Running 0 shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1From my brief lookup it looks like this was introduced in b7881e5 (cc @sigurdm).
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: first hourThe first hour of using FlutterThe first hour of using Flutterc: crashStack traces logged to the consoleStack traces logged to the consolefound in release: 3.7Found to occur in 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.