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

Got UndefVarError: table_data not defined errors when using StringParserPEG #1423

Closed
ysaereve opened this issue Aug 28, 2021 · 1 comment
Closed
Labels
display & PlutoRunner & AbstractPlutoDingetjes.jl other packages Integration with other Julia packages

Comments

@ysaereve
Copy link

Got the following errors when using StringParserPEG:

Failed to show value:

UndefVarError: table_data not defined

show_richest(::IOContext{IOBuffer}, ::Any)@PlutoRunner.jl:641
var"#sprint_withreturned#28"(::IOContext{Base.DevNull}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::StringParserPEG.Grammar)@PlutoRunner.jl:591
format_output_default(::Any, ::Any)@PlutoRunner.jl:515
#format_output#17@PlutoRunner.jl:532[inlined]
formatted_result_of(::Base.UUID, ::Bool, ::Nothing, ::Module)@PlutoRunner.jl:448
top-level scope@none:1

begin
using StringParserPEG
calc2 = Grammar("""
start => (number & op & number){(r,v,f,l,c) -> c2}
op => plus | minus
number => (-(space) & r([0-9]+)r) {(r,v,f,l,c) -> parse(Int,c[1].value)}
plus => (-(space) & '+'){(a...) -> +}
minus => (-(space) & '-'){(a...) -> -}
space => r([ \t\n\r]*)r
""")
end

Environment:
Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
JULIA_EDITOR = atom -a
JULIA_REVISE_WORKER_ONLY = 1
nothing
Pluto Version 0.15.1
PlutoUI Version 0.7.9

@fonsp
Copy link
Owner

fonsp commented Sep 1, 2021

Can you post a small notebook that we can run to reproduce your problem?

@fonsp fonsp added display & PlutoRunner & AbstractPlutoDingetjes.jl other packages Integration with other Julia packages labels Sep 4, 2021
@fonsp fonsp closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display & PlutoRunner & AbstractPlutoDingetjes.jl other packages Integration with other Julia packages
Projects
None yet
Development

No branches or pull requests

2 participants