mathworks-robotics / mujoco-simulink-blockset

Blocks for accessing MuJoCo physics engine within Simulink
Other
49 stars 6 forks source link

Non-existing directories in MATLAB path after uninstall of toolbox #3

Open traversaro opened 1 year ago

traversaro commented 1 year ago

Thanks a lot for the great work on this library!

I want to report a small problem. After I uninstalled the mujoco_simulink_blockset toolbox, whenever I open MATLAB I get this problem:

Warning: Name is nonexistent or not a directory: C:\Users\STraversaro\AppData\Roaming\MathWorks\MATLAB
Add-Ons\Toolboxes\mujoco_simulink_blockset\Release_win64_2022b_2.3.2\lib\win64\glfw\glfw-3.3.7.bin.WIN64\include 
Warning: Name is nonexistent or not a directory: C:\Users\STraversaro\AppData\Roaming\MathWorks\MATLAB
Add-Ons\Toolboxes\mujoco_simulink_blockset\Release_win64_2022b_2.3.2\lib\win64\mujoco\include 
Warning: Name is nonexistent or not a directory: C:\Users\STraversaro\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\mujoco_simulink_blockset\Release_win64_2022b_2.3.2\src 
Warning: Name is nonexistent or not a directory: C:\Users\STraversaro\AppData\Roaming\MathWorks\MATLAB
Add-Ons\Toolboxes\mujoco_simulink_blockset\Release_win64_2022b_2.3.2\examples 
Warning: Name is nonexistent or not a directory: C:\Users\STraversaro\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\mujoco_simulink_blockset\Release_win64_2022b_2.3.2\blocks 

I guess that the problem is that during the uninstallation of the toolbox the MATLAB path does not get cleaned up, but I am not sure how this can be solved.

vmanoj1996 commented 1 year ago

Hi Silvio, Thank you for trying things out. MATLAB Toolbox packaging setup was added as an after thought. And path removal was never handled from the beginning. Need to streamline the uninstall workflow.

As a workaround, you could open Home Tab->Environment->Set Path. Select those paths, remove and save.

traversaro commented 11 months ago

Thanks for the update @vmanoj1996 ! Just to understand, in which commit was this "completed"?

vmanoj1996 commented 11 months ago

Hi, I was not planning to fix this. Thought of closing the issue....

traversaro commented 11 months ago

I was not planning to fix this. Thought of closing the issue....

No problem, in that case you can close it as "not planned". I was just confused as you closed it as "completed".