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: Exception when opening a JavaScript project #6645

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

tpasternak
Copy link
Collaborator

@tpasternak tpasternak commented Aug 16, 2024

closes #6643

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

@tpasternak tpasternak force-pushed the lazy-init-library-lind branch 2 times, most recently from 256c636 to ccf5b57 Compare August 16, 2024 12:28
@tpasternak tpasternak marked this pull request as ready for review August 16, 2024 12:35
@github-actions github-actions bot added product: IntelliJ IntelliJ plugin awaiting-review Awaiting review from Bazel team on PRs labels Aug 16, 2024
@@ -29,20 +32,22 @@ class BlazeJavascriptLibrarySource extends LibrarySource.Adapter {

private BlazeJavascriptLibrarySource() {}

@Nullable static final LibraryKind JS_LIBRARY_KIND = LibraryKind.findById("javaScript");
static final LazyInitializer.LazyValue<LibraryKind> JS_LIBRARY_KIND = LazyInitializer.create(
() -> LibraryKindRegistry.getInstance().findKindById("javaScript")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just -> LibraryKind.findById?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's deprecated in favor if this one

@tpasternak tpasternak merged commit 5bf121b into bazelbuild:master Aug 16, 2024
6 checks passed
@tpasternak tpasternak deleted the lazy-init-library-lind branch August 16, 2024 16:38
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Aug 16, 2024
mai93 pushed a commit that referenced this pull request Aug 20, 2024
mai93 pushed a commit that referenced this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: IntelliJ IntelliJ plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bazel sync fails on CLion 2024.2
3 participants