Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flutter Doctor confused about path capitalization #131982

Closed as not planned
Closed as not planned
@userFortyTwo

Description

@userFortyTwo

Is there an existing issue for this?

Steps to reproduce

Output of running flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F82 darwin-x64, locale
    en-US)
    ! Warning: `flutter` on your path resolves to
      /Users/me/Desktop/flutter/installation/bin/flutter, which is not
      inside your current Flutter SDK checkout at
      /Users/me/desktop/flutter/installation. Consider adding
      /Users/me/desktop/flutter/installation/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/me/Desktop/flutter/installation/bin/dart, which is not inside
      your current Flutter SDK checkout at
      /Users/me/desktop/flutter/installation. Consider adding
      /Users/me/desktop/flutter/installation/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.80.1)
[✓] VS Code (version 1.81.0-insider)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.

Apparently, flutter doctor is confused by whether or not the Desktop directory inside the path is capitalized.

Expected results

There should be no warning since the disk is using the default case-insensitive APFS.

Actual results

There is a warning.

Code sample

-- no code sample --

Screenshots or Video

No response

Logs

No response

Flutter Doctor output

[!] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F82 darwin-x64, locale
    en-US)
    • Flutter version 3.10.6 on channel stable at
      /Users/me/desktop/flutter/installation
    ! Warning: `flutter` on your path resolves to
      /Users/me/Desktop/flutter/installation/bin/flutter, which is not
      inside your current Flutter SDK checkout at
      /Users/me/desktop/flutter/installation. Consider adding
      /Users/me/desktop/flutter/installation/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/me/Desktop/flutter/installation/bin/dart, which is not inside
      your current Flutter SDK checkout at
      /Users/me/desktop/flutter/installation. Consider adding
      /Users/me/desktop/flutter/installation/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (3 weeks ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.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.1)
    • Android SDK at /Users/me/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • 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.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] 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.80.1)
    • VS Code at /Users/me/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] VS Code (version 1.81.0-insider)
    • VS Code at /Users/me/Applications/Visual Studio Code -
      Insiders.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (3 available)
    • iPhone 14 (mobile) • 1AC89D1E-C1A3-49B6-9676-C95F0CA503BC • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)    • macos                                • darwin-x64
      • macOS 13.4.1 22F82 darwin-x64
    • Chrome (web)       • chrome                               • web-javascript
      • Google Chrome 115.0.5790.114

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions