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

MATLAB Projects feature creates hundreds of XML files under resources/project directory #24

Open
jvcarli opened this issue Nov 21, 2024 · 1 comment

Comments

@jvcarli
Copy link

jvcarli commented Nov 21, 2024

Hi,

While working with the MATLAB Projects feature, I noticed that it generated over 500 XML files under resources/project. This number of files seems excessive and introduces unnecessary complexity.

I came across a mention of a "single file project" mechanism in this pull request from climatedatastore toolbox, which seems like a more efficient alternative. However, I couldn’t find any official documentation explaining this feature or how to use it.

Could you please confirm if this is an officially supported feature? If so, it would be greatly appreciated to have detailed documentation or guidance on enabling and working with a single file project mechanism.

Thank you!

@rpurser47
Copy link
Member

rpurser47 commented Nov 21, 2024

Yes -- the project system is optimized for very large teams working with thousands of files under source control, where the meta data needs to be stored in a distributed way. If you have a small group of developers, you can use the "single XML file" version of projects. Unfortunately, this has to be set before you create the project. In the preferences panel for projects, there is a "Project Definition Files" setting that you want to switch to "use a single project file"
image
(the "not recommended" note is specifically for projects with lots of collaborators)

Unfortunately, you'll have to delete the project, commit to Git, change the setting, recreate the project, and then recommit (the one XML file) to git.

This is briefly mentioned in this doc page.

Let me know if you're successful, and I'll add a link to this discussion to help future readers.

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

2 participants