Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-02

"Test" button in project inspector

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Werner Pamler

In the Project inspector window, there is a Test button. What is it good for? Its function is not documented in the help file accessible by the Help button at the left. What's confusing is that executing "Test" reports this error in the Message window for all of my tested projects, even for an empty one:

Test: Compiling an empty file: Exit code 1, Errors: 1 Fatal: Syntax error, "BEGIN" expected but "end of file" found

Reply by email

Lukasz Sokol
to Werner Pamler
Werner Pamler wrote 9 lines
In the Project inspector window, there is a Test button. What is it good for? Its function is not documented in the help file accessible by the Help button at the left. What's confusing is that executing "Test" reports this error in the Message window for all of my tested projects, even for an empty one: Test: Compiling an empty file: Exit code 1, Errors: 1 Fatal: Syntax error, "BEGIN" expected but "end of file" found

AFAIK it feeds currently set compiler options to the compiler to see if it can find anything wrong with them;
I understand it is supposed to help finding inconsistencies with options, paths, etc.

This button or its output used to be accompanied with some explanation... like 'note, an error compiling an empty file is expected' or so.

-L.

Reply by email

Bo Berglund
to Werner Pamler: In the Project inspector window, there is a Test button. What is it good for? Its…
Werner Pamler wrote 8 lines
In the Project inspector window, there is a Test button. What is it good for? Its function is not documented in the help file accessible by the Help button at the left. What's confusing is that executing "Test" reports this error in the Message window for all of my tested projects, even for an empty one: Test: Compiling an empty file: Exit code 1, Errors: 1 Fatal: Syntax error, "BEGIN" expected but "end of file" found

Similar question:
In Delphi there is a Project menu function "syntax check", which checks the syntax of the project without actually compiling it. Is there a corresponding "Test" function available in Lazarus? In Delphi I use this a lot!

Bo Berglund Developer in Sweden

Reply by email

Vojtěch Čihák
to Bo Berglund

Main menu: Source -> Quick Syntax Check
?
Of course, you can assing some handy shortcut to it. ?
V.
______________________________________________________________

Show quoted text 5 lines
Od: Bo Berglund Komu: Datum: 08.02.2016 16:05 P?edm?t: Re: [Lazarus] "Test" button in project inspector

On Fri, 5 Feb 2016 14:52:23 +0100, Werner Pamler

Similar question:
In Delphi there is a Project menu function "syntax check", which checks the syntax of the project without actually compiling it. Is there a corresponding "Test" function available in Lazarus? In Delphi I use this a lot!

Bo Berglund Developer in Sweden --

Reply by email