Error in SonarQube for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.6
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.3.5
  • SonarQube for IDE: 10.19.0.80823
java.lang.Throwable: Attribute FileAttribute[FsRecords.DIRECTORY_CHILDREN]{version: -1, fixedSize: false, shouldEnumerate: false} value is too large: 1180882 b > max(819200) -> please, do not use VFS file attributes for huge blobs of data. Consider using GistManager or GistStorage.
	at c.ij.oa.dg.Logger.error(Logger.java:376)
	at c.ij.oa.vfs.newvfs.persistent.VFSAttributesStorage.checkAttributeValueSize(VFSAttributesStorage.java:90)
	at c.ij.oa.vfs.newvfs.persistent.AttributesStorageOverBlobStorage$WritesAccumulatingOutputStream.close(AttributesStorageOverBlobStorage.java:740)
	at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:190)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSTreeAccessor.doSaveChildren(PersistentFSTreeAccessor.java:95)
	at c.ij.oa.vfs.newvfs.persistent.FSRecordsImpl.update(FSRecordsImpl.java:727)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSImpl.persistAllChildren(PersistentFSImpl.java:343)
	at c.ij.oa.vfs.newvfs.persistent.PersistentFSImpl.listAll(PersistentFSImpl.java:322)
	at c.ij.oa.vfs.newvfs.impl.VirtualDirectoryImpl.loadAllChildren(VirtualDirectoryImpl.java:416)
	at c.ij.oa.vfs.newvfs.impl.VirtualDirectoryImpl.getChildren(VirtualDirectoryImpl.java:409)
	at c.ij.oa.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:314)
	at c.ij.oa.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:335)
	at c.ij.oa.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:335)
	at c.ij.oa.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:335)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.processContentFilesRecursively(WorkspaceFileIndexImpl.kt:170)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.processContentFilesRecursively(WorkspaceFileIndexImpl.kt:129)
	at c.ij.oa.roots.impl.FileIndexBase.iterateContentUnderDirectory(FileIndexBase.java:41)
	at c.ij.oa.roots.impl.ModuleFileIndexImpl.iterateContentUnderDirectory(ModuleFileIndexImpl.java:30)
	at c.ij.oa.roots.impl.FileIndexBase.iterateProvidedRootsOfContent(FileIndexBase.java:58)
	at c.ij.oa.roots.impl.ModuleFileIndexImpl.iterateContent(ModuleFileIndexImpl.java:74)
	at c.ij.oa.roots.impl.FileIndexBase.iterateContent(FileIndexBase.java:33)
	at c.ij.oa.roots.impl.ModuleFileIndexImpl.iterateContent(ModuleFileIndexImpl.java:30)
	at o.sl.ij.util.SonarLintAppUtils.visitAndAddAllFilesForModule(SonarLintAppUtils.java:155)
	at o.sl.ij.SonarLintIntelliJClient.listModuleFiles(SonarLintIntelliJClient.kt:773)
	at o.sl.ij.SonarLintIntelliJClient.listFiles(SonarLintIntelliJClient.kt:727)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$listFiles$31(SonarLintRpcClientImpl.java:348)
	at o.ss.sl.core.rpc.client.SonarLintRpcClientImpl.lambda$requestAsync$1(SonarLintRpcClientImpl.java:124)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

Hey @TasMot, thanks for reaching out to us. Are you reproducing this error consistently?

It seems that we try to index a folder that shouldn’t be indexed, and it causing this issue because it is too huge. Maybe there’s a folder containing many generated files that should be excluded from your project sources.

If you still reproduce this error, we can send you a custom build that should help us investigate the root cause.