Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private static String mismatch(final Parser parser, final String msg) {
final String detailed;
if (names[EoParser.RULE_program].equals(rule)) {
detailed =
"We expected the program to end here but encountered something unexpected";
"Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct";
} else if (names[EoParser.RULE_objects].equals(rule)) {
detailed =
"We expected a list of objects here but encountered something unexpected";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ message: |-
[2:4] error: 'Invalid bound object declaration'
y:^
^
[2:-1] error: 'We expected the program to end here but encountered something unexpected'
[2:-1] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
y:^
^^^^^
input: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ message: |-
[5:12] error: 'Invalid bound object declaration'
sprintwf

[3:-1] error: 'We expected the program to end here but encountered something unexpected'
[3:-1] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
stdout > @
^^^^^^^^^^^^
input: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
line: 4
message: |+
[4:0] error: 'We expected the program to end here but encountered something unexpected'
[4:0] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'

input: |
# No comments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
line: 3
message: |-
[3:-1] error: 'We expected the program to end here but encountered something unexpected'
[3:-1] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
# No comments.
^^^^^^^^^^^^^^^^
input: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
line: 2
message: |-
[2:-1] error: 'We expected the program to end here but encountered something unexpected'
[2:-1] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
(1.add 1) > y
^^^^^^^^^^^^^^^
input: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
# SPDX-License-Identifier: MIT
---
line: 2
# @todo #3706:30min Unreadable error message if program declaration is invalid.
# Improve error message for the case when a program declaration is invalid.
# The error message should be more informative and should point to the exact
# place in the input where the error occurred. Moreover xml should be clear
# what to do to fix the error. 'simple-application-named.yaml' has the same issue.
message: |-
[2:-1] error: 'We expected the program to end here but encountered something unexpected'
[2:-1] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
(1.add 1)
^^^^^^^^^^^
input: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ message: |-
[5:2] error: 'Invalid bound object declaration'
*
^
[4:-1] error: 'We expected the program to end here but encountered something unexpected'
[4:-1] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
seq > @
^^^^^^^^^
input: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
line: 2
message: |-
[2:0] error: 'We expected the program to end here but encountered something unexpected'
[2:0] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
.z
^
input: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
line: 2
message: |-
[2:0] error: 'We expected the program to end here but encountered something unexpected'
[2:0] error: 'Expected a valid program definition (one or more meta declarations followed by an object list), but encountered unexpected construct'
.z
^
input: |
Expand Down