Can't create project interface

7 次查看(过去 30 天)
Ian Tejada
Ian Tejada 2022-3-16
Hi everyone,
I'm using a Surface Pro 7 with Windows 11 and MATLAB r2021b/2022a. When opening any of my projects, I got the following error:
com.mathworks.toolbox.slproject.Exceptions.CoreProjectException: Can't create project interface: Invalid path: matlab/Icon.
After getting this error, I'm not able to load or admin my project. I've tried to reinstall MATLAB, but it doesn't help.
If it helps, I've opened these projects on macOS systems (r2021b/2022a) without any issues.
Any suggestions are appreciated! Thanks!

回答(1 个)

Manas Shivakumar
Manas Shivakumar 2023-10-12
Hello Ian Tejada,
I understand that you are facing issues opening a MATLAB R2021a/ R2022a project in Surface Pro 7 machine, but able to do the same successfully in a MacOS system.
Here are some steps you could perform to troubleshoot the issue:
  1. Restore default MATLAB search path and rehash the toolbox cache
  • Before modifying the search path, please ensure to separately store a backup for the pathdef.m file. You can locate pathdef.m by executing the following command in the MATLAB command window:
>> which -all pathdef
  • After taking the backup, execute the following commands in the MATLAB command window to restore default MATLAB search path and rehash the toolbox cache.
>> restoredefaultpath
>> rehash toolboxcache
2.For Simulink, including the following command may be helpful:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
3.If the error is resolved, save the new MATLAB search path by executing the following command in the MATLAB command window:
>> savepath
Please note that the above instructions are only the initial troubleshooting steps to uncover corrupt installation, shadowing issues and path issues. They may or may not work on your specific machine. If the above solution doesn’t help, further investigation of the system’s configuration is required to resolve the issue.
Note: Performing the above-mentioned operations will remove any custom paths that may have been created. The following MATLAB Answers post provides additional information on how to back them up: https://in.mathworks.com/matlabcentral/answers/166871-how-will-running-the-restoredefaultpath-and-savepath-commands-affect-my-custom-paths-and-how-do
Hope this information helps!

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by