Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Problems, hints and quick fixes

The Problems panel runs along the bottom of the workspace. It lists what is wrong, or could be better, in every file of the project, not only the open one.

Reading the panel

The header sums up the project: ❌ 3 errors, ⚠ 2 warnings, or ✓ No problems. Click the header to fold or unfold the panel; drag its top edge to resize it.

Video 2.2 · Problems & quick fixes, opening (0:04–0:34). Watch on PeerTube

Below, problems are grouped by file. Click a file name to fold its group. Each row shows:

❌ 14:12  unknown property `titel` in fact `hobbit`   [Replace with `title`]
          did you mean `title`?
PartMeaning
IconThe severity, see below.
line:colWhere the problem is. Click the row to open the file at that spot.
MessageWhat is wrong.
ButtonA quick fix, when there is one.
Second lineA hint on how to fix it, when the checker has one.

While your latest edit is being checked, the list is dimmed with ⟳ updating… and cannot be clicked, so you never apply a fix to a problem that is already gone.

Severities and filters

IconSeverityMeaningFilter
❌ErrorThe project does not compile, or compiles to something wrong.Errors
⚠️WarningCompiles, but is probably a mistake or breaks a convention.Warnings
💡 / ℹ️Hint / InfoStyle suggestions. They are listed here but not underlined in the editor.Hints

Untick a filter to hide that severity. The counts in the header always include everything.

Video 2.2 · Problems & quick fixes, chapter “Filter the panel” (1:14–1:29). Watch on PeerTube

The file tree also shows error and warning counts next to each file.

Quick fixes

A problem with a mechanical fix has a button on its row, labelled with what it will do. Click it to apply the edit. The same fix is offered in the editor, as a 💡 … — click to insert line above the block and in the tooltip of the underlined text (see The Dolfin editor).

Video 2.2 · Problems & quick fixes, chapter “Errors, warnings and hints” (0:33–1:15). Watch on PeerTube

A fix can change another file than the one with the problem. It is saved like any edit, and the problem disappears once the project is checked again.

Fix all next to a file name applies every quick fix listed for that file. Fix all in the panel header applies every quick fix listed for the whole project. Both follow the filters (Errors, Warnings, Hints, Validation): only what the panel shows is fixed. When two fixes touch the same text, only one is applied; the next check offers the other again. Fix all applies quick fixes only, not the full re-layout of radeau fmt.

If the server check fails, a red note next to the checkbox says why: the Validation run timed out, a mapping cannot run at all (Data validation failed: Mapping source not found: stops.csv), or a file fails to load. A Validation failure goes away on the next run or when you untick Validation. A mapping or load failure is reported whether Validation is ticked or not, until it is fixed. The MCP get_problems tool returns the same text as fact_error.

FixOffered for
Declare concept XA reference to a concept that does not exist. Adds concept X to the current file.
Declare concept X in fileThe same, when the name points to another file of the project (for example animals.Dog). Adds the declaration at the end of that file.
Create file and declare concept XThe same, when that file does not exist yet.
Replace with ‘…’ / Replace with qualified name ‘…’A misspelled type or property that is close to an existing one.
Rename to ‘…’A concept not in PascalCase or a property not in camelCase. Renames the declaration and its uses.
Wrap word in backticks to use it as a nameA keyword used where a name is expected, for example has date: date. Turns it into `date`. Not offered when no name could go there (e.g. concept Foo is).
Add any (field may be absent)A fact misses a field declared with no cardinality keyword, which means required. Adds any before the field’s type, in the file that declares it. Not offered for a field from an import, or when the field is not written name: Type with one space after the colon.
Remove trailing whitespaceSpaces at the end of a line.
Remove extra blank linesMore than two blank lines in a row.

What is checked

Besides syntax errors, which come with a hint when the parser can guess what you meant, the checker reports the following. For what the language allows, see the Dolfin language documentation.

Errors

