How to unlock project settings file (CW 8.5, IDE 5.7, MPC5200)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to unlock project settings file (CW 8.5, IDE 5.7, MPC5200)

2,698 次查看
peperson
Contributor I
Merged my changes to SourceSafe, got the latest version, and now
I get a C/W messages box saying "The project settings file for project
"myproject.mcp" is locked, some of your user settings will not be
saved".

Where is the "project settings file", and how do I unlock it?
标签 (1)
标记 (1)
0 项奖励
5 回复数

952 次查看
CrasyCat
Specialist III
Hello
 
This is the .mcp file.
Did you check the .mcp file out in SourceSafe?
 
CrasyCat
0 项奖励

952 次查看
CompilerGuru
NXP Employee
NXP Employee
Actually I think that message is generated when the XXX_Data folder (with XXX the project name) is readonly, or more precisely the CWSettingsWindows.stg file it contains.

Do not place the XXX_Data folder or any file it contains into the source revision control system, that folder only contains data which can be recreated like object files or browse information and other "volatile" information not necesary for building.

Daniel

951 次查看
peperson
Contributor I
You were right, it was the CWSettingsWindows.stg file in the Myproject_Data folder that was read-only.

I originally thought it was the .mcp file (which was checked out from sourcesafe and was readonly), but clearing that didn't help.

Clearing the read-only attribute on the CWSettingsWindows.stg file fixed it.

Thanks!
0 项奖励

952 次查看
JohnnyG
Contributor I
Being the lazy sot that I am, I have a script that recursively makes every file in the tree writable:
chmod a+rw -R *
chmod a+rw -R *.*

then I edit to my heart's content (it's the way we work here. In prior lives I would check out a file or two - exclusively for my use while they were locked, like in the real world)

When I'm done, MKS (it's the way we work here. In prior lives...) tells me which files have changed. I lock them, check them in, and hope I don't have to merge someone else's changes.
Hope this helps.

0 项奖励

952 次查看
J2MEJediMaster
Specialist I
Check this forum thread for extensive information on how to manage CodeWarrior with version control software. HTH.

---Tom
0 项奖励