-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[Cpp] Fix syntaxError prototype issue #1701
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
Conversation
re-integrate
I believe we should rather add methods to the interface if we need some. Even though I don't see why an interface is a good choice here, it is now there and we should stay with it, to avoid deviating too much from other targets. |
Ok fine. Before proposing this fix I had a quick look at the java runtime, and did not find a class name IRecognizer but Recognizer and it works. So I bet on a typo that has not been seen up to now... I understand that I probably misunderstand how it was suppose to work. Now I do not fully understand how you wish to resolve this issue. My proposed fix do not match you expectation should I close the push request or should I let it open and someone else will revert it and propose a better fix ? |
@mike-lischke should we alter this one or try to open a new one? |
Could it be a solution to remove this interface class IReconizer and add an alias : Thomas |
I'm sorry for the confusion here. My fault, I answered without looking up the code again. That IRecognizer class came from the automatic translation tool that was used at the beginning to get the initial code for the C++ target. There is actually no need to have that interface there. So the simplest solution would be to remove that interface and rename all IRecognizer references to just Recognizer. Can you do that @Thomasb81? |
This will likely need an update to remove the IRecognizer.h file from the XCode project, but that should be done using XCode, not just by doing it in the project source code. |
The dedicated commit related to xcode can be revert but I do not have access to xcode. |
Yes, prelease revert that part. I'll take care for XCode. Might be you hit already all places, but better let XCode do the manipulation. |
Actually does this fix #1708 ? |
No So completely different except both are related to error. :) |
ah! Thanks. |
Hello
I was looking to complete the default error message with the file name.
But with previous syntaxError prototype:
It was not possible because IRecognizer does not have appropriate helper. While the above method documentation state that parameter recognizer allow to :
So I change the type of *recognizer from IRecognizer to Reconizer :
After this fix it is now possible to get source filename: