Skip to content
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

Improve error message on unbound args #103

Merged
merged 4 commits into from
May 31, 2023

Conversation

jakobnissen
Copy link
Contributor

@jakobnissen jakobnissen commented Mar 30, 2023

Explain how seemingly well define typevars can result in unbound args in the presence of Vararg, and also display the offending methods in a more readable way.
Closes #87

Explain how seemingly well define typevars can result in unbound args in the
presence of Vararg, and also display the offending methods in a more readable
way.
See JuliaTesting#87
@Roger-luo
Copy link
Contributor

the PR looks good to me, but I'm not sure who has merge rights now, given @tkf seems not active on GitHub anymore...

@fingolfin
Copy link
Member

@DilumAluthge made a release last week, so at the very least he seems to have commit rights. But I am not sure if he also is interested in maintaining the package overall (or if anyone is).

src/unbound_args.jl Outdated Show resolved Hide resolved
src/unbound_args.jl Outdated Show resolved Hide resolved
append!(methods, detect_unbound_args(x))
# This was fixed some time between 1.4.2 and 1.6.7
# https://github.com/JuliaLang/julia/pull/31972
@static if VERSION < v"1.6.7"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so I understand: this part of the patch is unrelated to the actual subject of the PR, right? It just disables an old workaround for newer Julia versions, yes?

src/unbound_args.jl Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 31, 2023

Codecov Report

Merging #103 (b129fcd) into master (76443b2) will increase coverage by 0.25%.
The diff coverage is 90.47%.

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   75.00%   75.25%   +0.25%     
==========================================
  Files          11       11              
  Lines         676      691      +15     
==========================================
+ Hits          507      520      +13     
- Misses        169      171       +2     
Flag Coverage Δ
unittests 75.25% <90.47%> (+0.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/unbound_args.jl 88.23% <87.50%> (-11.77%) ⬇️
src/project_toml_formatting.jl 85.71% <100.00%> (+0.86%) ⬆️
src/stale_deps.jl 97.43% <100.00%> (+0.21%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@fingolfin fingolfin merged commit 8ba7515 into JuliaTesting:master May 31, 2023
@fingolfin
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test unbound arguments false positive in presence of vararg and typeassert
3 participants