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

Failed to track in-struct anonymous function #716

Open
Rratic opened this issue Dec 10, 2022 · 1 comment
Open

Failed to track in-struct anonymous function #716

Rratic opened this issue Dec 10, 2022 · 1 comment
Labels
needs reproducer Bug report can't be verified without reproducible test case

Comments

@Rratic
Copy link

Rratic commented Dec 10, 2022

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.

@timholy timholy added the needs reproducer Bug report can't be verified without reproducible test case label Jan 4, 2024
@timholy
Copy link
Owner

timholy commented Jan 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproducer Bug report can't be verified without reproducible test case
Projects
None yet
Development

No branches or pull requests

2 participants