Typing errors in editor with CLion Nova 2023

  • Operating system: Any
  • SonarLint plugin version: Any
  • Programming language you’re coding in: C++
2023-11-10 10:11:43,504 [  11773] SEVERE - #c.i.o.a.i.ApplicationImpl - com/jetbrains/cidr/lang/psi/OCPsiFile
java.lang.NoClassDefFoundError: com/jetbrains/cidr/lang/psi/OCPsiFile
	at org.sonarlint.intellij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:34)
	at org.sonarlint.intellij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:253)
	at org.sonarlint.intellij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:209)
	at org.sonarlint.intellij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:65)
	at org.sonarlint.intellij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:50)
	at org.sonarlint.intellij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at org.sonarlint.intellij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:184)
	at org.sonarlint.intellij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:160)
	at org.sonarlint.intellij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:93)
	at org.sonarlint.intellij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:35)
	at com.intellij.codeWithMe.ClientId$Companion.decorateRunnable$lambda$4(ClientId.kt:366)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:263)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ClassNotFoundException: com.jetbrains.cidr.lang.psi.OCPsiFile PluginClassLoader(plugin=PluginDescriptor(name=SonarLint, id=org.sonarlint.idea, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/CLionNova2023.3/plugins/sonarlint-intellij, version=10.0.0.76954, package=null, isBundled=false), packagePrefix=null, state=active)
	... 25 more

Resume for dev: CLion Nova 2023 has no OCPsiFile inside. There is the stub frontend PsiFile implementation aka com.jetbrains.rider.cpp.fileType.psi.CppFile

Thanks!

Hi @Alexey_Utkin, many thanks for the information details you provided.

We already identified a few issues in CLion Nova, making our plugin broken. We are planning to work on it in the near future. I created this ticket on our side regarding this topic.

Just a gentle reminder about this issue since CLion Nova was merged into CLion Classic

2 Likes

Many thanks for the update; I will try to increase the priority on this.

1 Like

Is there any news on the matter?

We understand the importance of these changes, and we have booked some time to work on it for the next release, which will happen in early April. We will keep you updated on the progress.

1 Like

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: CLion 2024.1
  • SonarLint: 10.4.2.78113
java.lang.NoClassDefFoundError: com/jetbrains/cidr/lang/psi/OCPsiFile
	at o.sl.ij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:34)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:257)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:208)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)
	at c.ij.oa.application.impl.RwLockHolder.runReadAction(RwLockHolder.kt:289)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:850)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:50)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:159)
	at o.sl.ij.analysis.AnalysisScope.defineFrom(AnalysisScope.java:41)
	at o.sl.ij.analysis.Analysis.doRun(Analysis.java:123)
	at o.sl.ij.analysis.Analysis.run(Analysis.java:80)
	at o.sl.ij.tasks.TaskRunnerKt$startBackgroundable$task$1.run(TaskRunner.kt:54)
	at c.ij.oa.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:477)
	at c.ij.oa.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: CLion 2024.1
  • SonarLint: 10.4.2.78113
java.lang.NoClassDefFoundError: com/jetbrains/cidr/lang/psi/OCPsiFile
	at o.sl.ij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:34)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:257)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:208)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)
	at c.ij.oa.application.impl.RwLockHolder.runReadAction(RwLockHolder.kt:289)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:850)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:50)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:159)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.codeWithMe.ClientId$Companion.decorateRunnable$lambda$4(ClientId.kt:365)
	at c.ij.oa.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: CLion 2024.1
  • SonarLint: 10.4.2.78113
java.lang.NoClassDefFoundError: com/jetbrains/cidr/lang/psi/OCPsiFile
	at o.sl.ij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:34)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:257)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:208)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)
	at c.ij.oa.application.impl.RwLockHolder.runReadAction(RwLockHolder.kt:289)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:850)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:50)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:159)
	at o.sl.ij.analysis.AnalysisScope.defineFrom(AnalysisScope.java:41)
	at o.sl.ij.analysis.Analysis.doRun(Analysis.java:123)
	at o.sl.ij.analysis.Analysis.run(Analysis.java:80)
	at o.sl.ij.tasks.TaskRunnerKt$startBackgroundable$task$1.run(TaskRunner.kt:54)
	at c.ij.oa.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:477)
	at c.ij.oa.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: CLion 2024.1
  • SonarLint: 10.4.2.78113
java.lang.NoClassDefFoundError: com/jetbrains/cidr/lang/psi/OCPsiFile
	at o.sl.ij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:34)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:257)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:208)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)
	at c.ij.oa.application.impl.RwLockHolder.runReadAction(RwLockHolder.kt:289)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:850)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:50)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:159)
	at o.sl.ij.analysis.AnalysisScope.defineFrom(AnalysisScope.java:41)
	at o.sl.ij.analysis.Analysis.doRun(Analysis.java:123)
	at o.sl.ij.analysis.Analysis.run(Analysis.java:80)
	at o.sl.ij.tasks.TaskRunnerKt$startBackgroundable$task$1.run(TaskRunner.kt:54)
	at c.ij.oa.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:477)
	at c.ij.oa.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:133)

To give an update on this topic, we made good progress this month, and we managed to get a working version that enables the usage of CLion 2024.1 with or without the ReSharper engine enabled. Due to time constraints and lack of validation, we had to postpone the fix until the next release, which will be in late May.

For information, you can still use SonarLint on CLion 2024.1 if you disable the ReSharper engine. If you want to enable the ReSharper engine with SonarLint, you must wait for our next release, sorry for the inconvenience.

1 Like

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: CLion 2024.1.1
  • SonarLint: 10.5.0.78339
java.lang.NoClassDefFoundError: com/jetbrains/cidr/lang/psi/OCPsiFile
	at o.sl.ij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:34)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:257)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:208)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)
	at c.ij.oa.application.impl.RwLockHolder.runReadAction(RwLockHolder.kt:289)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:850)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:50)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:159)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.codeWithMe.ClientId$Companion.decorateRunnable$lambda$4(ClientId.kt:365)
	at c.ij.oa.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: CLion 2024.1.1
  • SonarLint: 10.5.0.78339
java.lang.NoClassDefFoundError: com/jetbrains/cidr/lang/psi/OCPsiFile
	at o.sl.ij.clion.CFamilyFileExclusionContributor.shouldExclude(CFamilyFileExclusionContributor.java:34)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionFromEP(LocalFileExclusions.java:257)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$8(LocalFileExclusions.java:208)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$2(ReadActionUtils.kt:51)
	at c.ij.oa.application.impl.RwLockHolder.runReadAction(RwLockHolder.kt:289)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:850)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:50)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:159)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.codeWithMe.ClientId$Companion.decorateRunnable$lambda$4(ClientId.kt:365)
	at c.ij.oa.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)