IDE Window: Messages

From Lazarus wiki
Revision as of 14:30, 25 November 2015 by Mattias2 (talk | contribs) (→‎Popup menu)
Jump to navigationJump to search

Deutsch (de) English (en) español (es)

The Messages window contains the compiler messages. It can also contain codetools messages, or linker errors, etc..

IDEMessagesWindowFind1.png

Overview

When compiling the Messages window is shown automatically. You can see messages appear briefly and vanishing. The IDE classifies the compiler messages. Messages like "compiling unit1.pas" are treated as "progress" lines. These are shown, but hidden as soon as the next messages is shown, so that only the important messages (e.g. hints, notes, warning, errors) are shown. You can choose what lines to show, see filtering below.

Click on a message to jump to the position in the source editor. You can set whether a double click jumps or a single click in Tools -> Options -> Messages Window -> Double click on messages jumps.

When the IDE compiles a project it also compiles changed packages. In this case you see several blocks of messages, each having a header. The header is yellow while compiling, it turns green when compilation was successful, and turns red when there was an error. You can change the colors in the options.

Popup menu

Find

Shows a search function at the bottom of the Messages window. Click on the left button to hide the search. Edit the text to highlight all places containing the text and to jump to the first message (starting from the selected). Click on the arrows to jump to the next or previous place.

Quick fixes

Below Find there can be arbitrary quick fixes. These are added depending on the current message and what IDE add-ons you have installed. See Quick Fixes.

About

Shows a dialog containing information what task has created this output. For example a message from compiling a package gives the reason why the IDE needed to compile the package, the compiler path and parameters.

Clear

Remove all messages.

Copy selected messages to clipboard

Copy all selected lines to the clipboard.

Copy all messages to clipboard

Copy all shown messages to the clipboard.

Copy all and hidden messages to clipboard

Copy all messages to the clipboard including those not shown.

Help

Show Help for the current message.

Save all messages to file

Opens a save dialog to choose a filename and save all messages including the hidden messages.

Options

MessagesWindowOptions1.png

MessagesWindowOptionMsgColors.png