Closed jacobbednarz closed 6 days ago
/bounty $20
/attempt #423
with your implementation plan/claim #423
in the PR body to claim the bountyThank you for contributing to getgrit/gritql!
Add a bounty β’ Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
π’ @asr2003 | Aug 3, 2024, 6:27:27 AM | WIP |
π’ @Alex-ley-scrub | Oct 23, 2024, 10:27:29 PM | #558 |
/attempt #423
@morgante Will add error handling in analyse.rs
file to handle the issue of missing file references and to enhance the error handling within the walk_call_tree
and find_child_tree_definition
functions
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@asr2003 | 2 bounties from 2 projects | JavaScript, Go, HTML & more |
Cancel attempt |
Thanks @asr2003, please be sure to include an integration test in https://github.com/getgrit/gritql/tree/main/crates/cli_bin/tests
@morgante I have seen two related files of it. crates\cli\src\commands\patterns.rs crates\core\src\analysis.rs
Do I make changes to both files or patterns.rs is fine?
You need to solve the issue. I'm not going to handhold you through every detail.
my first stab at it: https://github.com/getgrit/gritql/pull/479
/attempt #423
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@Alex-ley-scrub | 1 grit bounty | Rust |
Cancel attempt |
π‘ @Alex-ley-scrub submitted a pull request that claims the bounty. You can visit your bounty board to reward.
ππ @Alex-ley-scrub has been awarded $20! ππ
Earlier today, I was updating some patterns and when I went to run
grit patterns test
hit the following.I did all the usual things thinking this was something I broke in my environment (somehow lost grit) however, that all looked good. After a while, I busted out strace and it turned out this came from grit trying to look up a file in the pattern.
Yep, I did a stupid and removed a trailing letter of the file extension.
To make this easier to debug for others, perhaps wrapping this sort of error up in a nicer handler would be useful? Something like this would be helpful: