Revise.jl icon indicating copy to clipboard operation
Revise.jl copied to clipboard

Failed to track in-struct anonymous function

Open Rratic opened this issue 2 years ago • 1 comments

I want to fix a package, and there's a piece of code like this:

# Rule is a struct with field fn::Function
inline_rule(rule::TableRule) = Rule(0, "|") do parser, block
    println("flag")
    ...
end

I changed the println content, but Revise.jl doesn't seem to work. (it works pretty well for other changes, I tried retry but still got no result) Other features show that Revise.jl probably just thought inline_rule as static.

Rratic avatar Dec 10 '22 09:12 Rratic

Thanks. This snippet probably isn't enough to develop a test case. If this issue hasn't been fixed on recent versions of Revise, I'd appreciate a runnable, self-contained demo.

timholy avatar Jan 04 '24 20:01 timholy