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

IDE error while installing Bazel for Clion plugin #7155

Open
satyanandak opened this issue Dec 11, 2024 · 0 comments · May be fixed by #7159
Open

IDE error while installing Bazel for Clion plugin #7155

satyanandak opened this issue Dec 11, 2024 · 0 comments · May be fixed by #7159
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: CLion CLion plugin type: bug

Comments

@satyanandak
Copy link
Contributor

Description of the bug:

HI Team,

We are encountered with the below error while installing the plugin for clion
java.lang.NullPointerException: Cannot invoke "com.google.idea.blaze.base.projectview.ProjectViewSet.getScalarValue(com.google.idea.blaze.base.projectview.section.SectionKey)" because "projectViewSet" is null
at com.google.idea.blaze.base.settings.Blaze.getUpToDateProjectTypeBeforeSync(Blaze.java:101)
at com.google.idea.blaze.base.sync.BlazeSyncStartupActivity.runActivity(BlazeSyncStartupActivity.java:41)
at com.intellij.ide.startup.impl.StartupManagerImpl.runOldActivity(StartupManagerImpl.kt:337)
at com.intellij.ide.startup.impl.StartupManagerImpl.doRunPostStartupActivities$lambda$4$lambda$3(StartupManagerImpl.kt:288)
at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:341)
at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invokeSuspend(coroutines.kt:233)
at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:232)
at com.intellij.ide.startup.impl.StartupManagerImpl.doRunPostStartupActivities(StartupManagerImpl.kt:287)
at com.intellij.ide.startup.impl.StartupManagerImpl.access$doRunPostStartupActivities(StartupManagerImpl.kt:70)
at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invokeSuspend(StartupManagerImpl.kt:196)
at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3$2.invoke(StartupManagerImpl.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at com.intellij.ide.startup.impl.StartupManagerImpl$runPostStartupActivities$3.invokeSuspend(StartupManagerImpl.kt:195)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)

Which category does this issue belong to?

CLion

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  1. Open IntelliJ IDE
  2. Install the latest Bazel plugin for Clion

Which Intellij IDE are you using? Please provide the specific version.

2024.2 & 2024.3

What programming languages and tools are you using? Please provide specific versions.

C ++

What Bazel plugin version are you using?

2024.12.03.0.2-api-version-243 & 2024.12.03.0.2-api-version-242

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

image

@satyanandak satyanandak added type: bug product: CLion CLion plugin awaiting-maintainer Awaiting review from Bazel team on issues labels Dec 11, 2024
ujohnny added a commit that referenced this issue Dec 11, 2024
stick to the existing project type if project view
is not valid

fixes #7155
@ujohnny ujohnny linked a pull request Dec 11, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: CLion CLion plugin type: bug
Projects
Status: Untriaged
Development

Successfully merging a pull request may close this issue.

2 participants