09-18-2012 02:46 PM
I am running LabVIEW 2011 SP1. In Windows Explorer some of my files (both .vi and .lvproj) have a small padlock on the file icon. The files open fine and aren't broken. What does this icon represent?
09-18-2012 02:51 PM
Read-only, perhaps? Are they checked into source control?
09-18-2012 03:14 PM
Its not read-only. It is in our source control, but it is not checked out.
09-19-2012 07:08 AM
@TheMarko wrote:
Its not read-only. It is in our source control, but it is not checked out.
If it isn't checked out, then it should be locked. Hence the padlock.
09-19-2012 08:20 AM
That sounds logical, but isn't the case. The file icon with the padlock is in my local directory not in the source safe area. Furthermore not all of the files have the padlock on them. Also they aren't actually locked. I'm not sure why they have the padlock because it doesn't seem to make them act any different than non-padlocked items. A co-worker has seen the same thing and he thinks it is related to the file having some kind of problem or error when it compiles but so far I haven't noticed any issues like that. I was hoping someone else had seen it too and knew for sure what it was.
09-19-2012 10:01 AM
Tools>>Options>>Enviroment. Check the box for "Treat read only files as Locked"
09-19-2012 10:06 AM
No, that isn't checked. Only the 'Enable automatic saving for recovery' option is checked in the Saving VIs section
09-19-2012 10:15 AM
@TheMarko wrote:
No, that isn't checked. Only the 'Enable automatic saving for recovery' option is checked in the Saving VIs section
You WANT to check that box if you use source control. (Trust me - your really want to check the box )
09-19-2012 10:23 AM
Lol OK, thanks for that tip. Toggling that option didn't seem to have any affect on the icon though. From what I've experienced the strange icon hasn't affected anything [yet]. I am just trying to figure out where it came from and what it is going to eventually affect because I'm sure its there for some reason.
09-19-2012 10:24 AM
@JÞB wrote:
Tools>>Options>>Enviroment. Check the box for "Treat read only files as Locked"
I interpreted that as "Observe the state of the checkbox," rather than "Make sure the box has a check mark." Maybe the OP read it the same way. 😉