-
Notifications
You must be signed in to change notification settings - Fork 456
Feat/good error message extensions non ascii #12844
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
Merged
Alizter
merged 14 commits into
ocaml:main
from
benodiwal:feat/good-error-message-extensions-non-ascii
Dec 5, 2025
+134
−44
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
1c632b1
feat: added logic for handling non ascii cases for invalid extensions…
benodiwal 2ccf121
fix: valid format logic
benodiwal 025b55a
fix: refactored code
benodiwal 2c6da6c
tests: added tests for multiple extensions cases
benodiwal 8376b40
chore: CR someday
benodiwal 2b635f1
fix: reverted changes, kept the test cases
benodiwal 718357c
fix: improve error messages for invalid version formats with non-ASCI…
benodiwal 7e06d55
feat: implemented lexer level approach for non ascii characters
benodiwal b6487ce
fix: refactor
benodiwal 9a0b127
tests: promoted non-ascii-characters.t to new logic
benodiwal 0864ca5
fix: else claude message
benodiwal cfae018
chore: added entry for CHANGES.md
benodiwal 1a7bdba
chore: updated CR someday
benodiwal 344ccb4
fix: ascii start
benodiwal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| - Improve error messages for invalid version formats containing non-ASCII | ||
| characters. Previously, non-ASCII characters in version strings (e.g., `(lang | ||
| dune è)` or `(using menhir π3.14)`) would fail with a generic "Invalid file" | ||
| error. Now they display a clear message: "Invalid atom: contains non-ASCII | ||
| character(s). Atoms must only contain ASCII characters." The fix is | ||
| implemented at the lexer level, providing consistent error handling across all | ||
| s-expression parsing. (#12844, fixes #12836, @benodiwal) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've lost the hint here which is fine since this is a different kind of error. I think the hint is still useful in the ASCII case and looking above to the
Alicase we don't provide one. Could you add another CR about adding that hint to the validation step?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Alizter, I am afk for a while, will do it in some time.