Recent

Author Topic: IDE compiler options - show all error messages in a single pass?  (Read 3726 times)

dculp

  • Full Member
  • ***
  • Posts: 151
When compiling from the IDE, can the compiler be set to show all error messages in a single pass? Otherwise, I have to recompile again and again as each compiler error is resolved.

I have set "Project\Project options\Verbosity\Stop after number of errors" to 10 (also 100) but the compiler always stops after the first error.

Lazarus 1.6, FPC 3.0.0

Thanks,
Don C.

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: IDE compiler options - show all error messages in a single pass?
« Reply #1 on: December 22, 2016, 02:22:28 am »
When compiling from the IDE, can the compiler be set to show all error messages in a single pass?

The IDE will only jump to the first error that the compiler encounters, but the code editor should show all errors that are listed in the Messages panel. Look for the little exclamation marker on the left of the code editor window. When the mouse is over one of these, you'll see the error message pop up. You shouldn't have to make any changes to the project default settings to get this behavior.

Note that once all compile errors have been resolved, the code editor will also show any hints, warnings, etc. Look for the little rectangles at the left. Not sure why this is an either/or with Lazarus - it should show all errors and hints, etc. together. Maybe a bug in the IDE.


dculp

  • Full Member
  • ***
  • Posts: 151
Re: IDE compiler options - show all error messages in a single pass?
« Reply #2 on: December 22, 2016, 02:43:37 am »
The compiler & messages stop at the first unit where errors are found. It doesn't show any errors in any other units. (I deliberately introduced an error in another unit to verify -- entering 'zzz' just after the interface statement.)

« Last Edit: December 22, 2016, 02:51:17 am by dculp »

ASerge

  • Hero Member
  • *****
  • Posts: 2494
Re: IDE compiler options - show all error messages in a single pass?
« Reply #3 on: December 22, 2016, 03:02:07 pm »
The compiler & messages stop at the first unit where errors are found. It doesn't show any errors in any other units. (I deliberately introduced an error in another unit to verify -- entering 'zzz' just after the interface statement.)
Studies show that errors are displayed only for one module, regardless of the value of Verbosity. It seems that the depth depends on the severity of the errors.
Given the high speed of compilation that shouldn't cause problems. I know people who have used compile instead of searching, because it seemed faster.
Lazarus 1.6.2, FPC 3.0.0, Win7, x64.

creaothceann

  • Sr. Member
  • ****
  • Posts: 361
Re: IDE compiler options - show all error messages in a single pass?
« Reply #4 on: December 22, 2016, 09:01:31 pm »
I always recompile after changing/adding some functionality. (I've set Lazarus to stop after 1 error and to use Alt+F9 for "Quick Compile".)

 

TinyPortal © 2005-2018