Skip to content
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

Rascal debugger cannot handle common keyword parameters #2028

Open
PieterOlivier opened this issue Sep 6, 2024 · 0 comments
Open

Rascal debugger cannot handle common keyword parameters #2028

PieterOlivier opened this issue Sep 6, 2024 · 0 comments
Labels

Comments

@PieterOlivier
Copy link
Contributor

When a Rascal program uses common keyword parameters in a data definition, the debugger will always stop on the line containing the common parameters when code is executed where an actual parameter is used (which does not have to be a common parameter).

When this occurs the stack shown in VSCode is messed up, containing only a kwp initializer frame.

To reproduce, run the following code in the debugger:

module bug::CommonKeyword

data Person(str name="");

data Person = person(int age=42);

void trigger() {
    p = person();
    _ = p.age;
}

The debugger will break on the data Person(str name=""); line and the stack will be messed up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant