Identifying problems in your code

In this section, you will see different indicators for identifying problems in your code.

Build problems are displayed in the Problems view and annotated in the vertical ruler next to your source code.

  1. Open as_environment_manager.magik in the editor from Product Explorer view.
  2. Add a syntax error by deleting _endloop line in sw_variables method in the source code.

    Editor with missing _endloop line

  3. Click Save button. The project is rebuilt and the problem is indicated in several ways:

    Problem marker in Product Explorer, editor and Tasks view

  4. You can hover over the marked word in the editor to view a description of the problem. You can also hover over the problem markers in the vertical or overview rulers.

    Problem marker hover

  5. In Problems view, right-click a problem in the list. Select Go To. The file will be opened in the editor at the location of the problem.

    Problems view

  6. Correct the problem in the editor by adding _endloop line. Click Save button. The project is rebuilt and the problem indicators disappear.

  7. You can configure the way problems are indicated on the General > Editors > Text Editors > Annotations preference page.
Related concepts

Magik editor
Magik views

Related reference

Magik editor preferences
Quick Fix