Copilot Error Ancesteor com.github.javaparser.ast.stmt.BlockStmt not found

Hi does anyone has a glue what this error means? I appears every time i want to add a component using copilot after i updated to 24.6.2

You need to provide a bit more information for that to make sense. Technically a ObjectCreationExpr is something like new Button() and a BlockStmt is

{
... some code
}

so it is looking for the block where the component is created and is unable to find it, it seems

ah ok, so it doesnt find a codeblock. Now suddenly its working :D I promise i changed nothing.

Could it be the reason if its startet in usual debug mode and not with hotswap agent?

I will try to get more information when it appears again. Strange, that i can not reproduce it now.

Sounds unlikely that it is related to using or not using Hotswap Agent. But it can be related to the Java source and the compiled class file being out of sync, for whatever reason

1 Like

That sound interesting and maybe be the reason why it suddenly works