Project Wizard Validation using NewProjectWizardDirectoryGeneratorAdapter
Hello,
I'm using a GeneratorNewProjectWizard and a GeneratorNewProjectWizardBuilderAdapter / NewProjectWizardDirectoryGeneratorAdapter to register a ModuleBuilder / DirectoryProjectGenerator for IntelliJ / PyCharm project wizards, respectively.
I have some validators in the wizard UI which I want to prevent the user from proceeding when errors are found. The wizard for IntelliJ behaves how I want it, where if errors are present, then the “Create” button does not allow the user to generate the project.
However, in PyCharm, even when errors are present, the “Create” button lets the user go through with creating the project anyway.
Is there a way to have the validation stop the user from proceeding in the PyCharm project wizard similar to how it's done in the IntelliJ version?
Please sign in to leave a comment.
Hi Marcus, it sounds like a bug. I suggest reporting it to https://youtrack.jetbrains.com/issues/PY.
Just submitted a ticket at https://youtrack.jetbrains.com/issue/PY-71475/Project-Wizard-Validation-Doesnt-Block-Creation-when-using-NewProjectWizardDirectoryGeneratorAdapter
Thank you, Karol!