[GH-ISSUE #1912] [Bug] Dev Scripts cause flutter version reset #753

Closed
opened 2026-03-23 20:40:38 +00:00 by mirror · 3 comments
Owner

Originally created by @AmanNegi on GitHub (Mar 3, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1912

Issue

When we setup our environment using the install_dev_env files, it causes the Flutter Version to reset to the latest stable one. This behavior should be improved as we are using the specific version v3.3.10 and any other version would cause error in the building process.

Caused By

I was able to narrow down the cause of error as the following lines in the install_dev_env files:

# Enable the flutter stable channel
printMessage "Setting up Flutter"
flutter channel stable

Solutions

Simply, comment these lines and prompt the user to have the specific version at end. As anyone following the gitbook would have the right version installed. Also we are assuming here that the, flutter is added to path and is thus installed, so it makes sense to remove this line.

How to Reproduce

On your system install flutter v3.3.10, and then run the scripts provided under install_dev_env and then check your flutter version.

Expected Behavior

Do not modify pre-existing flutter version.

Operating System

Ubuntu 20.04.5 LTS

AppFlowy Version(s)

1.0.0.1

Screenshots

No response

Additional Context

No response

Originally created by @AmanNegi on GitHub (Mar 3, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1912 ## Issue When we setup our environment using the `install_dev_env` files, it causes the Flutter Version to reset to the latest stable one. This behavior should be improved as we are using the specific version `v3.3.10` and any other version would cause error in the building process. ## Caused By I was able to narrow down the cause of error as the following lines in the `install_dev_env` files: ``` sh # Enable the flutter stable channel printMessage "Setting up Flutter" flutter channel stable ``` ## Solutions > Simply, comment these lines and prompt the user to have the specific version at end. As anyone following the [gitbook](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/environment-setup) would have the right version installed. Also we are assuming here that the, `flutter` is added to path and is thus installed, so it makes sense to remove this line. ### How to Reproduce On your system install `flutter v3.3.10`, and then run the scripts provided under `install_dev_env` and then check your flutter version. ### Expected Behavior Do not modify pre-existing flutter version. ### Operating System Ubuntu 20.04.5 LTS ### AppFlowy Version(s) 1.0.0.1 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@AmanNegi commented on GitHub (Mar 3, 2023):

Let me know, if I am right on this. And I would love to comment those lines 🤣

<!-- gh-comment-id:1452941844 --> @AmanNegi commented on GitHub (Mar 3, 2023): Let me know, if I am right on this. And I would love to comment those lines 🤣
Author
Owner

@LucasXu0 commented on GitHub (Mar 3, 2023):

Hey, @AmanNegi. Yes. It's right. You can submit a PR to replace them with a new command to switch to v3.3.10 version.

<!-- gh-comment-id:1452957047 --> @LucasXu0 commented on GitHub (Mar 3, 2023): Hey, @AmanNegi. Yes. It's right. You can submit a PR to replace them with a new command to switch to v3.3.10 version.
Author
Owner

@AmanNegi commented on GitHub (Mar 24, 2023):

Hey @LucasXu0 as there are no further reports of this issue, I will be closing this issue.

<!-- gh-comment-id:1483024964 --> @AmanNegi commented on GitHub (Mar 24, 2023): Hey @LucasXu0 as there are no further reports of this issue, I will be closing this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#753
No description provided.