lambdaisland / lambdaisland/kaocha
Clearer error message when binding a non-existent variable
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 860
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
I ran into this today when I removed a variable that was in the :bindings configuration. All I got was a null pointer exception, and no stacktrace. It'd be great if there was a more explicit message saying we were trying to bind a variable that didn't exist.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the code that processes the :bindings configuration and reproduce the failure after removing a referenced variable. Trace where the null pointer exception is produced; done means the missing variable is reported with an explicit error message instead.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100