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

Prepare for 2023.3: Do not depend on MacroManager.getInstance() #5390

Conversation

tpasternak
Copy link
Collaborator

Probably caused by this change
JetBrains/intellij-community@b3ed617#diff-737d7a5e2b283fc8b2a9c7f301e689e29a83629c1a3533053b813570da2e59f4R21

Before that, MacroManager was instantiated only if it was present in LangExtensions.xml (not a thing in Bazel Plugin tests). Now, it is instantiated always, which results in a crash in expandMacros call in tests. Hence, we need a new way to disable macro expansion in tests.

Checklist

  • I have filed an issue about this change and discussed potential changes with the maintainers.
  • I have received the approval from the maintainers to make this change.
  • This is not a stylistic, refactoring, or cleanup change.

Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.

Discussion thread for this change

Issue number: <please reference the issue number or url here>

Description of this change

Probably caused by this change
JetBrains/intellij-community@b3ed617#diff-737d7a5e2b283fc8b2a9c7f301e689e29a83629c1a3533053b813570da2e59f4R21

Before that, MacroManager was instantiated only if it was present in LangExtensions.xml (not a thing in Bazel Plugin tests).
Now, it is instantiated always, which results in a crash in expandMacros call in tests. Hence, we need a new way to disable
macro expansion in tests.
@tpasternak tpasternak assigned tpasternak and blorente and unassigned tpasternak Sep 26, 2023
@tpasternak tpasternak marked this pull request as ready for review September 26, 2023 13:47
@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Sep 26, 2023
@tpasternak tpasternak merged commit e887a1e into bazelbuild:master Sep 26, 2023
10 checks passed
@tpasternak tpasternak deleted the use-registry-key-instead-of-checking-macro-manager-instance branch September 26, 2023 14:18
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin
Projects
Development

Successfully merging this pull request may close these issues.

3 participants