Skip to content

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

Closed

Description

@mukhsin

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

Activity

  1. DanTup commented on Mar 21, 2020

    @DanTup
    Member

    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.

  2. assigned and unassigned on Mar 21, 2020
  3. added
    awaiting infoRequires more information from the customer to progress
    on Mar 21, 2020
  4. mukhsin commented on Mar 22, 2020

    @mukhsin
    Author

    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

  5. DanTup commented on Mar 23, 2020

    @DanTup
    Member

    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?).

  6. mukhsin commented on Mar 23, 2020

    @mukhsin
    Author

    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

  7. DanTup commented on Mar 23, 2020

    @DanTup
    Member

    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?

  8. mukhsin commented on Mar 23, 2020

    @mukhsin
    Author

    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

  9. DanTup commented on Mar 23, 2020

    @DanTup
    Member

    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.

  10. 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[/+] on Mar 23, 2020
  11. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    and removed
    awaiting infoRequires more information from the customer to progress
    on Mar 23, 2020
  12. added this to the On Deck milestone on Mar 23, 2020
  13. mukhsin commented on Mar 23, 2020

    @mukhsin
    Author

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

  14. modified the milestones: On Deck, v3.10.0 on Apr 23, 2020
  15. added and removed
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions