unable to add namespace folder +toml to the project path
16 views (last 30 days)
Show older comments
Greetings,
I have added it to my project as a github submodule. and I am trying to add it to my project.
Unfortunatelly, when I had the folder and the subfolders, I ame getting a project settings error messages. I bet this is caused by "+" in the folder path but I am not sure.
Alternatively I could install the file exchange on my MATLAB, but there I will need to do this for every machine I am working on, plus it will be like having 2 sources of truth.
Is this is a limitation of the Project Folder? How to solve this appart from using the FileEchange installation?
I am on MATLAB 2025a, but will upgrade to 2026a soon.
2 Comments
Steven Lord
9 minutes ago
I ame getting a project settings error messages.
What is the full and exact text of the error message? Please show us all the text displayed in red in the Command Window (and if there are any warning messages displayed in orange, please show us those too.) The exact text may be useful and/or necessary to determine what's going on and how to avoid the warning and/or error.
I suspect that the cause of the error is what you suspect, since namespace folders cannot be added to the MATLAB search path. The contents of the namespace will be accessible to MATLAB so long as the folder containing the namespace folder is on the path. But seeing the exact error (and knowing whether this error is coming from MATLAB, from Github, etc.) will help confirm this or suggest an alternate cause.
Answers (1)
Walter Roberson
13 minutes ago
To be accessible to MATLAB, the parent folder of the namespace folder must be on the path. Trying to add the namespace folder itself to the path causes an error. For more information, see Namespaces and the MATLAB Path.
0 Comments
See Also
Categories
Find more on Source Control in Projects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
