Closed magicant closed 2 months ago
The changes primarily involve improving error handling and message clarity across multiple modules of the yash
project. Key updates include expanding ErrorCause
and Error
structures for more detailed error messages, refining error handling for unset variables and parameters, and updating CHANGELOG
and README
files to reflect these changes. Some modifications were also made to handle errors related to built-in commands and parameter expansion more effectively.
File(s) | Change Summary |
---|---|
check-release.sh |
Modified to check for the release date in multiple CHANGELOG files instead of just one. |
yash-cli/CHANGELOG-bin.md , yash-cli/CHANGELOG-lib.md |
Updated changelogs to document changes specific to the shell binary and the library crate. |
yash-cli/README.md |
Updated links to point to separate changelog files for the shell binary and the library crate. |
yash-builtin/src/typeset.rs |
Added a new field vacancy to the AssignReadOnlyError trait implementation. |
yash-semantics/CHANGELOG.md |
Documented extensions to error types and methods for better error messages. |
yash-semantics/src/expansion.rs |
Modified ErrorCause enum to include the parameter name in error messages. Deprecated related_location method. |
yash-semantics/src/expansion/initial/arith.rs |
Added name field to UnsetVariable struct and adjusted related error handling. Updated tests accordingly. |
yash-semantics/src/expansion/initial/param.rs |
Refined error cause creation to capture parameter names. Updated tests to reflect these changes. |
yash-semantics/src/expansion/initial/param/switch.rs |
Enhanced error handling logic and assignment functionality by adding name and vacancy fields. |
yash-semantics/src/assign.rs |
Added vacancy field to perform_assignment function and included related assertions in tests. |
yash-semantics/src/command/compound_command/for_loop.rs |
Added vacancy field in the execute function for improved error handling. |
In the code where errors bloom, We’ve added fields to clear the gloom. Names and messages now make sense, No more confusion or pretense. Bugs are squashed, and logs are neat, With these changes, we’ll never miss a beat! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai summary
Summary by CodeRabbit
New Features
yash-cli
shell binary updated to version0.1.0-beta.2
with improved prompt display and error messaging.yash-semantics
module for more informative messages.Documentation
yash-cli
documentation to clarify changes for binary and library crate.Bug Fixes
yash-cli
built-ins likebreak
,continue
,read
,source
, andset
.Chores
CHANGELOG
files.