{"record":{"id":"6b8bc1533539b9a0","repo":"JetBrains/intellij-community","slug":"error-during-generated-code-invocation","errorCode":null,"errorMessage":"Error during generated code invocation ","messagePattern":"Error during generated code invocation ","errorType":"exception","errorClass":"EvaluateException","httpStatus":null,"severity":"error","filePath":"java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/CompilingEvaluator.java","lineNumber":94,"sourceCode":"\n    try {\n      // invoke base evaluator on call code\n      ExpressionEvaluator evaluator =\n        DebuggerInvocationUtil.commitAndRunReadAction(myProject, new EvaluatingComputable<>() {\n          @Override\n          public ExpressionEvaluator compute() throws EvaluateException {\n            TextWithImports callCode = getCallCode();\n            PsiElement copyContext = myData.getAnchor();\n            CodeFragmentFactory factory = DebuggerUtilsEx.findAppropriateCodeFragmentFactory(callCode, copyContext);\n            return factory.getEvaluatorBuilder().build(factory.createPsiCodeFragment(callCode, copyContext, myProject),\n                                                       // can not use evaluation position here, it does not match classes then\n                                                       SourcePosition.createFromElement(copyContext));\n          }\n        });\n      return evaluator.evaluate(autoLoadContext);\n    }\n    catch (Exception e) {\n      throw new EvaluateException(\"Error during generated code invocation \" + e, e);\n    }\n  }\n\n  private void defineClasses(Collection<ClassObject> classes,\n                             EvaluationContextImpl context,\n                             DebugProcess process,\n                             ClassLoaderReference classLoader) throws EvaluateException {\n    boolean useMagicAccessorImpl = myData.useMagicAccessor();\n\n    defineClassesForEvaluation(classes, context, process, classLoader, GEN_CLASS_NAME, useMagicAccessorImpl);\n    process.findClass(context, getGenClassQName(), classLoader);\n  }\n\n  @ApiStatus.Internal\n  public static void defineClassesForEvaluation(@NotNull Collection<ClassObject> classes,\n                                                 EvaluationContextImpl context,\n                                                 DebugProcess process,\n                                                 ClassLoaderReference classLoader,","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/CompilingEvaluator.java#L76-L112","documentation":"Error \"Error during generated code invocation \" thrown in JetBrains/intellij-community.","triggerScenarios":"The compiling evaluator generated bytecode for an expression but invoking it in the target VM failed.","commonSituations":"Expressions throwing at runtime in the debuggee or using constructs unsupported by the compiling evaluator.","solutions":["Simplify the expression so it compiles, or check the reported cause for the generated-code invocation failure.","Ensure the expression does not call methods with side effects that throw in the target VM."],"exampleFix":"Evaluate a smaller sub-expression first in Evaluate Expression to locate the failing part.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}