ProgressManager does not show progress

I used ProgressManager in ModuleBuilder and it does not show progress. Where i mistake?

public Module createModule(@NotNull ModifiableModuleModel moduleModel) throws InvalidDataException, IOException, ModuleWithNameAlreadyExists, JDOMException, ConfigurationException {
   Module baseModule = super.createModule(moduleModel);
   Project project = baseModule.getProject();
   ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> {
      try {
         // some actions
      } catch (InvalidDataException | IOException | JDOMException | ModuleWithNameAlreadyExists | ConfigurationException e) {
   }, "Title", true, project);
return baseModule;


Comment actions Permalink

That's too little information. Is createModule invoked on Swing thread? What is shown?

Comment actions Permalink

Maybe. I'm not sure.

I don't know every WizardStep create Swing component or IDEA create Swing component which show every WizardStep. If the second then Yes.

i create the MyModuleBuilder, which extends JavaModuleBuilder.
in this i override createModule(...). When i finished project creation, i expect that MyModuleBuilder.createModule(...) was invoked, and i have seen progress bar. But i don't see nothing . And last IDEA window was freezed.

Some time later my ModuleType was created successfully.

Comment actions Permalink

Have you tried to debug this and put a breakpoint into createModule? Is the breakpoint hit? Which thread does this happen in?


Please sign in to leave a comment.