Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Default location of projects.json has changed #18

Open
codycodes opened this issue May 2, 2019 · 3 comments
Open

Default location of projects.json has changed #18

codycodes opened this issue May 2, 2019 · 3 comments

Comments

@codycodes
Copy link

codycodes commented May 2, 2019

When reinstalling and setting up VSCode on a new mac, I noticed this extension wasn't working. What I found is that the path to projects.json has changed.

Since the new path seems to be the default (a pr that fixes this issue for the new path but breaks the old path can be found here), I see a couple options, but there may be better solutions:

  1. Edit the code to search for both paths and check where the projects.json file is when invoking the extension: .../User/projects.json and .../User/globalStorage/alefragnani.project-manager/projects.json To reduce usage you can set a flag stating which path contains the projects.json file and subsequently use that path.
  2. Update the documentation stating where you can change the location of projects.json in vscode.
    A workaround proposed by a member below states you could also do the following and create a symlink to the projects.json file:
cd ~/Library/Application\ Support/Code/User/  # or wherever your file is located
ln -s globalStorage/alefragnani.project-manager/projects.json projects.json 

I just wanted to bring this back up because it's an issue I faced and I find this extension super useful, so not being able to use it would be no bueno. Thanks!

@HanderWei
Copy link

I have the same problem.

Error: ENOENT: no such file or directory, open '/Users/hander/Library/Application Support/Code/User/projects.json'

-
Visual Studio Code 2.1.0
Alfred 3.8.1
darwin x64 17.7.0

@rtvenge
Copy link

rtvenge commented Jun 25, 2019

Looking forward to the fix. 👍

In the mean time, a workaround is to symlink the old file location to the new:

cd ~/Library/Application\ Support/Code/User/  # or wherever your file is located
ln -s globalStorage/alefragnani.project-manager/projects.json projects.json 

Again, not a fix, but a workaround and seemed to work for me. 😃

@taverasmisael
Copy link

You can also change the location of the project.json in the extension configurations. Go to the settings, then type: projectsLocation and paste the location expected by this workflow: ~/Library/Application\ Support/Code/User/. That worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants