Desktop Tools and Development Environment |
Troubleshooting Source Control Problems
These are possible solutions to some common source control problems.
Source Control Error: Provider Not Present or Not Installed Properly
In some cases, MATLAB recognizes your source control system but you cannot use source control features for MATLAB. Specifically, when you select File -> Preferences -> General -> Source Control, or run cmopts
, MATLAB lists your source control system, but you cannot perform any source control actions. Only the File -> Source Control -> Start Source Control System menu item is available, and when you select it, MATLAB displays this error:
Source control provider is not present or not installed properly.
Often, this error occurs because a registry key that MATLAB requires from the source control application is not present. Make sure this registry key is present:
HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider\ InstalledSCCProviders
The registry key refers to another registry key that is similar to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SourceSafe\SccServerPath
This registry key has a path to a DLL-file in the file system. Make sure the DLL-file exists in that location. If you are not familiar with registry keys, ask your system administrator for help.
If this does not solve the problem and you use Microsoft Visual SourceSafe, try running a client setup for your source control application. When SourceSafe is installed on a server for a group to use, each machine client can run a setup but is not required to do so. However, some applications that interface with SourceSafe, including MATLAB, require you to run the client setup. Run the client setup, which should resolve the problem.
If the problem persists, access source control outside of MATLAB.
Restriction Against @ Character with Perforce Systems
Perforce source control systems reserve the @
character as a revision specifier. Therefore, Perforce cannot be used with MATLAB files and directories that include the @
character in the directory or filename.
Add to Source Control Is the Only Action Available
To use source control features for a file in Simulink or Stateflow, the file's source control project must first be registered with MATLAB. When a file's source control project is not registered with MATLAB, all File -> Source Control menu items are disabled except Add to Source Control. You can select Add to Source Control, which registers the project with MATLAB, or you can register the project using the Current Directory browser, as described in Register Source Control Project with MATLAB. You can then perform source control actions for all files in that project (directory).
More Solutions for Source Control Problems
The latest solutions for problems interfacing MATLAB with source control system appear on the MathWorks Web page for support at http://www.mathworks.com/support/. Search Solutions and Technical Notes for "source control".
Performing Source Control Actions from the Editor, Simulink, or Stateflow | Source Control Interface on UNIX Platforms |
© 1994-2005 The MathWorks, Inc.