Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

IDE Window: Messages

Deutsch · English · Español

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

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.

Filter all messages of type

This menu item only appears if the selected message has a type (e.g. a compiler note has, a header does not). Each compiler message has an ID, which can be hidden by passing -vmID to the compiler. Clicking on this option adds the flag to the compiler options. This requires a recompile to take effect.

Filter non urgent messages

Set the level when messages are shown. Levels are Warnings, Notes, Hints, Debug. You cannot hide errors. You can choose to not filter by urgency level by selecting "Filter none, do not filter by urgency". Default is to show all Hints and above.

Filter hints without source position

When enabled hides the messages without source position and urgency level below error. Errors and other important messages are always shown. Default is enabled.

Switch filter settings

This sub menu contains an Add item and your list of filter sets. You can store your current filter set by clicking on "Add filter...". For example you might want to create one set for showing all and one for showing only the important messages.

Copy

Save

Help

Show Help for the current message. For FPC messages it usually shows the note of the compiler errore.msg file. This can be overriden for each message with Edit Help.

Edit Help

Shows a dialog to edit the special help for FPC messages.

Clear

Wipes out the Messages window clean.

Options

Options

Colors

Miscellaneous

Notes and Tips


From the Free Pascal wiki, page "IDE Window: Messages", as it stood on 2024-03-08 after a change by Mattias2, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .