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

Fix #1132 Load services outside of constructors and class initializers #1138

Closed
wants to merge 1 commit into from

Conversation

nrayburn-tech
Copy link
Contributor

Fixes the error on startup by loading the service when needed and not when the class is initializing. IntelliJ docs on this, https://plugins.jetbrains.com/docs/intellij/plugin-services.html#retrieving-a-service.

Tested locally with IntelliJ versions 2021.3 and 2024.2.

#1134 has bug #1132 tagged, but I don't think it does anything to resolve the issue in it's current state. (I do agree that getting on the newer IntelliJ tooling is beneficial though, it offers inspections that catches issues like this.)

Fixes #1132.

Copy link

google-cla bot commented Aug 19, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@nrayburn-tech
Copy link
Contributor Author

CLA signed.

@cushon cushon requested a review from plumpy August 20, 2024 01:11
@cushon
Copy link
Collaborator

cushon commented Aug 20, 2024

@nrayburn-tech I think the CLA check is failing because the email address in the commit doesn't match the email address the CLA was signed with, could you rebase the commits with the correct email address?

@nrayburn-tech
Copy link
Contributor Author

@cushon #1139 seems to have picked the CLA up fine.

I signed the CLA after submitting this PR, but before submitting #1139. Not sure if that’s relevant or if it can just be retested.

If it’s still an issue, I can change the email. I’d rather not if it can be avoided though.

@cushon
Copy link
Collaborator

cushon commented Aug 20, 2024

Thanks, the CLA results were stale, I re-ran it and it passed.

@plumpy
Copy link
Collaborator

plumpy commented Aug 21, 2024

Thanks for the PR, I appreciate the help!

copybara-service bot pushed a commit that referenced this pull request Aug 21, 2024
Fixes the error on startup by loading the service when needed and not when the class is initializing.  IntelliJ docs on this, https://plugins.jetbrains.com/docs/intellij/plugin-services.html#retrieving-a-service.

Tested locally with IntelliJ versions 2021.3 and 2024.2.

#1134 has bug #1132 tagged, but I don't think it does anything to resolve the issue in it's current state. (I do agree that getting on the newer IntelliJ tooling is beneficial though, it offers inspections that catches issues like this.)

Fixes #1132.

Fixes #1138

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1138 from nrayburn-tech:fix/1132 5866980
PiperOrigin-RevId: 665849974
@nrayburn-tech nrayburn-tech deleted the fix/1132 branch August 21, 2024 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IntelliJ plugin crashes 100% of the time with IntelliJ 2024.2
3 participants