Bug? "Find referencies" feature does not check CallSub

peacemaker

Expert
Licensed User
Longtime User
Seems, this is actual for any IDEs.
 

stevel05

Expert
Licensed User
Longtime User
It seems to for me:

1605186631954.png
 

peacemaker

Expert
Licensed User
Longtime User
1605186807614.png

Try "Find references" when placed mouse over a function name. Not search.
 

stevel05

Expert
Licensed User
Longtime User
Sorry, I was looking in the wrong place. You are right. But then that's a string and not an actual reference. I normally use the quick search.
 

peacemaker

Expert
Licensed User
Longtime User
Yes, quick search is OK, but if "Find references" feature was released - it should work fully OK, else you cannot debug fully correctly.
It's just MHO, not a requirement...
 

Sandman

Expert
Licensed User
Longtime User
it should work fully OK
That would be nice, but I can't see how it's even remotely possible. Consider that Callsub can call using variables, not only static strings in the call, and all of a sudden it's a surprisingly complex problem to find those references.
 

peacemaker

Expert
Licensed User
Longtime User
I can't see how it's even remotely possible

I guess, that IDE is anyway the source code parser. So CallSub lines can be "easily" parsed, in addition, when "Find references" is clicked
 

Sandman

Expert
Licensed User
Longtime User
The only realistic improvement I can see is when the callsub uses a static string, or when it's using a variable that is set using known data in the same sub. Anything beyond that and I imagine it's quickly getting insanely complex (and impossible).
 
Top