LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Defective 'Show Completions'

Solved!
Go to solution

Right now, the command 'Edit / Show Completions' seems to show all known functions, variables, ... This is not my understanding of 'completing' a partially typed text.

 

Let's assume I am typing my_functi  and want to see possible completions, e.g. my_function_simple and my_function_complicated - but obviously I do not want to see ATTR_HT_HASH_FUNCTION... simply because this CAN NOT complete my typed text... it could replace it, but this is not the idea of function completion.

 

I am attaching two figures showing the issue...

 

comp_1.png

comp_2.png

0 Kudos
Message 1 of 3
(3,683 Views)
Solution
Accepted by topic author Wolfgang

Hello Wolfgang!

 

As of CVI 2013, the Show Completions list underwent several changes. One of them is the fact that the completion results now include every possible symbol that is accessible from the scope where Show Completions is invoked. This is an intended behavior, because sometimes, users want to see other items in the Show Completions list, than the ones that exactly match their identifier. Despite of the other symbols that are now being added to the list, the Show Completions list highlights the correct match, while the user is typing, but only jumps to the first item in the list (similar to the second picture that you attached in your post), in the case when a match couldn't be found.

 

So in your example, although 'my_function_simple' or 'my_function_complicated' are highlighted because these are the best matches that correspond to your 'my_functi' token, ATTR_HT_HASH_FUNCTION and other symbols are suggested by the Show Completions list as an intended behavior.

0 Kudos
Message 2 of 3
(3,672 Views)

I had read the readme and realized that there are a few changes, but haven't seen this change mentioned Smiley Wink

 

Anyway, thank you for the explanation. I can accept it and may be one day I will like the new behavior... 

 

May be one should have renamed the command to 'Show Symbols' if this is the real functionality...

0 Kudos
Message 3 of 3
(3,667 Views)