-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
In a blech file, that contains errors, the IDE plugin is supposed to show only one error. Unfortunately, the plugin shows the last error instead of the first error.
This makes correcting errors difficult, because you cannot see what is the first error.
To Reproduce
function f() returns bool
var x: bool
if (X) then return true end
if (X) return false end
end
The error is the undeclared identifier X which should be written x.
The compiler outputs the errors correctly one after another.
fjg@Mac-mini src % blechc issue_ide.blc
error: the identifier 'X' has no declaration
--> issue_ide.blc:4:9 [name resolution]
4 | if (X) then return true end
| ^ no declaration found
error: the identifier 'X' has no declaration
--> issue_ide.blc:5:9 [name resolution]
5 | if (X) then return false end
| ^ no declaration found
The plugin indicates the last error.
Expected behaviour
The plugin should indicate the first error.
Context
Latest compiler and latest plugin is used.
Metadata
Metadata
Assignees
Labels
No labels
