[Extension Host] Error: ENOENT: no such file or directory, open 'C:\Users\XXX\AppData\Roaming\Code\User\projects.json'
Because the file is in the program directory
.\data\user-data\User\projects.json (windows)
Hi @hcwhan ,
I noted the announcement in the latest release, but I didn't use/evaluate this portable mode yet, so I don't know what needs to be done to make the extension compatible.
For the projects.json file itself, you could change the projectManager.projectLocation setting to some _portable path_, and see what happens.
Hope this helps
Hey @alefragnani,
I tried your suggestion and added the following to the settings:
"projectManager.projectsLocation": "C:/software/vscode/data/user-data/User/projects.json"
The file exists on that path, but it says the project list is empty anyway.
Also the icon in the left sidebar is missing.
If there's anything I can do to help, let me know.
Hi @xotik ,
Are you _moving to Portable version_ or started from scratch? Have you saved any project, prior to using List Projects to Open command?
Hello @alefragnani,
About your questions:
Are you moving to Portable version or started from scratch?
I am not. I followed the instructions in this link
Have you saved any project, prior to using List Projects to Open command?
Yes, but even when saving it's weird: the first time I save I don't get the project saved notification, and if I attempt a second time it tells it already exists (normal behaviour I think).
Now if I try to list after saving I get the box telling me to choose from the existing projects (there are none, not even the one I just saved)
If I restart vscode, the attempt to list gives the 'No projects saved yet' notification.
Hope it helps.
@xotik @alefragnani
"projectManager.projectsLocation" just need to set the file path:
E.g
"projectManager.projectsLocation": "D:/Software/Document/VSCode/data/user-data/User",
@alefragnani Yes, that solves it, guess the filename was the issue.
Thanks @hcwhan !
Thanks @hcwhan for your comment, and your PR 馃憤 .
I should take a look at your PR only in the next week.
The PRs #204 and #242 where merged. A new version will be released after New Year's holiday.
Most helpful comment
@xotik @alefragnani
"projectManager.projectsLocation"just need to set the file path:E.g
"projectManager.projectsLocation": "D:/Software/Document/VSCode/data/user-data/User",