Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"java.lang.IllegalStateException: Calling invokeAndWait from read-action leads to possible deadlock." when setting up the odo binary #944

Open
adietish opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working IC-2024.3

Comments

@adietish
Copy link
Contributor

adietish commented Nov 4, 2024

related to: redhat-developer/intellij-common#240

Turns out that in IC-2024.3 trying to setup the odo binary (and any other cli binary) would fail with the following:

java.lang.IllegalStateException: Calling invokeAndWait from read-action leads to possible deadlock.

This is caused by the following call in ApplicationsRootNode

        ReadAction.compute(() -> ToolFactory.getInstance()
          .createOdo(project)
          .thenApply(tool -> {
            ApplicationRootNodeOdo odo = new ApplicationRootNodeOdo(tool.get(), tool.isDownloaded(), this, processHelper);
            loadProjectModel(odo, project);
            return odo;
          }));

The ReadAction is required because the project is used.

@adietish adietish added bug Something isn't working IC-2024.3 labels Nov 4, 2024
@adietish adietish self-assigned this Dec 11, 2024
@adietish adietish moved this to 📋 Backlog in IDE Cloudaptors Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working IC-2024.3
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant