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

Invalid log paths (eg. copied from other platforms) may result in activation failures without a helpful error message #2310

Closed
mukhsin opened this issue Mar 21, 2020 · 8 comments
Labels
Milestone

Comments

@mukhsin
Copy link

mukhsin commented Mar 21, 2020

Hi,

I have an error when running flutter extensions in vscode
I always get "command 'flutter.blaBla' not found
I opened developer tools and I got this error
Screen Shot 2020-03-21 at 21 55 08

I'm sure this error comes from another extension I'm using (for syncing extensions)
https://github.com/shanalikhan/code-settings-sync

It says that it cannot create a directory inside /home/ubuntu, which is in my old laptop
Currently, I'm using macos

What I tried:

  1. uninstall and reinstall flutter and dart extensions from extensions sidebar
  2. manually remove extension folder inside .vscode/extensions then reinstall from extensions sidebar
  3. open developer tools and got that error

Thanks

@DanTup
Copy link
Member

DanTup commented Mar 21, 2020

Can you try expanding the top error ("Activating failed") and post the stack?

If that doesn't have much more info, also try clicking Help -> Toggle Developer Tools and then check the Console tab to see if there's any more info there on what went wrong.

@DanTup DanTup assigned DanTup and unassigned DanTup Mar 21, 2020
@DanTup DanTup added the awaiting info Requires more information from the customer to progress label Mar 21, 2020
@mukhsin
Copy link
Author

mukhsin commented Mar 22, 2020

Here what I got
Screen Shot 2020-03-22 at 10 13 41

And here is the createProject error details
Screen Shot 2020-03-22 at 10 20 02

I don't know why I got a different error
But I'm sure this is caused by sync extension I'm using
I tried to resync after I had removed flutter and dart extensions but still got that error

FYI
I have also export flutter and dart to my PATH
Screen Shot 2020-03-22 at 10 17 06

@DanTup
Copy link
Member

DanTup commented Mar 23, 2020

But I'm sure this is caused by sync extension I'm using

Ah - are you syncing between machines that have different file system paths for your settings? For example SDK paths? It could be that these paths have been synchronised so we're trying to make folders in the wrong place.

If so, can you tell which paths have been synchronised? And also confirm whether you're using a third-party settings sync, or the built-in VS Code behaviour (this might only be in Insiders?).

@mukhsin
Copy link
Author

mukhsin commented Mar 23, 2020

Yes, I installed Ubuntu on my old machine and currently I'm using macbook

I'm not sure which folder the sync extension I'm using uses
It might ~/.vscode/extensions

I tried to uninstall both flutter and dart extension
Then resync my extensions so flutter and dart should be removed on my gist
Then uninstall vscode and reinstall it
Then install sync extension and pull my extensions from my gist
But it doesn't work and I still got the error

This is my last error after I did steps above
Screen Shot 2020-03-23 at 10 01 10

@DanTup
Copy link
Member

DanTup commented Mar 23, 2020

Which sync extension are you using? Is it synchronising just the installed extensions, or also the settings for them?

Can you open your VS Code Settings (press Cmd+,) and see if any of the settings have invalid paths (that may have been copied from Ubuntu), eg. starting with /home?

@mukhsin
Copy link
Author

mukhsin commented Mar 23, 2020

Ah, I got it
Here I found dart.extensionsLogFile which points to /home/ubuntu/extension.txt
image

I removed that line and now I can fun flutter doctor from Cmd+Shift+P
image

Thank you so much

@DanTup
Copy link
Member

DanTup commented Mar 23, 2020

Great, glad you sorted it!

We should handle this a bit better though, to make the error less cryptic. I'll keep this issue open to try and come up with some improvements.

@DanTup DanTup changed the title "command 'flutter.createProject' not found" in VS Code Invalid log paths (eg. copied from other platforms) may result in activation failures without a helpful error message Mar 23, 2020
@DanTup DanTup added is enhancement and removed awaiting info Requires more information from the customer to progress labels Mar 23, 2020
@DanTup DanTup added this to the On Deck milestone Mar 23, 2020
@mukhsin
Copy link
Author

mukhsin commented Mar 23, 2020

Ok
Now I can run flutter and dart normally on vscode
Thanks

@DanTup DanTup modified the milestones: On Deck, v3.10.0 Apr 23, 2020
@DanTup DanTup closed this as completed in 5523860 Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants