Error in SonarLint for IntelliJ while startup

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 10.3.0.77475
java.lang.Throwable: Cannot find external directory C:\Users\TobiasFranz\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\javascript-impl\jsLanguageServicesImpl, the installation is possibly broken.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getAndCacheFromCompilerFolder(JSCorePredefinedLibrariesProvider.java:256)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.lambda$getFilesByLibName$0(JSCorePredefinedLibrariesProvider.java:70)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getFilesByLibName(JSCorePredefinedLibrariesProvider.java:67)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getHtmlLibraryFiles(JSCorePredefinedLibrariesProvider.java:153)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getPredefinedLibraries(JSCorePredefinedLibrariesProvider.java:167)
	at c.ij.lang.javascript.library.JSPredefinedLibrariesData.create(JSPredefinedLibrariesData.java:105)
	at c.ij.lang.javascript.library.JSPredefinedLibraryManager.lambda$new$0(JSPredefinedLibraryManager.java:25)
	at c.ij.oa.util.ClearableLazyValue$2.compute(ClearableLazyValue.java:25)
	at c.ij.oa.util.ClearableLazyValue.getValue(ClearableLazyValue.java:43)
	at c.ij.oa.util.AtomicClearableLazyValue.getValue(AtomicClearableLazyValue.java:12)

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 10.3.0.77475
java.lang.Throwable: Cannot find external directory C:\Users\TobiasFranz\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\javascript-impl\jsLanguageServicesImpl, the installation is possibly broken.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getAndCacheFromCompilerFolder(JSCorePredefinedLibrariesProvider.java:256)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.lambda$getFilesByLibName$0(JSCorePredefinedLibrariesProvider.java:70)
	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getFilesByLibName(JSCorePredefinedLibrariesProvider.java:67)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getReactPredefinedLibraryFiles(JSCorePredefinedLibrariesProvider.java:137)
	at c.ij.lang.javascript.library.JSCorePredefinedLibrariesProvider.getRequiredLibraryFilesToIndex(JSCorePredefinedLibrariesProvider.java:172)
	at c.ij.lang.javascript.library.JSPredefinedLibrariesData.create(JSPredefinedLibrariesData.java:106)
	at c.ij.lang.javascript.library.JSPredefinedLibraryManager.lambda$new$0(JSPredefinedLibraryManager.java:25)
	at c.ij.oa.util.ClearableLazyValue$2.compute(ClearableLazyValue.java:25)
	at c.ij.oa.util.ClearableLazyValue.getValue(ClearableLazyValue.java:43)
	at c.ij.oa.util.AtomicClearableLazyValue.getValue(AtomicClearableLazyValue.java:12)

Hey @noragen,

It seems that your IDE installation is broken, I’d suggest you remove the directories used by the IDE and reinstall it.

Also, it would be appreciated if you could share the full stack trace if you still have it or if it ever happens again. I don’t see a link with SonarLint there.

Thanks!