Anomalous “JuliaSyntax parser failed” error - julia 1.11.0-DEV.715 #54989
Labels
domain:error messages
Better, more actionable error messages
parser
Language parsing and surface syntax
I posted at https://discourse.julialang.org/t/anomalous-juliasyntax-parser-failed-error-julia-1-11-0-dev/116382 regarding a parsing problem with Julia Version 1.11.0-DEV.715 Commit abd00d0 (2023-10-24 02:31 UTC) and got advice to post here (github JuliaLang/julia/issues).
Note, the problem does not occur with other versions than 1.11.0-DEV.715 that I've tried, including Julia Version 1.10.4 48d4fd4 2024-06-04; 1.11.0-beta2 edb3c92 2024-05-29; 1.11.0-rc1 3a35aec 2024-06-25; and 1.12.0-DEV.800 334e4d9 2024-06-28. At the moment I don't have 1.11.0-DEV.715 installed and haven't figured out how to find it or how to install it (if I find it) using jill without jill overwriting 1.11.0-rc1.
Contents here: Part 1: Problem description. Part 2: Program text. Part 3: Anomalous error text, from 1.11.0-DEV.715. Part 4: "Correct" error text, from 1.12.0-DEV.800. Part 5:
versioninfo()
for 1.11.0-DEV.715 and 1.12.0-DEV.800 on my systemPart 1. Problem description: Given the program shown next, with the second line of main() as shown, Julia Version 1.11.0-DEV.715 anomalously throws an exception after a message,
Error: JuliaSyntax parser failed — falling back to flisp!
, and before showing a message about the obviously misplaced bracket. See message in Part 3 (shown with file path redacted). Note, if a newline is added beforefor
in the problem line, 1.11.0-DEV.715 no longer throws the anomalous exception.Part 2: Program text.
Part 3: Anomalous error text, from 1.11.0-DEV.715.
Part 4: "Correct" error text, from 1.12.0-DEV.800.
Part 5: versioninfo() for 1.11.0-DEV.715 and 1.12.0-DEV.800:
The text was updated successfully, but these errors were encountered: