PDA

View Full Version : Project.war (war = warnings)



Jose
12-Aug-2022, 03:55 AM
Hello,

When you compile with errors you get a project.err at the same location that project.prn.

I think it would be a great idea have the same tecnique for warnings. In small projects I can copy & paste to the clipboard the content of the output window, but, in large projects, it is so big that it gets truncated.

I know that the warnings are in project.prn, but the good thing of the output window is the section "compiler warning summary" wich the prn doesn't have.

Regards.

Michael Mullan
12-Aug-2022, 12:42 PM
Use the Filter function in notepad++ to filter the .prn to generate your own summary?

/MM

Dennis Piccioni
12-Aug-2022, 01:59 PM
+1 Michael!

Jose
16-Aug-2022, 02:00 AM
Hello Michael,

Not sure what do you mean with "Filter function".

Do you mean write a regexp and do a search & replace to delete all lines that doesn't start with "WARNING:"?

Regards.

Michael Mullan
16-Aug-2022, 06:29 AM
well you can do in notepad++

Edit--> Line Operations --> Sort lines lexicographically Ascending

then scroll down to the very bottom (Ctrl-End, Home) to the warnings,

WARNING: 4534 Obsolete Global Function Obsolete use of ToOEM, use
WARNING: 4534 Obsolete Global Function Obsolete use of ToOEM, use
WARNING: 4534 Obsolete Global Function Obsolete use of ToOEM, use
WARNING: 4534 Obsolete Global Function Obsolete use of ToOEM, use
WARNING: 4543 Redefining function return type for GET_COMCATEGORY
WARNING: 4543 Redefining function return type for GET_COMMAXSIZE
WARNING: 4543 Redefining function return type for GET_COMSIZE wit
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_COMTRANSPAR
WARNING: 4543 Redefining function return type for GET_HITTEST wit
WARNING: 4544 Function GET_PSITEM with ambiguous return type used


OR

Search for WARNING:
click the FIND ALL button.
See the Search Results.

In the second trick, you can still double click on the line and jump to that part of the PRN, in the first trick, you've trashed the PRN.

Jose
16-Aug-2022, 06:38 AM
Hello Michael,

Thanks for the tip, it suites my needs. In my case I have go for the first trick.

Regards.

Garret Mott
16-Aug-2022, 07:20 AM
Another option is to throw together a little DF program that loops through the prn & writes out just the warning lines to another file. I use something similar to this to create DEF files that can be compared (date, # of records etc. removed - code is somewhere here on the forum) and that little program will run through 100+ DEF files in a few seconds.