Why are most of the SourceSafe features not available when using it with MATLAB?

1 view (last 30 days)
I have the following issues with SourceSafe within MATLAB:
1. When I initially start MATLAB and open up a function that has been previously checked-in (i.e. it is currently read-only), I cannot check-out the file. The only options available in source control are:
- Add to Source Control...
- Start Source Control System...
2. When I start the source control system, the project working folder is wrong. It is pointing to the 'Current Directory'. If I start SourceSafe outside of MATLAB without MATLAB running, the project working folder is correctly pointing to the right directory.
3. Even when I correct the project to point to the right directory, I still cannot check out a class function as the only options available are as mentioned in point 1 above. This may be because these functions were checked in using SourceSafe outside MATLAB rather than within MATLAB.
4. If I add the source to the project, in goes into the wrong directory. Instead of putting it into the class directory, it puts the function into the project root directory.
5. At most times I seem to not have any other Source Control available to me other than the ones mentioned here. However there are instances for some functions which I have written some time ago, all SourceControl functions seem to be available to me.
I think whether I check-in a function within MATLAB or not should not matter for source control functionality to work within MATLAB. This does not seem to be the case for me.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
To workaround this issue you can either rename or delete the mw.scc file located in the directory returned from entering
prefdir
at the MATLAB Command Prompt. This will clear the incorrect path information and/or old project association information.
After renaming mw.scc, the menu option Register Microsoft Visual SourceSafe with MATLAB should be enabled on the Source Control menu. This allows you to select the appropriate project/directory containing the sources.

More Answers (0)

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!