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

Add the feature of positioning for reporting warnings and errors #6931

Closed
scabug opened this issue Jan 7, 2013 · 4 comments
Closed

Add the feature of positioning for reporting warnings and errors #6931

scabug opened this issue Jan 7, 2013 · 4 comments

Comments

@scabug
Copy link

scabug commented Jan 7, 2013

c.info / abort / error indicate the place of macro call, when c.enclosingPosition is passed as first argument.
{noformat}scala> macrosXmlFromString("")
:14: error: Open quote is expected for attribute "{1}" associated with an element type "bar".
macrosXmlFromString("")
^{noformat}
Better if the possibility is to set arbitrary shift to the indicate that will allow to specify a error place precisely.
{noformat}scala> macrosXmlFromString("")
:14: error: Open quote is expected for attribute "{1}" associated with an element type "bar".
macrosXmlFromString("")
^{noformat}

@scabug
Copy link
Author

scabug commented Jan 7, 2013

Imported From: https://issues.scala-lang.org/browse/SI-6931?orig=1
Reporter: Tikhonov Nikolay (tikhonovnikolay)

@scabug
Copy link
Author

scabug commented Jan 12, 2014

@scabug
Copy link
Author

scabug commented Feb 1, 2014

@xeno-by said:
scala/scala#3452

@scabug
Copy link
Author

scabug commented Feb 1, 2014

@xeno-by said:
Amazingly enough there was already such a feature in our position API: https://github.com/xeno-by/scala/blob/924ba1232bacd733eca21116ab525b7e87dedd13/test/files/neg/t6931/Macros_1.scala#L12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants