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

QQ crash extracting nested xml #8436

Closed
scabug opened this issue Mar 21, 2014 · 7 comments
Closed

QQ crash extracting nested xml #8436

scabug opened this issue Mar 21, 2014 · 7 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Mar 21, 2014

SomeOne (SO) asked about extracting xml literals with q"<xml/>" in a macro.

Matching a nested literal hits SO (StackOverflow).

case q"<top><bottom></bottom></top>" =>
@scabug
Copy link
Author

scabug commented Mar 21, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8436?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.0-RC3

@scabug
Copy link
Author

scabug commented Mar 27, 2014

@rjolly said:
This is just to make sure it is added in the doc too : http://den.sh/quasiquotes.html#literal

@scabug
Copy link
Author

scabug commented Mar 28, 2014

@densh said:
I've just added stubs to the doc not to forget about it.

@scabug
Copy link
Author

scabug commented Apr 1, 2014

@densh said (edited on Apr 1, 2014 7:51:54 PM UTC):
Workaround: give more stack space to the compiler's JVM through -Xss flag.

@scabug
Copy link
Author

scabug commented Apr 1, 2014

@densh said (edited on Apr 1, 2014 7:00:55 PM UTC):
It looks like quasiquotes generate legitimate code but there is just too much of it for pattern matcher to handle with default stack size.

@scabug
Copy link
Author

scabug commented Apr 9, 2014

@densh said:
Better workaround: http://stackoverflow.com/a/22974059/1034615

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@SethTisue
Copy link
Member

closing all quasiquotes tickets; see #10755

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

3 participants