Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify and updated permanent PATH guide on 'macOS install' page #6295

Closed
koiranos opened this issue Sep 20, 2021 · 3 comments
Closed

Verify and updated permanent PATH guide on 'macOS install' page #6295

koiranos opened this issue Sep 20, 2021 · 3 comments
Assignees
Labels
a.get-started Relates to the Getting Started section of docs.flutter.dev cl.fixed Issue is closed as fixed devos.macOS Relates to developing apps on macOS platform e0-minutes Effort: < 60 min p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface.

Comments

@koiranos
Copy link

Page URL

https://flutter.dev/docs/get-started/install/macos/

Page source

https://github.com/flutter/website/tree/main/src/docs/get-started/install/macos.md

Describe the problem

By following the Get the Flutter SDK installation way, the provided zip flutter_macos_2.5.1-stable.zip file has not the necessary instructions to execute the flutter command.

After adding flutter tool to path as it is suggested in Update Your Path section and verifying that the paths for flutter and dart a correct, the execution of flutter doctor command returns command not found: flutter.

Steps for verification:

Checking path for flutter and dart

kostas@myMac ~ % which flutter dart
/Users/kostas/Documents/Projects/others/flutter/bin/flutter
/Users/kostas/Documents/Projects/others/flutter/bin/dart

running flutter doctor

kostas@myMac ~ % flutter doctor
zsh: command not found: flutter

The only viable way to be able to use the flutter command is by cloning the GitHub repository from the provided url https://github.com/flutter/flutter.git.

Expected fix

There are two possible solutions for this issue:

  1. Assuming that the path is exported as it should. The extraction location of the SDK should be a global one and not a desired one in order for the flutter tool to be identified from the system correctly.
  2. If the fist suggestion is not the case. Provide an updated version of the SDK zip file that helps in the same way.

Additional context

No response

@TahaTesser TahaTesser added the st.triage.triage-team Triage team reviewing and categorizing the issue label Sep 20, 2021
@TahaTesser
Copy link
Member

TahaTesser commented Sep 20, 2021

Hi @koiranos
Instructions for path in Get the Flutter SDK are temporary as mentioned in the last line
"This command sets your PATH variable for the current terminal window only. To permanently add Flutter to your path, see Update your path."

if you restart your terminal temp path will be lost and the flutter won't work.

if you want a permanent path, you need to edit your path file as instructed in Update Your Path

@koiranos
Copy link
Author

Hi @TahaTesser as you can see from my post I have mentioned the permanent path approach, which I followed as instructed. I edited the zshrc file and exported the required path.

The issue here is that the Get the Flutter SDK way is a little bit problematic while the Git Clone approach is working as expected. I opened this ticket to inform you that there is an inconsistency in the instructions that need to be taken care.

@TahaTesser TahaTesser added e0-minutes Effort: < 60 min p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface. and removed st.triage.triage-team Triage team reviewing and categorizing the issue labels Sep 21, 2021
@atsansone atsansone added a: install devos.macOS Relates to developing apps on macOS platform labels Sep 30, 2022
@atsansone atsansone added the a.get-started Relates to the Getting Started section of docs.flutter.dev label May 17, 2023
@atsansone atsansone changed the title [PAGE ISSUE]: 'macOS install' Verify and updated permanent PATH guide on 'macOS install' page May 17, 2023
@atsansone atsansone self-assigned this Jun 20, 2023
@atsansone atsansone added the cl.fixed Issue is closed as fixed label Sep 25, 2023
@atsansone
Copy link
Contributor

@koiranos : This issue was raised against a much older version of Flutter. It should be resolved due to subsequent changes to the docs and the Flutter SDK. Closing this issue.

If this is still a concern, please reopen this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a.get-started Relates to the Getting Started section of docs.flutter.dev cl.fixed Issue is closed as fixed devos.macOS Relates to developing apps on macOS platform e0-minutes Effort: < 60 min p3-low Valid but not urgent concern. Resolve when possible. Encourage upvote to surface.
Projects
None yet
Development

No branches or pull requests

3 participants