JetBrains/intellij-community · error · EvaluateException

Evaluation is not possible during the project analysis

Error message

Evaluation is not possible during the project analysis

What it means

Error "Evaluation is not possible during the project analysis" thrown in JetBrains/intellij-community.

Source

Thrown at java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/EvaluationDescriptor.java:125

      XEvaluationOrigin descriptorOrigin = XEvaluationOrigin.getOrigin(this);
      Value value;
      if (descriptorOrigin != XEvaluationOrigin.UNSPECIFIED) {
        value = XEvaluationOrigin.computeWithOrigin(thisEvaluationContext, descriptorOrigin,
                                                          () -> evaluator.evaluate(thisEvaluationContext));
      }
      else {
        value = evaluator.evaluate(thisEvaluationContext);
      }
      thisEvaluationContext.keep(value);

      myModifier = evaluator.getModifier();
      setLvalue(myModifier != null);

      return value;
    }
    catch (IndexNotReadyException ex) {
      throw new EvaluateException(JavaDebuggerBundle.message("evaluation.error.during.indexing"), ex);
    }
    catch (final EvaluateException ex) {
      throw new EvaluateException(ex.getLocalizedMessage(), ex);
    }
    catch (ObjectCollectedException ex) {
      throw EvaluateExceptionUtil.OBJECT_WAS_COLLECTED;
    }
  }

  @Override
  public PsiExpression getDescriptorEvaluation(DebuggerContext context) throws EvaluateException {
    PsiElement evaluationCode = getEvaluationCode(context);
    if (evaluationCode instanceof PsiExpressionCodeFragment) {
      return ((PsiExpressionCodeFragment)evaluationCode).getExpression();
    }
    else {
      throw new EvaluateException(JavaDebuggerBundle.message("error.cannot.create.expression.from.code.fragment"), null);
    }

View on GitHub (pinned to be881553f2)

Solutions

  1. Wait for project indexing/analysis to complete, then retry the evaluation.

Example fix

Wait for the dumb-mode indicator to disappear, then press Alt+F8 again.

When it happens

Trigger: Expression evaluation is attempted while the IDE is in dumb mode.

Common situations: Evaluating watches during startup indexing or a large re-index.


AI-assisted analysis of JetBrains/intellij-community@be881553f2 (2026-08-14). Data as JSON: /api/errors/9496d521a2562981. Report an issue: GitHub.