-
Notifications
You must be signed in to change notification settings - Fork 62
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
TranslationException: translation context not available #1617
Comments
It is magic and appears out of nowhere sometimes :D And yes it should have a context. I will have a look. |
oxisto
added a commit
that referenced
this issue
Jul 19, 2024
This is more a band-aid, than an actually "healing". The issue is that we often use the `language` to get a translation context in passes. But (sometimes) the language does not have it, since it is created using `registerLanguage` even before a translation context exists. In an attempted fix, I am now using the translation context of a different node, but we should really think about how to deal with that in the future. Fixes #1617
oxisto
added a commit
that referenced
this issue
Jul 22, 2024
This is more a band-aid, than an actually "healing". The issue is that we often use the `language` to get a translation context in passes. But (sometimes) the language does not have it, since it is created using `registerLanguage` even before a translation context exists. In an attempted fix, I am now using the translation context of a different node, but we should really think about how to deal with that in the future. Fixes #1617
oxisto
added a commit
that referenced
this issue
Jul 22, 2024
Fixed crash in CXXExtraPass::convertOperators This is more a band-aid, than an actually "healing". The issue is that we often use the `language` to get a translation context in passes. But (sometimes) the language does not have it, since it is created using `registerLanguage` even before a translation context exists. In an attempted fix, I am now using the translation context of a different node, but we should really think about how to deal with that in the future. Fixes #1617
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stack trace
Unexpected behavior
The cpg crashes during
CXXExtraPass
.Code of interest
Extensions to the library, e.g. added or changed LanguageFrontends or Passes
None
Changes to the configuration
Description
The
Language
Node does not have actx
(null) but is expected byLanguageProvider.objectType
.Where does the Language Node come from?
Is it expected to have a context?
The text was updated successfully, but these errors were encountered: