Jump to content

Set "treat read-only VIs as locked" to true as default


Recommended Posts

I posted an idea over on the LabVIEW Idea Exchange titled "Set "tread read-only VIs as locked" to true as default" - reminding us not to edit a VI if it's read-only (you can, of course, still change to edit mode with a ctrl+m, but that's explicit). This is especially important when using the needs-lock property with non-integrated SCC products (like SVN). This also discourages the bad habit of only getting an SCC lock on a file when you're done editing and are saving it (I've seen ppl do this from the "Save" dialog :angry: ). I'd appreciate a few extra votes over there.

Link to comment

Hi Crelf,

(Cross post to idea exchange)

Sorry but representing a team who work with a SCC that is integrated with LabVIEW I would not like this change to happen, the default is just as I am my team want it. I would think this is a no-win suggestion in a way because as many people would like this one way as the other .

Dannyt

Link to comment
Sorry but representing a team who work with a SCC that is integrated with LabVIEW I would not like this change to happen, the default is just as I am my team want it.

(Continuing the Cross Posting)

Forget I mentioned SCC, as this really isn't a SCC issue. In general, ask yourself this question: should you be able to edit a read only file without explicitly setting it to edit mode? I think the answer is no.

Link to comment

(Continuing the Cross Posting)

In general, ask yourself this question: should you be able to edit a read only file without explicitly setting it to edit mode? I think the answer is no.

In general I agree with you. However, LV disallows more than just editing when a vi is locked. I can't copy-and-paste code or controls from a locked vi to the vi I'm working on. I can't right-click >> Find All Instances of a locked vi. (That one really irritates me.) Personally I enable those options on my dev computers, but I think it's a tougher sell to make it a default setting.

  • Like 1
Link to comment
In general I agree with you. However, LV disallows more than just editing when a vi is locked. I can't copy-and-paste code or controls from a locked vi to the vi I'm working on. I can't right-click >> Find All Instances of a locked vi.

Two excellent ideas, but I think they're out of the scope of the idea I'm suggesting. That said, I think what you're saying is important, so I've created Allow copying of FP and BD elements from locked VIs (that one really irks me too) and Allow "Find All Instances" on a locked VI.

Link to comment

In general I agree with you. However, LV disallows more than just editing when a vi is locked. I can't copy-and-paste code or controls from a locked vi to the vi I'm working on. I can't right-click >> Find All Instances of a locked vi. (That one really irritates me.) Personally I enable those options on my dev computers, but I think it's a tougher sell to make it a default setting.

I agree with you too! Why can't we prevent editing (changing the code) but allow copying and find all instances etc?

Link to comment

Well looks like I need to go with the flow then.

<br><br>What about the situation where you intentionally start with a read only file, then edit it, in order to do a save as when you have finished with it. 

I often will start a new file both in LabVIEW & text code that way.<br><br>Dannyt

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.