Print Thread
Compile gives errors but does not indicate them
#44011 05/30/12 05:44 PM
Joined: May 2012
Posts: 6
J
Member
OP Offline
Member
J
Joined: May 2012
Posts: 6
Hi,
I am using PL/SQL Developer v7.0.3.1123 on Oracle 10g.
I've hit a problem I don't know how to get around:
I am compiling quite a large package, and it is failing to compile with the normal message "Compiled with errors".
However, the error(s) are not indicated by the usual yellow highlighted line. Consequently with about 5000 lines of PL/SQL code to work through, I am having trouble finding this error - whatever it is!
If I put a really dumb error in the code such as a random text string outside of a procedure then it finds and displays the error as I expect with a 4003 PLS-00103 "Encountered the sysmbol... when expecting". Any ideas? Thanks, John.

Re: Compile gives errors but does not indicate them
John Duffy #44014 05/30/12 06:59 PM
Joined: May 2012
Posts: 1
A
Member
Offline
Member
A
Joined: May 2012
Posts: 1
Hi John,

Sorry I've no PL/SQL Developer solution, but a work around might be to save the code to a file and then run the file in SQL*Plus. I've found that SQL*Plus can often supplement the error reporting from PL/SQL Developer or give another perspective and usually the line number of the errro. Hope it works for you.

Re: Compile gives errors but does not indicate them
Al Davis #44015 05/30/12 08:00 PM
Joined: May 2012
Posts: 6
J
Member
OP Offline
Member
J
Joined: May 2012
Posts: 6
Hi Al,
Thanks for this idea. I did think about something similar - I pushed the whole lot though the PL/SQL Developer command window but without it telling me anything new.
I'll try your idea in the morning.
Best wishes

John

Re: Compile gives errors but does not indicate them
John Duffy #44019 05/30/12 11:04 PM
Joined: Apr 2003
Posts: 517
Portland, OR, USA
M
Member
Offline
Member
M
Joined: Apr 2003
Posts: 517
Portland, OR, USA
Just a thought...One thing that might help is to make sure the "Add debug information while compiling" preference is turned off in the Debugger preferences. Also, make sure the "Safe Compilation" preference is turned off in the Program Window preference.

Re: Compile gives errors but does not indicate them
mike #44020 05/31/12 07:07 AM
Joined: May 2012
Posts: 6
J
Member
OP Offline
Member
J
Joined: May 2012
Posts: 6
Hi,

Thanks Mike, for your thoughts. Unfortunately no change!

I have since pushed the file through SQLPlus and basically get the same result. The errors I can see with "show errors" are just the same hints that PL/SQL Developer gives me. My only recourse at present is to cut the source into "halves" and try and isolate the error that way.

I see a fairly tedious day ahead so if anyone else can weigh in then please do!

Regards

John

Re: Compile gives errors but does not indicate them
John Duffy #44021 05/31/12 07:21 AM
Joined: May 2012
Posts: 6
J
Member
OP Offline
Member
J
Joined: May 2012
Posts: 6
Just to let you know that this problem has (think goodness) mysteriously gone away - at least for the present!
All I was doing was tweaking code to reduce the number of compiler hints and warnings in case there was some kind of limit or something was masking an error.. Desperate I know!
Interesting...

Regards
John

Re: Compile gives errors but does not indicate them
John Duffy #44030 05/31/12 03:00 PM
Joined: Mar 2007
Posts: 210
Rostock, Germany
Member
Offline
Member
Joined: Mar 2007
Posts: 210
Rostock, Germany
Hi,

look here please.

https://forums.allroundautomations....=compiler+hint&Search=true#Post39876

"There is a sql script in the "Program Files\PLSQL Developer" folder alled "AfterConnect.sql" - this contains the following line:

ALTER SESSION SET PLSQL_WARNINGS='ENABLE:ALL';

Changing the ENABLE to a DISABLE gets rid of all the duff warnings and allows the 'real' cause of the compilation error to be displayed."


There is no shortcut for experience(d).

PL/SQL Developer Version 10+11+12, Query Reporter Version 3.2.0.300
Oracle 11g,12c
Windows Server 2003/2008
Windows 10 Professionel 64 bit




Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.037s Queries: 13 (0.011s) Memory: 2.5251 MB (Peak: 3.0418 MB) Data Comp: Off Server Time: 2024-05-17 14:33:27 UTC
Valid HTML 5 and Valid CSS