Content Pane gets out of sync

TenGor

Member³
Hy,

sometimes in the program window the Content Pane gets out of sync.
Which means, that i can't click no longer on a procedure to jumpt to it.
Test the Code:

Code:
IF 1 = 1 THEN
  SELECT 1
    INTO nTest
    FROM DUAL;
It's no longer possible to navigate.
If you delete the ";" then you can navigate :confused:

The same with other SQL (insert, update).
 
How about if you add 'END IF;'. I've seen this behaviour pretty often, and it always tells me that there is a flaw in the program or a code section which is not properly terminated.
 
If the PL/SQL code cannot be parsed, then the Code Contents pane will indeed get out of sync and certain features that rely on the PL/SQL analysis will be disabled.
 
@Marco van der Linden
I know that i had to add "End If" to get correct code! But if you already had incorrect code and navigate through a bookmark to an ohter position in your code you never find this mistake, except you compile the package...
There should be an Option "Check for errors" which just proofs the code and don't compile it into DB??

@Marco
Seems logical, but as i wrote if i had

Code:
IF 1 = 1 THEN
  SELECT 1
    INTO nTest
    FROM DUAL
(without ';') then i can navigate sometimes. So it is a little bit confusing to me.
 
Back
Top