JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl

stop lying about MethodErrors

Open
#200 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
50
Forks
18
PR merge metrics
No merged PRs in 30d

Description

I noticed in JuliaDiff/ChainRules.jl#463 that the MethodError thrown here is wrong and doesn't include the first arg. As a more general comment, I always find it quite confusing when packages throw "fake" MethodErrors, since it can easily lead you down the wrong path. Could we just use a custom error message instead?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/testers.jl line 126, the location linked in the issue, and inspect how the MethodError is constructed and why its first argument is missing. Replace the misleading fake MethodError with a custom error message, ensuring the resulting message no longer suggests the wrong failure path.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.