-
Notifications
You must be signed in to change notification settings - Fork 28k
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
WSL: running/installing flutter from master fails. #41742
Comments
It also fail if you do this : $ git clone -b stable [email protected]:flutter/flutter.git
$ flutter --version
Building flutter tool
Connection closed while receiving data
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
... so it's not only on master. |
I had the same problem on WSL, solved by adding |
I got the same problem (WSL2 on Windows 10), adding |
Also seeing this issue (WSL1 on W10). |
Not working flutter(WSL1 on W10). user@DESKTOP-ISVFPRU:~/flutter$ flutter |
I have same issue with @ilyoungkim . |
Hey, @ilyoungkim @CXZ7720 I had the same problem too, It happens because you probably installed a windows copy of flutter but trying to run it inside WSL which a Linux environment. You should consider installing the Linux copy too |
Hello, @coolbeatz71. Here's full copy of WSL console.
|
It says you are running flutter from /mnt/c/src/flutter/bin. |
Oh, I See. Thanks for your comment. After I changed my registry value from 7 to 5,
But, unfortunately, every flutter command doesn't work. It only prints like this.
In this case, I think WSL found right linux binaries, but there are some OS specific problems. |
how u solve this? |
interested too |
Am also interested in how you solved the issue and what kind of OS specific problems could cause the issue |
I finally managed to find a solution to this problem, posting this here for anyone who hasn't found this yet. If you are using zsh you can add the below command in flutter(){
command CMD.exe /c flutter $@
} You can then source the file |
Yes, this worked for me. |
this works thank so much |
@JordanMajd |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Using WSL on Windows 10 I am unable to run/install flutter via the master channel; whereas I have no issues with the latest stable release. Running any flutter command from master fails with:
I've reviewed similar issues, however none produced satisfactory results. I tried reproducing the issue directly on an Ubuntu server and everything ran fine; it would seem it is a WSL related issue.
System Information
System information:
Windows 10 Pro 1809 17763.737
Linux <Hostname> 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce
Before either I ensured I had prerequisites installed and my system fully upgraded:
Method One: SDK Install
Method Two: Git Install
git clone -b master https://github.com/flutter/flutter.git # any flutter command will now fail: ./flutter/bin/flutter --version ./flutter/bin/flutter upgrade ./flutter/bin/flutter doctor
Logs
Method One Logs:
Method Two Logs:
The text was updated successfully, but these errors were encountered: