Skip to content

[WIP] Fix duplicate node of lambda call in Clava-JS - #225

Closed
lm-sousa with Copilot wants to merge 0 commit into
masterfrom
copilot/fix-duplicate-lambda-node
Closed

lm-sousa with Copilot wants to merge 0 commit into
masterfrom
copilot/fix-duplicate-lambda-node

Conversation

Copilot AI commented Jan 20, 2026

Copy link
Copy Markdown

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>Duplicate node of lambda call</issue_title>
<issue_description>There appears to be a bug in Clava-JS, where a node of a direct call to a lambda expression appears duplicated.

To replicate this error, run Clava-JS with the script:

import Query from "lara-js/api/weaver/Query.js";

console.log(Query.root().dump);

and the source file:

int main(){
    delete ([]{ return new int; })();
    return 0;
}

Output:

</issue_description>

<agent_instructions>Make sure to run "gradle build installDist" in ClavaWeaver to build the Java binaries.
In order for them to be seen by the clava runner in Clava-JS, you need to create a symlink within Clava-JS like so: "ln -s ../CxxWeaver/build/install/CxxWeaver/ java-binaries".

Add the test case to the "Clava-JS/src-api/Issues.test.ts" file. You can then run "npm run test -- src-api/Issues.test.ts" to see if it passes. Run targeted tests. The full test suite can take over 15 minutes to run. You should run it once in the end to make sure you didn't break anything.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate node of lambda call

2 participants