Recent

Author Topic: lazarus controlling compiler verbosity  (Read 1457 times)

Чебурашка

  • Hero Member
  • *****
  • Posts: 586
  • СЛАВА УКРАЇНІ! / Slava Ukraïni!
lazarus controlling compiler verbosity
« on: December 06, 2023, 11:15:22 am »
Hello
in /etc/fpc.cfg (debian does so) I have:

Code: Bash  [Select][+][-]
  1. # Verbosity
  2. -viwn
  3.  

once I open a project in lazarus I see

Code: Bash  [Select][+][-]
  1. -vewnhibq
  2.  

so it is added
  • e errors
  • h hints
  • b filenames
  • q message numbers

Errors is fine and hints I set in project options.

But where are b and q set? And is it possible to remove them?

And in general how is possible in lazarus to manually control the compiler verbosity in order to "override" the settings set at OS level? I mean discard completely any other setting and use the local one, not add or modify previously existing ones.
« Last Edit: December 06, 2023, 11:21:22 am by Чебурашка »
FPC 3.2.0/Lazarus 2.0.10+dfsg-4+b2 on Debian 11.5
FPC 3.2.2/Lazarus 2.2.0 on Windows 10 Pro 21H2

Bart

  • Hero Member
  • *****
  • Posts: 5465
    • Bart en Mariska's Webstek
Re: lazarus controlling compiler verbosity
« Reply #1 on: December 06, 2023, 11:33:03 am »
I think that Lazarus codetools and quickfixes need the b and q options.

Bart

Thaddy

  • Hero Member
  • *****
  • Posts: 16139
  • Censorship about opinions does not belong here.
Re: lazarus controlling compiler verbosity
« Reply #2 on: December 07, 2023, 08:21:16 am »
You can have very finely grained warning-hint-note control by using $push-$warn xxxx off - ;your code-  $pop, were xxxx is the warning or hint number. See the wiki. If you turn this off in the sourcecode those warnings will be ignored by the global options too.
If I smell bad code it usually is bad code and that includes my own code.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5750
  • Compiler Developer
Re: lazarus controlling compiler verbosity
« Reply #3 on: December 10, 2023, 09:51:38 pm »
I think that Lazarus codetools and quickfixes need the b and q options.

Correct. Otherwise you won't have correct mapping of the messages to files or potential quick fixes in the actions for example.

Чебурашка

  • Hero Member
  • *****
  • Posts: 586
  • СЛАВА УКРАЇНІ! / Slava Ukraïni!
Re: lazarus controlling compiler verbosity
« Reply #4 on: December 11, 2023, 08:39:16 am »
Thank you all, eventually I posted a more specific topic elsewhere and with the suggestions of Thaddy and TRon I came to a satisfactory solution.

https://forum.lazarus.freepascal.org/index.php/topic,65463.0.html
FPC 3.2.0/Lazarus 2.0.10+dfsg-4+b2 on Debian 11.5
FPC 3.2.2/Lazarus 2.2.0 on Windows 10 Pro 21H2

 

TinyPortal © 2005-2018