Enhancement Request: expose unused variable checker

ScottMattes

Member³
When I compile a code unit one of the things reported is if a variable is defined but not used.

Sometimes I pull code out of Oracle Forms and Beautify it in PLSD.

I think that it would be grand if I could click a menu item or toolbar button and have the unused variable checker run.

For this particular scenario, it would be nice if the unused variable checker ignored variables that started with ':'.

Thank you.
 
I think that it would be grand if I could click a menu item or toolbar button and have the unused variable checker run.
You can add the "Tools" > "Show Compiler Hints" function to the toolbar.

For this particular scenario, it would be nice if the unused variable checker ignored variables that started with ':'.
I have added this to the list of enhancement requests.
 
Last edited:
Marco Kalter said:
I think that it would be grand if I could click a menu item or toolbar button and have the unused variable checker run.
You can add the "Tools" > "Show Compiler Hints" function to the toolbar.

For this particular scenario, it would be nice if the unused variable checker ignored variables that started with ':'.
I have added this to the list of enhancement requests.

Marco,
Not sure what this does. I went to Tools / Prefs / User Interface / Key Config and set Tools / Show Compiler Hints to ctl-f1. I opened a new SQL Window, copied a Oracle Forms trigger into the SQL Window. Pressing ctl-f1 does nothing.

I suspect that Show Compiler Hints only works after the code has been compiled - is that correct? If so, Show Compiler Hints won't cover the need - parsing the code to find defined but unreferenced variables.
 
Show Compiler Hints will show the unused variables of the PL/SQL code in the current editor, regardless whether it is compiled or not.
 
I'm sorry, yesterday I must have been in a SQL Window instead of a Program Window and since I only set a keyboard activator I didn't see that the command wasn't available there. It works as you say in a Program Window!

Thank you.
 
Back
Top