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

StackOverflow on any input #1

Closed
KristofferC opened this issue Jul 24, 2017 · 3 comments
Closed

StackOverflow on any input #1

KristofferC opened this issue Jul 24, 2017 · 3 comments

Comments

@KristofferC
Copy link
Sponsor Member

Writing 1 and pressing enter gives a stack overflow error.

A bit of backtrace:

 [30301] Expr(::CSTParser.EXPR{CSTParser.LITERAL{Tokenize.Tokens.Kind(0x0000004c)}}) at /home/kristoffer/.julia/v0.6/CSTParser/src/conversion.jl:41
 [30302] #parse#1(::Bool, ::Bool, ::Function, ::String, ::Int64) at /home/kristoffer/.julia/v0.6/FancyDiagnostics/src/hooks.jl:61
 [30303] (::Base.#kw##parse)(::Array{Any,1}, ::Base.#parse, ::String, ::Int64) at ./<missing>:0
 [30304] #parse#235(::Bool, ::Function, ::String) at ./parse.jl:232
 [30305] Expr(::CSTParser.EXPR{CSTParser.LITERAL{Tokenize.Tokens.Kind(0x0000004c)}}) at /home/kristoffer/.julia/v0.6/CSTParser/src/conversion.jl:41
 [30306] #parse#1(::Bool, ::Bool, ::Function, ::String, ::Int64) at /home/kristoffer/.julia/v0.6/FancyDiagnostics/src/hooks.jl:61
 [30307] (::Base.#kw##parse)(::Array{Any,1}, ::Base.#parse, ::String, ::Int64) at ./<missing>:0
 [30308] #parse#235(::Bool, ::Function, ::String) at ./parse.jl:232
 [30309] Expr(::CSTParser.EXPR{CSTParser.LITERAL{Tokenize.Tokens.Kind(0x0000004c)}}) at /home/kristoffer/.julia/v0.6/CSTParser/src/conversion.jl:41
 [30310] #parse#1(::Bool, ::Bool, ::Function, ::String, ::Int64) at /home/kristoffer/.julia/v0.6/FancyDiagnostics/src/hooks.jl:61
 [30311] (::Base.#kw##parse)(::Array{Any,1}, ::Base.#parse, ::String, ::Int64) at ./<missing>:0
 [30312] #parse#235(::Bool, ::Function, ::String) at ./parse.jl:232
 [30313] Expr(::CSTParser.EXPR{CSTParser.LITERAL{Tokenize.Tokens.Kind(0x0000004c)}}) at /home/kristoffer/.julia/v0.6/CSTParser/src/conversion.jl:41
 [30314] #parse_input_line#2(::String, ::Function, ::String) at /home/kristoffer/.julia/v0.6/FancyDiagnostics/src/hooks.jl:71
 [30315] syntax_deprecation_warnings(::Base.REPL.##13#14{Base.LineEdit.PromptState}, ::Bool) at ./client.jl:192
 [30316] return_callback(::Base.LineEdit.PromptState) at ./REPL.jl:599
 [30317] on_enter(::Base.LineEdit.PromptState) at ./LineEdit.jl:1272
 [30318] (::OhMyREPL.Prompt.##23#50)(::Base.LineEdit.MIState, ::Base.REPL.LineEditREPL, ::String) at /home/kristoffer/.julia/v0.6/OhMyREPL/src/repl.jl:115
 [30319] (::Base.LineEdit.##13#14{OhMyREPL.Prompt.##23#50,String})(::Base.LineEdit.MIState, ::Base.REPL.LineEditREPL) at ./LineEdit.jl:740
 [30320] prompt!(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface, ::Base.LineEdit.MIState) at ./LineEdit.jl:1618
 [30321] run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1578
 [30322] run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:945
 [30323] run_repl(::Base.REPL.LineEditREPL, ::Base.##507#508) at ./REPL.jl:180
 [30324] _start() at ./client.jl:413
@KristofferC
Copy link
Sponsor Member Author

Looks like the number parsing calls at https://github.com/ZacLN/CSTParser.jl/blob/b9a5f944bbd3c1de35ad3b1b5cbd7a0d3ddd4351/src/conversion.jl#L41 calls the parse method on x.val which is a string that then calls back into the parse method defined in this package.

@KristofferC
Copy link
Sponsor Member Author

Doesn't seem to be a problem with this package.

@Keno
Copy link
Member

Keno commented Jul 24, 2017

Patience ;). Fixed in julia-vscode/CSTParser.jl#24

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

No branches or pull requests

2 participants