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

Unable to start after changing vscode's user data directory #8

Closed
ClementCallendret opened this issue Jun 29, 2023 · 5 comments
Closed
Assignees

Comments

@ClementCallendret
Copy link

Describe the bug
A clear and concise description of what the bug is.
Mobioos is unable to start.
To Reproduce
Steps to reproduce the behavior:

  1. Change your VScode workspace by adding --user-data-dir D:\VScodeWorkspace to your vsCode shortcut
  2. Start VScode with this shortcut (It's reset)
  3. Install mobioos and all the extensions needed
  4. Click on mobioos tab, and nothing happens when you press the 4 buttons.
  5. When you want to refresh it, you get an error "Error running command mobioos-forge.variabilityModel.init: command 'mobioos-forge.variabilityModel.init' not found. This is likely caused by the extension that contributes mobioos-forge.variabilityModel.init."

Expected behavior
A clear and concise description of what you expected to happen.
I exepect it to work as it was before i change my workspace

Screenshotsor event better video
If applicable, add screenshots or videos to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Mobioos Forge version: 2.2.2
  • VScode version: 1.79.2

Additional context
Add any other context about the problem here.
It was working perfectly fine before i change the workspace
All other extensions works, except this one.

@ClementCallendret
Copy link
Author

Edit :
I removed VScode + delete code Appdata + delete .mobioosforge file
I reinstalled VScode with default workspace and reinstall extensions
Mobioos still doesn't work with the same error when clicking on refresh

@tziadi
Copy link
Collaborator

tziadi commented Jun 29, 2023

Please follow the steps below to remove and reinstall the Mobioos Forge extension in VSCode:

  • Remove the Mobioos Forge extension from your VSCode.
  • Delete the "mobioos.mobioos-forge-2.2.2" folder located inside "YourHome/.vscode/extensions".
  • Reinstall Mobioos Forge.

I hope this helps! Let us know if you have any further questions.

@ClementCallendret
Copy link
Author

Thanks for your help !
But it still doesn't work.
Btw it didn't seems like it was really uninstall after uninstall it with VScode. (Installation was way too fast)
I delete .mobioos file in "YourHome" to see what happens, but im still stuck
Any idea ?
In my opinion there is some file created by Mobioos somewhere that i didn't delete. But i already search in home, appdata and in VScode data too. And i can't find it.

@KarimGhallab KarimGhallab self-assigned this Jun 29, 2023
@KarimGhallab
Copy link
Contributor

Thank you for the clear description. I successfully managed to reproduce the issue.
It seems that changing the user data directory breaks the credentials stored by vscode (see issues #130893 and #179202 from the vscode repo) preventing Forge to start-up properly.
To fix this issue, follow the those steps:

  1. Close all your instances of vscode.
  2. Delete all the credentials locally stored by vscode by running the following PowerShell one-liner (given by the vscode team here) : cmdkey /list | Select-String -Pattern "LegacyGeneric:target=(vscode.+)" | ForEach-Object { cmdkey.exe /delete $_.Matches.Groups[1].Value }
  3. Re-open your forge project in vscode and log yourself.

Hope this fixed your issue!

@ClementCallendret
Copy link
Author

Thanks a lot !
It works perfectly fine now !

@KarimGhallab KarimGhallab changed the title Mobioos is unable to start Unable to start after changing vscode's user data directory Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants