Skip to content

Extensions in portable mode are broken #169006

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

Closed
sandy081 opened this issue Dec 13, 2022 · 4 comments · Fixed by #169056
Closed

Extensions in portable mode are broken #169006

sandy081 opened this issue Dec 13, 2022 · 4 comments · Fixed by #169056
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@sandy081
Copy link
Member

sandy081 commented Dec 13, 2022

From @keck9939

If you follow exactly the instructions at https://code.visualstudio.com/docs/editor/portable#_migrate-to-portable-mode to migrate to portable mode, the extensions vanish. (I'm using Windows 10, VSCode 1.74.0). I did move rather than copy the data and code directories. This may be important, otherwise it might find things in the original location.
In addition, if you re-install the extensions in the portable installation after following the referenced instructions, and then move the whole portable directory from say d:\vscode to e:\vscode, the extensions will vanish again.

Steps to Repro:

  • Create a portable VS Code and install some extensions
  • Copy this set up to another machine
    🐛 No extensions are shown
@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions labels Dec 13, 2022
@sandy081 sandy081 added this to the January 2023 milestone Dec 13, 2022
@sandy081 sandy081 self-assigned this Dec 13, 2022
sandy081 added a commit that referenced this issue Dec 13, 2022
@sandy081 sandy081 added candidate Issue identified as probable candidate for fixing in the next release and removed candidate Issue identified as probable candidate for fixing in the next release labels Dec 14, 2022
sandy081 added a commit that referenced this issue Dec 14, 2022
@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Dec 14, 2022
@sandy081 sandy081 removed the candidate Issue identified as probable candidate for fixing in the next release label Dec 14, 2022
Kalmaegi pushed a commit to Kalmaegi/vscode that referenced this issue Dec 15, 2022
@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Dec 15, 2022
@sandy081
Copy link
Member Author

Here is the workaround until this fix is available

  • Open the extensions folder and delete following files - extensions.json and .init-default-profile-extensions

@animehunter123
Copy link

Hello, Thank you for sharing this workaround. Will this be fixed in a future version? (I use a USB Stick, and when the drive letter changes, it has to be repeated again)? Thanks!

@sandy081
Copy link
Member Author

Will this be fixed in a future version?

Yes, it is and will be available in next release 1.75.0

@Crystal-RainSlide
Copy link

Crystal-RainSlide commented Jan 9, 2023

There are other files that contain absolute paths too:

  • ./data/user-data/languagepacks.json
  • ./data/user-data/User/globalStorage/storage.json

Those absolute paths will be updated on VSCode start, thus, they are not causing any breakages. But, to reduce file change for those portable mode users on the go, is it possible to share the new toRelativePath() function and apply the same fix to the code related to those files?

@connor4312 connor4312 added the verified Verification succeeded label Jan 27, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants