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

rangepos failed with macros #8510

Closed
scabug opened this issue Apr 17, 2014 · 3 comments
Closed

rangepos failed with macros #8510

scabug opened this issue Apr 17, 2014 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 17, 2014

Compling code that uses macro with the rangepos option produces errors like this:

scala.tools.nsc.interactive.RangePositions$ValidateException: Synthetic tree [251] contains nonsynthetic tree [250]

A demo project can be found here:
https://github.com/thirstycrow/macro-rangepos-problem

@scabug
Copy link
Author

scabug commented Apr 17, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8510?orig=1
Reporter: Hua Jiang (thirstycrow)
Affected Versions: 2.10.4, 2.11.0

@scabug
Copy link
Author

scabug commented Oct 14, 2014

Guillaume Massé (masgui) said:
this is fixed in 2.11.2
https://github.com/MasseGuillaume/macro-rangepos-problem

@scabug
Copy link
Author

scabug commented Feb 11, 2016

Tomer Gabel (holograph) said:
Ran into this in the context of mixing scoverage with a library I'm maintaining (see wix-incubator/accord#60). It is indeed a non-issue for 2.11, but it basically breaks 2.10 if you use -Yrangepos for any reason, such as getting code coverage.

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