Procedure-Tree incomplete when using conditional compiling in PackageEditor

FrankB

Member²
Hello,

we use conditional compiling for hiding unneeded procedures.
This works well with Oracle, but PL/SQL-Dev. does not show such procedures any more regardless if the condition is true or false. With this error the code could not be really managed cause some sections will disappear and only be found in the right pane of the complete text.

For example (here in Package-Specification):
CREATE OR REPLACE PACKAGE MURKS AS

$IF FEATURES.feature1 $THEN
PROCEDURE BlaBlub();
$END

END MURKS;

If you remove the $IF- and $END-lines or comment them out, the procedure will reappear again in procedure brower list or package editor.

A simple $ in the text will hide the following procedure definition.

It seems that the precompiler directives are not correctly parsed by the editor.

Any hints appreciated.

Regards,
Frank
 
Any idea when this next release will be available?

One more hint:
If you add a ';' after each $END then the procedures are visible again, but could not be compiled. So this must be a relative simple parser failure.

Regards,
Frank
 
as a little Workaround do this:

Avoid any IF, END IF or BEGIN directly after a $IF or $END.
Insert a NULL; between and it works.

AND, OR, WHEN doesn't matter

Regards,
Frank

@Marco: any definite plans for a backport for 71 of this parsing problem?
 
Back
Top