Use this sample code to reproduce the issue.
create or replace procedure P_SAMPLE
authid current_user
is
v_variable$ varchar2(125 char);
begin
v_variable$ := 'some value';
end;
/*
(1) MAKE SURE YOU INCLUDE SOME COMMENT BLOCK LIKE THIS.
SCRIPT\_OUTPUT:
Procedure P\_SAMPLE compiled
Notice that when the compilation starts, source lines are selected in the worksheet when the Compile icon is clicked.
The comment block DOES NOT GET SELECTED.
Immediately after the compilation is done, the comment block is deleted - GONE.
Furthermore, close worksheet. Reopen proc from the Schema tree and verify.
COMMENT SECTION IS NOT PRESENT!
IMO, commentary might include valuable documentation and should not be removed by the compilation process.
*/