{"record":{"id":"a7b67426508fcb1d","repo":"JetBrains/intellij-community","slug":"invalid-type-name-0","errorCode":null,"errorMessage":"Invalid type name ''{0}''","messagePattern":"Invalid type name ''(.+?)''","errorType":"exception","errorClass":"EvaluateException","httpStatus":null,"severity":"error","filePath":"java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/DebuggerTreeNodeExpression.java","lineNumber":143,"sourceCode":"    }\n\n    PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(project);\n    String typeName = type.getCanonicalText();\n    try {\n      PsiParenthesizedExpression parenthExpression = (PsiParenthesizedExpression)elementFactory.createExpressionFromText(\n        \"((\" + typeName + \")expression)\", null);\n      //noinspection ConstantConditions\n      ((PsiTypeCastExpression)parenthExpression.getExpression()).getOperand().replace(expression);\n      Set<String> imports = expression.getUserData(ADDITIONAL_IMPORTS_KEY);\n      if (imports == null) {\n        imports = new HashSet<>();\n      }\n      imports.add(typeName);\n      parenthExpression.putUserData(ADDITIONAL_IMPORTS_KEY, imports);\n      return parenthExpression;\n    }\n    catch (IncorrectOperationException e) {\n      throw new EvaluateException(JavaDebuggerBundle.message(\"error.invalid.type.name\", typeName), e);\n    }\n  }\n\n  /**\n   * @param qualifiedName the class qualified name to be resolved against the current execution context\n   * @return short name if the class could be resolved using short name,\n   * otherwise returns qualifiedName\n   */\n  public static String normalize(final String qualifiedName, PsiElement contextElement, Project project) {\n    if (contextElement == null) {\n      return qualifiedName;\n    }\n\n    final JavaPsiFacade facade = JavaPsiFacade.getInstance(project);\n    PsiClass aClass = facade.findClass(qualifiedName, GlobalSearchScope.allScope(project));\n    if (aClass != null) {\n      return normalizePsiClass(aClass, contextElement, facade.getResolveHelper());\n    }","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/debugger/impl/src/com/intellij/debugger/ui/impl/watch/DebuggerTreeNodeExpression.java#L125-L161","documentation":"Error \"Invalid type name ''{0}''\" thrown in JetBrains/intellij-community.","triggerScenarios":"A type name entered in a debugger expression cannot be resolved.","commonSituations":"Misspelled or non-qualified type names in Evaluate Expression or renderer configuration.","solutions":["Use a fully qualified, correctly spelled Java type name.","Ensure the class is on the debuggee's classpath."],"exampleFix":"Use 'java.util.ArrayList' instead of 'Arraylist'.","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-15T17:31:12.345Z"}