LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
altenbach

Dangling wires with a single source should be bleached, not broken.

Status: New

This idea is somewhat related to the following ideas, but not a duplicate:

 

Bleach Dead Code

Colored Broken Wires

 

In my opinion, if a wire has a single source, (but no sink), it should not be broken, because it has a valid data type and no illegal constructs (such as e.g. a wire without source, a wire with two sources, a wire between two incompatible terminals, etc).

 

Of course one way around it are the JKI Wire-Nuts, but they require a trip to the palette. 😄

 

My suggestion is to simply treat them as valid, but dead code and Ctrl+b should not remove them initially (maybe only after entering ctrl+b twice in a row?). They should have the appearance of the correct data type, but should be bleached as suggested here for all other dead code. This will make it easy to tack down a few wires for later code completion and they will be easier to tell apart based on the appearance.

 

Currently, everything looks black with a few hints based on wire width. This idea will also make the truly broken wires easier to find because they will still be black.

 

Discussion points:

Maybe it should be possible to probe dangling wires during debugging.

If a dangling error wire is connected to an error output, automatic error handling should be suppressed (similarly to wiring to e.g. a structure boundary only)

 

3 Comments
elset191
Active Participant

Regarding your easy to track down for future code completion point...I happen to like that they're broken, as this is currently how I track things I've 'marked' for future code completion.  Hit run, and all the areas I marked come up in the error window and are real easy to get to this way.  (I also sometimes dangle a wire from a sink too, which should no doubt remain broken)

 

I do miss the ability to run other parts of the code though, so maybe if there was some way to go through all the dangling wires similar to the error window.  I'd say making them warnings would be okay, but as I've mentioned somewhere else before, there's so many other warnings that I don't care about that I don't even show them anymore.

 

If your idea is implemented and they are not broken, I would hope you could probe them.

--
Tim Elsey
Certified LabVIEW Architect
X.
Trusted Enthusiast
Trusted Enthusiast

I support this, just for the beauty of dangling wire of multiple colors. At last we will be able to draw ANYTHING with LabVIEW...

X.
Trusted Enthusiast
Trusted Enthusiast

As a follow up, I posted this Breakpoint contribution.