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

Does not create the projects.json file #162

Closed
ngryman opened this issue Jan 11, 2018 · 4 comments
Closed

Does not create the projects.json file #162

ngryman opened this issue Jan 11, 2018 · 4 comments
Labels
MacOS Needs a Mac to reproduce/fix/develop need more info question

Comments

@ngryman
Copy link

ngryman commented Jan 11, 2018

Hey, I've just installed your extension and it seems that the projects.json file is not created. When I browse to the default path /Users/xxx/Library/Application Support/Code/User I only can see a projects_cache_git.json file. Also, executing a Save Project command displays me an error message.

The only settings I've customized are as follows:

{
  "projectManager.git.baseFolders": [
    "/Users/xxx/Projects"
  ],
  "projectManager.git.maxDepthRecursion": 1
}

I'm running VSCode 1.19.2 and High Sierra 10.13.2.

@alefragnani
Copy link
Owner

Hi @ngryman ,

If you use projectManager.git.baseFolders (or svn / vscode), the projects are automatically detected an so, no projects.json file is created, only the caches. There is no need to Save a Project (listed from your git config).

You should use the Save Project command to store non-git/svn/vscode projects, which are not automatically detected.

But even in this scenario, the command must work. Could you please paste the error message, and also the Console output from Help / Toggle Developer Tools?

Hope this helps

@ngryman
Copy link
Author

ngryman commented Jan 13, 2018

Hey @alefragnani,

Thanks for the explanaton, gotcha. I'm trying to use your extension with this Alfred workflow. And it seems that he relies on the projects.json file to display all the available projects.

Do you think it would be possible to always create this projects.json so 3rd party tools leveraging your extension could always rely on that file? If not, what should I propose to the developer of this workflow to make it work with versioned projects?

Save Project actually works now 😮 I guess it happened to me just after installing the extension 🤷‍♂️

Thanks!

@alefragnani
Copy link
Owner

Hi @ngryman ,

That's cool! I didn't know about this extension. That's really fun to see the projects available in Alfred 😄

The projects.json is really not necessary, because you may choose to use only auto-detected projects (git, svn, vscode). And even if I add an empty file, the autodetected projects will not appear.

I think the correct approach is to suggest the Alfred Workflow extension to support auto-detected projects, merging the results with the projects available in projects.json (if any).

Hope this helps.

@alefragnani alefragnani added question MacOS Needs a Mac to reproduce/fix/develop and removed bug labels Jan 15, 2018
@ngryman
Copy link
Author

ngryman commented Jan 15, 2018

Hey @alefragnani, thanks for the suggestion! I've contacted the author and proposed your change.

@ngryman ngryman closed this as completed Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MacOS Needs a Mac to reproduce/fix/develop need more info question
Projects
None yet
Development

No branches or pull requests

2 participants