{"record":{"id":"15fae4ffae7735bd","repo":"JetBrains/intellij-community","slug":"select-imported-projects-dialog-message-nothing-fo","errorCode":"select.imported.projects.dialog.message.nothing.found","errorMessage":"Nothing found to import","messagePattern":"Nothing found to import","errorType":"validation","errorClass":"ConfigurationException","httpStatus":null,"severity":"error","filePath":"java/idea-ui/src/com/intellij/projectImport/SelectImportedProjectsStep.java","lineNumber":114,"sourceCode":"    fileChooser.clear();\n    for (T element : getContext().getList()) {\n      boolean isEnabled = isElementEnabled(element);\n      fileChooser.addElement(element, isEnabled && getContext().isMarked(element));\n      if (!isEnabled) {\n        fileChooser.disableElement(element);\n      }\n    }\n\n    fileChooser.setBorder(IdeBorderFactory.createTitledBorder(\n      JavaUiBundle.message(\"project.import.select.title\", getContext().getName()), false));\n    openModuleSettingsCheckBox.setSelected(getBuilder().isOpenProjectSettingsAfter());\n  }\n\n  @Override\n  public boolean validate() throws ConfigurationException {\n    getContext().setList(fileChooser.getMarkedElements());\n    if (fileChooser.getMarkedElements().isEmpty()) {\n      throw new ConfigurationException(JavaUiBundle.message(\"select.imported.projects.dialog.message.nothing.found\"),\n                                       JavaUiBundle.message(\"select.imported.projects.dialog.title.unable.to.proceed\"));\n    }\n    return true;\n  }\n\n  @Override\n  public void updateDataModel() {}\n\n  @Override\n  public void onStepLeaving() {\n    super.onStepLeaving();\n    getContext().setOpenProjectSettingsAfter(openModuleSettingsCheckBox.isSelected());\n  }\n\n  public ProjectImportBuilder<T> getContext() {\n    return getBuilder();\n  }\n}","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/idea-ui/src/com/intellij/projectImport/SelectImportedProjectsStep.java#L96-L132","documentation":"Thrown from SelectImportedProjectsStep.validate() in the project import wizard when the user marks no projects/modules to import. The step requires at least one element from the file chooser to be checked before Next/Finish. It stops the wizard with an 'Unable to proceed' titled dialog.","triggerScenarios":"Running an importer wizard (e.g. Eclipse/old project import) reaching the 'Select imported projects' step with the checkbox list fully unchecked and pressing Next.","commonSituations":"All entries were deselected (sometimes by default); importer found candidate projects but the user expected unselected ones to be imported automatically; confusion about needing to tick at least one root.","solutions":["Tick at least one project/module in the list and press Next","If the list shows the wrong roots, go Back and re-point the wizard at the correct source directory"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if (fileChooser.getMarkedElements().isEmpty()) {\n  // disable Next / show warning instead of letting validate() throw\n}","typeGuard":null,"tryCatchPattern":"try { step.validate(); } catch (ConfigurationException e) { /* 'Unable to proceed' dialog; keep user on step */ }","preventionTips":["Pre-select the most likely project root when the step is shown","Disable Next until at least one element is marked"],"tags":["intellij","project-import","wizard","validation"],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}