MessageWhy
Unresolved type ‘X’ in … of ‘Y’A field, sub or range names a type that is not declared. When a close name exists, the message ends with Did you mean …? and a fix is offered.
concept X has circular inheritance (S003)X is, through sub, its own ancestor.
Duplicate property ‘p’ in concept ‘X’The concept declares has p twice.
unknown property p in …A query, rule or fact uses a property that does not exist. When a close name exists, the hint line says did you mean …? and a fix is offered.
Silent variable ‘?_x’ cannot appear in the return block of query ‘q’?_ variables mean “value not needed”; they cannot be returned.
Query ‘q’ composes undefined query ‘r’A query builds on a query that does not exist.
Query ‘q’ has a circular composition dependencyQueries that compose each other in a loop.
hr:X is not defined by import <iri>The prefix points into an import, but that import does not define X. Imports are not transitive: a name the importee itself imports is not reachable through it.
Ambiguous imported namespace ‘p’; use an IRI prefix insteadTwo imports map to the same dotted name. Write the prefix as prefix <namespace-iri> as p.
Alias ‘a’ targets ‘t’, which no import defines and the package does not declareThe alias target does not exist.
Alias ‘a’ clashes with a declaration of the same nameRename the alias or the declaration.
S040: rule ‘r’ … so it cannot be materialized: every query on a deployment would failA rule, a key (the key of ‘C’) or an equivalent to concept depends on itself, or concludes a key merge, a sub or a sub-property, through an aggregate (sum, min, max, average, count) or a negation (none, all), directly or through other rules. The message names them. Deploy refuses such a package. Drop the aggregate or negation from the cycle. The check runs on the server after each save and when the project opens, not while you type, and needs no Validation checkbox: it materializes the rules with the same reasoner as the deployment queries, which the in-browser checker does not have. It only sees the package’s schema, so a refusal that depends on the data (a key merging two facts only after an aggregate) shows at Deploy only.
S041: rex is a OverweightDog but fails with weight: > quantity(40 kg)A fact asserted to be an instance of a concept defined with equivalent to does not satisfy one of its with lines. It is underlined on that with line. Listed only while Validation is ticked, like S017 (see Validation). Fix the fact, or drop its asserted type.

Warnings

MessageWhy
Concept ‘x’ should be PascalCaseNaming convention. Fix: Rename to ‘X’.
Property ‘X’ should be camelCaseNaming convention. Fix: Rename to ‘x’.
Enum variant ‘x’ should be UPPER_CASE or PascalCaseNaming convention for the values of a one of: block: RED or Red, not red. No automatic fix, pick one style yourself.
Prefix ‘p’ is declared but never usedLeftover prefix line.
Variable ‘?x’ in rule ‘r’ appears only onceThe variable neither joins two match lines nor reaches then. Usually a typo. If it is on purpose, name it ?_x.
Variable ‘?x’ in query ‘q’ appears only onceUsually a typo. If it is on purpose, name it ?_x.
`=` / `!=` on a quantity is unreliable after unit normalisationTwo equal quantities in different units may not compare equal. Use >, <, >= or <=.
S050: row 2: empty value for required binding ?id / S051: iteration path ‘$.venues[]’ matched nothing*A mapping diagnostic (S051). Shown in the .dlf holding the mapping, on the binding’s map: line or the mapping from line, with an info entry S050: N row(s) skipped when rows were skipped. Checked on the server after each save and when a data file changes or is uploaded; needs no Validation checkbox. A mapping that cannot run at all (a missing data file) shows in the note instead.

Hints

MessageWhy
Trailing whitespace on line NFix: Remove trailing whitespace.
Too many consecutive blank linesFix: Remove extra blank lines.
Declarations should come after all prefix declarationsPut prefix lines at the top of the file.

When the project does not compile

The outputs keep the last version that compiled, dimmed, with a note such as Showing the last valid graph; the current source doesn’t parse yet. Open Problems to see what to fix. The Turtle download is disabled until the errors are fixed. See Compiled output.

The panel lists the compile error first, as Project does not compile: …, even when files also have errors. Those are often its consequences (an Unresolved type in another file), so fix the compile error first.