-
Notifications
You must be signed in to change notification settings - Fork 236
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
Can't reactivate fvm after pub cache repair #352
Comments
@RomanKapshuk sorry for the delay on this. Are you able to reactivate fvm by calling dart or flutter sdk directly? |
For first time fvm is known by terminal, means when I run |
@tazik561 thanks for the details… will have to do some research on this, as I am not sure what fvm is doing differently than any other package. |
FWIW, I've been noticing this with other packages, so I don't think this is specific to fvm. I've noticed the same with Edit: Here's output from running
Interestingly in this case the local package I'm developing installed just fine. @leoafarias not sure if there's any similarities between |
I think is because of fvm, I changed FVM to official SDK and the problem is gone. Now I am using official SDK and I don't have a problem . |
I believe I know what is the problem, and has something that has been brought up before. The process is being run by FVM, and during the repair, process fvm is removed. I am looking into what some of the options might be for the Will investigate ways of detaching that process to see if it helps. |
Ok so I took a look, and the solution is to check if the pub command being run might impact the fvm install.
If those are true it will go ahead and stop execution and output an explanation and the command you should add to your terminal. Also since in the case the installation is not repaired and just removed like in the case of Here is a screenshot: |
FWIW I run into this when running |
Sorry I don't know if I understand correctly. In a power shell as an administrator. I ran: I closed the window and opened it again as an administrator and ran: I received the following:
|
As I mentioned pub cache repair is essentially removing the FVM’s own dependencies. That is why you are getting this error. The PR attached once releases will warns the user that the install will be modified and provides instructions on how to execute it safely |
ok, I understand.
As stated above, I followed your screenshot, gave the command fvm dart pub cache repair, but it didn't return the instructions for the fix. Here's what he returned: PS C:\Users\claud> fvm dart pub cache repair Downloading web_socket_channel 1.1.0...
what do you recommend? |
@ccastroelo this update has not been pushed live add me on telegram and we can discuss. @leoafarias |
please add me. I have never used the telegram and for some reason my account is blocked for non-contacts. @ccastroelo |
After a few unsuccessful attempts I chose to delete the flutter and fvm folders and reinstall everything. And from then on I only got the rights issue when I road the fvm flutter pub get in the project. As you recommended, I deleted the project's .fvm folder, ran "use" again and everything worked. I believe that with the previous instructions the problem would have been solved, but as there was the old configuration in the project's .fvm and I did the mistake of not deleting it, I was stuck. Leo, thank you so much for your help and patience. |
Closing this issue has version that addresses this has been pushed live |
As a result of
fvm flutter pub cache repair
at the end of execution I getThe text was updated successfully, but these errors were encountered: