JuliaData / JuliaData/DataFramesMeta.jl
`@with` macro clashes with `Base.@with` in Julia 1.11+
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 496
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
Julia 1.11 is the first version to export Base.@with:
help?> @with
@with vars... expr
Macro version of with(f, vars...) but with expr instead of f function. This is similar to using with with a do block, but avoids creating a closure.
This causes a name conflict with DataFramesMeta.@with (i.e., error when the latter used in a module). MWE:
julia> module Foo
using DataFrames, DataFramesMeta
const df = DataFrame(a = [1, 2, 3])
print() = @with df println.(:a)
end
WARNING: both DataFramesMeta and Base export "@with"; uses of it in module Foo must be qualified
ERROR: LoadError: UndefVarError: `@with` not defined
in expression starting at REPL[14]:6
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 running the supplied MWE on Julia 1.11+ and inspect how DataFramesMeta.@with is exported and resolved alongside Base.@with. Done means the example module loads and @with evaluates without an unresolved name while preserving DataFramesMeta behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100