Update: the symptoms are slightly different this time. Everything works fine under my login, but not the other login. Last time the symptoms were present regardless of who was logged in to windows. I have tried reinstalling the data acquision toolbox but that did not fix it.
Matlab ignoring pathdef updates
8 views (last 30 days)
Show older comments
I have a bug that has happened twice now. It has a number of apparently unrelated symptoms that all start happening at the same time. I am running 2020a on windows with a machine licence, with signal processing and data acquisition toolbox. The symptoms are:
The data acquisition toolbox disappears. I reinstalled it last week when this bug happened and it was working fine up until today.
I get this warning on startup: Warning: Name is nonexistent or not a directory: C:\Users\user.name\AppData\Local\Temp\Editor_vxdxq
Changes to pathdef get ignored. I have confirmed via [which pathdef -all] that I only have one version, in the default location. I have confirmed that it gets updated when I set the path. But somehow matlab ends up with a different path, even if I reboot the PC.
It only happens when one user is signed in to windows. When I sign in with my account it does not happen (so far...).
I'll try reinstalling the toolbox for now, but this will cause me problems if it happens again at a bad time, so I need it fixed.
Accepted Answer
More Answers (1)
Steven Lord
on 28 Apr 2021
You wrote "The data acquisition toolbox disappears." Does that mean that calling functions in that toolbox don't work or does it mean when you navigate to the toolbox directory under matlabroot using Windows File Explorer that there is no subdirectory for that toolbox?
If the latter that's obviously not expected behavior. Was there a particular function or series of functions that the user who experienced this behavior ran between the last time they knew Data Acquisition Toolbox was available and the first time it was missing? I'm trying to eliminate the possibility someone accidentally or maliciously added code to those functions to delete the Data Acquisition Toolbox directory.
Since "It only happens when one user is signed in to windows. When I sign in with my account it does not happen (so far...)." have you confirmed that the user doesn't have a pathdef.m of their own (independent of the one included in MATLAB) in the directory in which they (or their desktop shortcut) starts MATLAB? You indicated that you only see one pathdef.m but that doesn't preclude the other user from having a different pathdef.m.
If none of these expose the cause of this behavior, you should contact Technical Support and work with them to diagnose this problem. They should be able to work with you with a shorter feedback cycle than Answers posts (including no delay if you call them up.)
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!