You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, that's a 200kB source file with nothing but 100k+ repetitions of 0, (and no, I didn't find this by fuzzing 🙈). Having this file in the workspace (included or not) crashes the language server with a StackOverflowError:
┌ Error: Some Julia code in the VS Code extension crashed
└ @ Main ~/.vscode/extensions/julialang.language-julia-1.66.2/scripts/error_handler.jl:15
ERROR: StackOverflowError:
Stacktrace:
[1] emit(l::Tokenize.Lexers.Lexer{IOBuffer, Tokenize.Tokens.RawToken}, kind::Tokenize.Tokens.Kind, err::Tokenize.Tokens.TokenError)
@ Tokenize.Lexers ~/.vscode/extensions/julialang.language-julia-1.66.2/scripts/packages/Tokenize/src/lexer.jl:276
This is on a macOS; I suppose the exact thresholds here may vary depending upon your system's stack limits.
The text was updated successfully, but these errors were encountered:
Turns out this works fine in JuliaSyntax (e.g. with JuliaSyntax.parseall(Expr,join(('0' for _ in 1:5043000), ','));). CSTParser is a bit more recursive and fails here for me:
This file crashes the Julia language server:
Yes, that's a 200kB source file with nothing but 100k+ repetitions of
0,
(and no, I didn't find this by fuzzing 🙈). Having this file in the workspace (included or not) crashes the language server with a StackOverflowError:This is on a macOS; I suppose the exact thresholds here may vary depending upon your system's stack limits.
The text was updated successfully, but these errors were encountered: