-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
LexicalPreservingPrinter: Unsupported operation - addMarkerAnnotation(String) #865
Comments
@ftomassetti should I mark this as a bug? |
yes, I think so |
It seems to work for me. I added this test:
And it pass. I had just to remove the parenthesis on Did I wrote the test correctly? Could you help us reproduce the issue? |
You are absolutely right, sorry, I did another change which i forgot to mention.
I also played around with this input
and changing addMarkerAnnotation to addAnnotation again, which gives a different error. |
I can confirm this has been corrected. I added tests to double check it in #936 |
Hello there
If you run the LexicalPreservingPrinterTest.handleOverrideAnnotation Test with addMarkerAnnotation(String) instead of addAnnotation(String) it will not work, because apparently ObservableProperty.getTokenType(String) does not yet support the property == ObvervableProperty.NAME.
I added the following condition to the method and that seems to work for this specific case, but I think some other Test fails afterwards so it might not really be the solution, it was just some quick test I tried.
There seem to be some other methods which are not yet supported, I will open more issues for each I stumble upon when trying my specific use cases.
Kind regards
The text was updated successfully, but these errors were encountered: