Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LANGUAGE] improved error productions for at #4663

Merged
merged 31 commits into from
Nov 21, 2023
Merged

[LANGUAGE] improved error productions for at #4663

merged 31 commits into from
Nov 21, 2023

Conversation

akseron
Copy link
Collaborator

@akseron akseron commented Oct 24, 2023

Changes in error production in level 4 lark file and check_var_usage in main hedy file to support better syntax error messages for the 'at' command.

Fixes #4780

@ghost
Copy link

ghost commented Oct 24, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@Felienne Felienne marked this pull request as draft October 24, 2023 09:07
akseron and others added 15 commits October 29, 2023 20:14
no code changes, only some thought process in notes at corresponding locations
the todo is met in case an error such as the following is made:

animals is dog, cat, kangaroo
print animals at indec

index is not an existing variable which leads to the else statement in check_var_usage
there seems to be alot of files changed on translations, I am not sure whether this is expected behavior as it seems to have changed translations besides my own.
exceptions.py Outdated Show resolved Hide resolved
@Felienne Felienne marked this pull request as ready for review November 21, 2023 09:11
@Felienne
Copy link
Member

Hi @akseron!

This can be merged if you update the PR description (the first message here) to describe briefly what you did and why (and whether there is an open issue related to this PR)

hedy.py Outdated Show resolved Hide resolved
Copy link
Member

@Felienne Felienne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the original comment documenting this issue from over 2 years ago:

image

With that, we are good to go!!

@Felienne
Copy link
Member

And congrats on getting your first contribution accepted @akseron! It was quite a ride, but you did it!!

Copy link
Contributor

mergify bot commented Nov 21, 2023

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit e8585a8 into main Nov 21, 2023
11 checks passed
@mergify mergify bot deleted the error-productions branch November 21, 2023 17:04
@akseron akseron restored the error-productions branch March 3, 2024 23:21
@akseron akseron deleted the error-productions branch May 29, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Misspelling of at does not give a good error message
2 participants