-
Notifications
You must be signed in to change notification settings - Fork 68
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
Error: error thrown. Last cursor available in context.cursor_stack #234
Comments
Looks like something happened in the process of tokenization. Could you share the content of "x1.h"? |
https://gist.github.com/lobingera/ec5ee777f459eb923972 (note the date ...) Actually i wanted to point out, that the error message has a problem, as c.cursor_stack seems to be existing (anymore), so it's not visible to the user where to find the stop in the input |
was #129 |
sorry, that’s a old copy-paste bug when I was refactoring the code. |
and where would i find the cursor 'state' ? |
there is no way to retrieve that info when using init-run API. the context will be gc-ed when run exits. could you rewrite it based on this template: https://github.com/JuliaInterop/Clang.jl/blob/master/gen/generator.jl ? |
Seriously? Clang cannot report (by default) where it stopped? |
what I meant is: since there is a bug in the implementation of current init-run API, there is no way to extract that info(generated by Clang) in julia. there is no bug in the above-mentioned template code, the cursor state can be retrieved. |
the init-run API is actually implemented via DefaultContext, we keep these two functions for backward compatibility reasons. |
@lobingera sorry for the late reply. I tried to wrap https://github.com/stapelberg/libxcb using the following script:
there are some
I didn't build libxcb, so the generated header file |
Thank you for your help. |
The text was updated successfully, but these errors were encountered: