Matlab seems to search outside of path

So, working from home, I have slow network paths (VPN). Therefore, I've removed this network path from my path variable. But now I get this error:
>> read_loading
'reset_all' is not found in the current folder or on the MATLAB path, but exists
in:
\\local\user\Home\<me>\My Documents\MATLAB
Change the MATLAB current folder or add its folder to the MATLAB path.
Error in read_loading (line 1)
reset_all
So, although I didn't want Matlab to search in the \\local (network) directory, it did so anyway. This makes things very (VERY) slow (is it also searching at other network drives? I've got more installed...)
(indeed reset_all is in the location indicated, so I need to adjust the 'read_loading' script)
I can't find an option to not do this, is there a way around this?

4 Commenti

I wonder if it would help to
rehash toolboxcache
Hmm... strange. It does indeed help. But after disconnecting from VPN I still get the message that reset_all is located at the now non-existent //local/... directory. So apparently it doesn't actually search in this location again, but it is in cache somhow. However, it was really slow anyway, does it perhaps try to validate the toolboxcache?
Hello,
I see that the response provided by Walter has helped to an extent. Please use the documentation for more assitance on caching.
It turns out that it is for the most part, if not entirely, a Windows issue. So it takes Windows a long time to realize the broken network path is useless (I suspect a timeout somewhere). So, broken mapped network drives are just killing (also with other software, like Word).

Accedi per commentare.

Risposte (0)

Categorie

Prodotti

Release

R2020a

Richiesto:

il 12 Dic 2021

Commentato:

il 23 Dic 2021

Community Treasure Hunt

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

Start Hunting!

Translated by