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

Address usage of deprecated method 'DumbService.runReadActionInSmartMode(Computable)' #1176

Closed
3 tasks done
dessina-devasia opened this issue Dec 16, 2024 · 1 comment · Fixed by #1207
Closed
3 tasks done
Assignees
Milestone

Comments

@dessina-devasia
Copy link
Contributor

dessina-devasia commented Dec 16, 2024

The deprecated method DumbService.runReadActionInSmartMode(Computable) is invoked in the following methods:

  • ProjectLabelManager.getProjectLabelInfo(...)
  • PropertiesManager.findPropertyLocation(...)
  • DiagnosticsHandler.collectDiagnostics(...)

These invocations need to be addressed to ensure compatibility.

@dessina-devasia dessina-devasia added high priority Deprecated API's Deprecated API usage in LTI labels Dec 16, 2024
@dessina-devasia dessina-devasia added this to the Next milestone Dec 16, 2024
@dessina-devasia dessina-devasia changed the title Address usage of deprecated method DumbService.runReadActionInSmartMode(Computable) Address usage of deprecated method 'DumbService.runReadActionInSmartMode(Computable)' Dec 16, 2024
@anusreelakshmi934
Copy link
Contributor

anusreelakshmi934 commented Dec 20, 2024

The runReadActionInSmartMode(Computable) method is not deprecated in the 2024.2.* version, so no modifications are required if migrating to this version.
However, it is recommended to use one of the following alternatives:

  • [com.intellij.openapi.application.smartReadAction]
  • [com.intellij.openapi.application.NonBlockingReadAction] with the inSmartMode option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment