Vscode-project-manager: Support Portable Mode

Created on 21 Jul 2018  路  8Comments  路  Source: alefragnani/vscode-project-manager

[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)

ps: https://code.visualstudio.com/docs/editor/portable

enhancement good first issue good first issue (PR available) portable mode

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",

All 8 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

glambert picture glambert  路  3Comments

dobbbri picture dobbbri  路  5Comments

mt-webdev picture mt-webdev  路  3Comments

jrial picture jrial  路  4Comments

ngryman picture ngryman  路  4Comments