-
Notifications
You must be signed in to change notification settings - Fork 77
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
NoSuchKey exception of Rascal type checker in some modules #1309
Comments
A new one in rascal-eclipse:
|
@PaulKlint A plausible diagnosis due to common elements among different instances of this error:
Some of these instances seem to be cause by a pattern variable without a type in a function header. This is not allowed but the interpreter ignores it. It always seems to go wrong with the So a combination of issues:
|
On the other hand, the instance in util::IDE does have a type, but does also use the
|
it looks to me like some stuff is missing here, which does happen for the "typed variable" case but not for the "variable becomes" cases. The // ---- variable becomes pattern void collect(current: (Pattern) // ---- typed variable becomes void collect(current: (Pattern) // ---- typed variable pattern void collect(current: (Pattern) |
Thanks for the cases + feedback, I have fixed this issue by avoiding it, but not really understanding what the underlying cause is (remains a TODO). The situation is as follows for the case 1-6 above (OK==typechecker completes normally and the above crash does not occur):
|
This NoSuchKey exception seems to be consistent between different modules; so far we've found the following modules that exhibit this bug:
The text was updated successfully, but these errors were encountered: