-
Notifications
You must be signed in to change notification settings - Fork 143
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
fix: permissions issues windows + path error #840
Comments
Shorebird should not require admin access to install. But now that it's installed with admin, the only way to remove it is with admin. I suspect you'll find that the $HOME/.shorebird directory is owned by Admin which means your normal user can modify it (including deleting the cache files). I would recommend using admin to Let me know if I've misunderstood. Thanks! |
Let me rectify I did not install shorebird as admin it was regular but when I open the commands tool (cmd terminal) I did with admin, because this should had solved the permission issue mentioned at the top but it did not. Also the second the error is unrelated so I'm a little confused here |
If you ever run a shorebird command as admin, it's possible it will create a cache directory which will be owned by admin rather than your user. Then later attempts to run shorebird as your user will fail. Could that be what's happening here? I'd recommend removing ~/.shorebird and re-installing (as a user, rather than admin) and see if that fixes the problem? |
I did as instructed deleted and reinstall at first the So I don't think this can be solved on my end, tested both user and admin |
I'm not sure how to help. If you could paste newer logs that might help. But in your original log,
Also, that path looks wrong, now that I look at it. |
Sorry for delay, I've tried both with and without admin privilege permission (cmd, powershell) so I thought maybe I should change installation path shorebird instead of default Edit : I noticed that sometimes right after install I try to launch shorebird doctor it does detect flutter path (but it works only once) after that If I close terminal or retry command the error below happens
|
I don't think this is the problem, but I see: I wonder if something is still running and holding open the lock on the directory? Windows won't let you delete a directory if something is still using it:
I think we need to add more diagnostics to |
hope you put this a priority cause I can't use this on my windows |
Edit : I also receive error when using shorebird init on existing project
|
Description
Clean fresh new installation is not detecting flutter path and some commands are not working like
shorebird cache clean
Steps To Reproduce
shorebird doctor
orshorebird cache clean
Here is result :
`>shorebird doctor
Shorebird v0.9.1
Shorebird Engine • revision 6c1f35b941ba46596b88674cbb7c59ac3eff1119
✓ Shorebird is up-to-date (1.1s)
✗ Flutter install is correct (2.0s)
[✗] Failed to determine Shorebird Flutter version. FlutterValidationException: Flutter version check did not complete successfully.
1 issue detected.`
and here is my
flutter doctor -v
` [√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.19045.3208], locale en-US)
• Flutter version 3.10.5 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 796c8ef792 (4 weeks ago), 2023-06-13 15:51:02 -0700
• Engine revision 45f6e00911
• Dart version 3.0.5
• DevTools version 2.23.1
• Pub download mirror https://pub.flutter-io.cn
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\zakbl\AppData\Local\Android\Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = C:\Users\zakbl\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.2)
• Android Studio at C:\Program Files\Android\Android Studio
• 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 17.0.6+0-b2043.56-9586694)
[√] VS Code (version 1.80.0)
• VS Code at C:\Users\zakbl\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.68.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3208]
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.199
• Edge (web) • edge • web-javascript • Microsoft Edge 114.0.1823.67
[√] Network resources
• All expected network resources are available.`
As you can see this is not normal
The text was updated successfully, but these errors were encountered: