Error in SonarLint for IntelliJ 10.8.1: Write-unsafe context!

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.2.1
  • SonarLint: 10.9.0.79423
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:136)
	at c.ij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:81)
	at c.ij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:87)
	at c.ij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:97)
	at c.ij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:346)
	at c.ij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:239)
	at c.ij.psi.impl.file.impl.FileManagerImpl.forceReload(FileManagerImpl.java:161)
	at c.ij.psi.impl.file.impl.PsiVFSListener.propertyChanged(PsiVFSListener.java:344)
	at c.ij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.java:782)
	at one.util.streamex.CollapseSpliterator.accept(CollapseSpliterator.java:152)
	at one.util.streamex.CollapseSpliterator.forEachRemaining(CollapseSpliterator.java:142)
	at one.util.streamex.AbstractStreamEx.forEach(AbstractStreamEx.java:352)
	at c.ij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.java:756)
	at c.ij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.java:746)
	at c.ij.psi.impl.file.impl.PsiVFSListener$1.after(PsiVFSListener.java:141)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:682)
	at c.ij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
	at c.ij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
	at jdk.proxy2/jdk.proxy2.$Proxy256.after(Unknown Source)
	at c.ij.util.FileContentUtilCore.lambda$reparseFiles$0(FileContentUtilCore.java:47)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:35)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:26)
	at c.ij.database.console.JdbcConsole.fireSearchPathChanged(JdbcConsole.java:633)
	at c.ij.database.console.JdbcConsole.switchSchema(JdbcConsole.java:625)
	at c.ij.database.run.actions.ChooseSchemaAction.scheduleSavedSchemaSwitch(ChooseSchemaAction.java:172)
	at c.ij.database.console.JdbcConsoleProvider.attachConsole(JdbcConsoleProvider.java:466)
	at c.ij.database.editor.DatabaseEditorHelper.restoreAttachedConsole(DatabaseEditorHelper.java:327)
	at c.ij.database.editor.DatabaseEditorHelper$1.fileOpened(DatabaseEditorHelper.java:122)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.2.1
  • SonarLint: 10.9.0.79423
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:136)
	at c.ij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:81)
	at c.ij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:87)
	at c.ij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:97)
	at c.ij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:346)
	at c.ij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:239)
	at c.ij.psi.impl.file.impl.FileManagerImpl.forceReload(FileManagerImpl.java:161)
	at c.ij.psi.impl.file.impl.PsiVFSListener.propertyChanged(PsiVFSListener.java:344)
	at c.ij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.java:782)
	at one.util.streamex.CollapseSpliterator.accept(CollapseSpliterator.java:152)
	at one.util.streamex.CollapseSpliterator.forEachRemaining(CollapseSpliterator.java:142)
	at one.util.streamex.AbstractStreamEx.forEach(AbstractStreamEx.java:352)
	at c.ij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.java:756)
	at c.ij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.java:746)
	at c.ij.psi.impl.file.impl.PsiVFSListener$1.after(PsiVFSListener.java:141)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:682)
	at c.ij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
	at c.ij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
	at jdk.proxy2/jdk.proxy2.$Proxy79.after(Unknown Source)
	at c.ij.util.FileContentUtilCore.lambda$reparseFiles$0(FileContentUtilCore.java:47)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:35)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:26)
	at c.ij.database.console.JdbcConsole.fireSearchPathChanged(JdbcConsole.java:633)
	at c.ij.database.console.JdbcConsole.switchSchema(JdbcConsole.java:625)
	at c.ij.database.run.actions.ChooseSchemaAction.scheduleSavedSchemaSwitch(ChooseSchemaAction.java:172)
	at c.ij.database.console.JdbcConsoleProvider.attachConsole(JdbcConsoleProvider.java:466)
	at c.ij.database.editor.DatabaseEditorHelper.restoreAttachedConsole(DatabaseEditorHelper.java:327)
	at c.ij.database.editor.DatabaseEditorHelper$1.fileOpened(DatabaseEditorHelper.java:122)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.2.1
  • SonarLint: 10.9.0.79423
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:136)
	at c.ij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:81)
	at c.ij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:87)
	at c.ij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:97)
	at c.ij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:346)
	at c.ij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:239)
	at c.ij.psi.impl.file.impl.FileManagerImpl.forceReload(FileManagerImpl.java:161)
	at c.ij.psi.impl.file.impl.PsiVFSListener.propertyChanged(PsiVFSListener.java:344)
	at c.ij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.java:782)
	at one.util.streamex.CollapseSpliterator.accept(CollapseSpliterator.java:152)
	at one.util.streamex.CollapseSpliterator.forEachRemaining(CollapseSpliterator.java:142)
	at one.util.streamex.AbstractStreamEx.forEach(AbstractStreamEx.java:352)
	at c.ij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.java:756)
	at c.ij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.java:746)
	at c.ij.psi.impl.file.impl.PsiVFSListener$1.after(PsiVFSListener.java:141)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:682)
	at c.ij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
	at c.ij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
	at jdk.proxy2/jdk.proxy2.$Proxy84.after(Unknown Source)
	at c.ij.util.FileContentUtilCore.lambda$reparseFiles$0(FileContentUtilCore.java:47)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:35)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:26)
	at c.ij.database.console.JdbcConsole.fireSearchPathChanged(JdbcConsole.java:633)
	at c.ij.database.console.JdbcConsole.switchSchema(JdbcConsole.java:625)
	at c.ij.database.run.actions.ChooseSchemaAction.scheduleSavedSchemaSwitch(ChooseSchemaAction.java:172)
	at c.ij.database.console.JdbcConsoleProvider.attachConsole(JdbcConsoleProvider.java:466)
	at c.ij.database.editor.DatabaseEditorHelper.restoreAttachedConsole(DatabaseEditorHelper.java:327)
	at c.ij.database.editor.DatabaseEditorHelper$1.fileOpened(DatabaseEditorHelper.java:122)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.2.1
  • SonarLint: 10.9.0.79423
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:136)
	at c.ij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:81)
	at c.ij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:87)
	at c.ij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:97)
	at c.ij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:346)
	at c.ij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:239)
	at c.ij.psi.impl.file.impl.FileManagerImpl.forceReload(FileManagerImpl.java:161)
	at c.ij.psi.impl.file.impl.PsiVFSListener.propertyChanged(PsiVFSListener.java:344)
	at c.ij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.java:782)
	at one.util.streamex.CollapseSpliterator.accept(CollapseSpliterator.java:152)
	at one.util.streamex.CollapseSpliterator.forEachRemaining(CollapseSpliterator.java:142)
	at one.util.streamex.AbstractStreamEx.forEach(AbstractStreamEx.java:352)
	at c.ij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.java:756)
	at c.ij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.java:746)
	at c.ij.psi.impl.file.impl.PsiVFSListener$1.after(PsiVFSListener.java:141)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:682)
	at c.ij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
	at c.ij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
	at jdk.proxy2/jdk.proxy2.$Proxy78.after(Unknown Source)
	at c.ij.util.FileContentUtilCore.lambda$reparseFiles$0(FileContentUtilCore.java:47)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:35)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:26)
	at c.ij.database.console.JdbcConsole.fireSearchPathChanged(JdbcConsole.java:633)
	at c.ij.database.console.JdbcConsole.switchSchema(JdbcConsole.java:625)
	at c.ij.database.run.actions.ChooseSchemaAction.scheduleSavedSchemaSwitch(ChooseSchemaAction.java:172)
	at c.ij.database.console.JdbcConsoleProvider.attachConsole(JdbcConsoleProvider.java:466)
	at c.ij.database.editor.DatabaseEditorHelper.restoreAttachedConsole(DatabaseEditorHelper.java:327)
	at c.ij.database.editor.DatabaseEditorHelper$1.fileOpened(DatabaseEditorHelper.java:122)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.2.1
  • SonarLint: 10.9.0.79423
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:136)
	at c.ij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:81)
	at c.ij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:87)
	at c.ij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:97)
	at c.ij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:346)
	at c.ij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:239)
	at c.ij.psi.impl.file.impl.FileManagerImpl.forceReload(FileManagerImpl.java:161)
	at c.ij.psi.impl.file.impl.PsiVFSListener.propertyChanged(PsiVFSListener.java:344)
	at c.ij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.java:782)
	at one.util.streamex.CollapseSpliterator.accept(CollapseSpliterator.java:152)
	at one.util.streamex.CollapseSpliterator.forEachRemaining(CollapseSpliterator.java:142)
	at one.util.streamex.AbstractStreamEx.forEach(AbstractStreamEx.java:352)
	at c.ij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.java:756)
	at c.ij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.java:746)
	at c.ij.psi.impl.file.impl.PsiVFSListener$1.after(PsiVFSListener.java:141)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:682)
	at c.ij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
	at c.ij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
	at jdk.proxy2/jdk.proxy2.$Proxy261.after(Unknown Source)
	at c.ij.util.FileContentUtilCore.lambda$reparseFiles$0(FileContentUtilCore.java:47)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:35)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:26)
	at c.ij.database.console.JdbcConsole.fireSearchPathChanged(JdbcConsole.java:633)
	at c.ij.database.console.JdbcConsole.switchSchema(JdbcConsole.java:625)
	at c.ij.database.run.actions.ChooseSchemaAction.scheduleSavedSchemaSwitch(ChooseSchemaAction.java:172)
	at c.ij.database.console.JdbcConsoleProvider.attachConsole(JdbcConsoleProvider.java:466)
	at c.ij.database.editor.DatabaseEditorHelper.restoreAttachedConsole(DatabaseEditorHelper.java:327)
	at c.ij.database.editor.DatabaseEditorHelper$1.fileOpened(DatabaseEditorHelper.java:122)

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2024.2.1
  • SonarLint: 10.9.0.79423
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:136)
	at c.ij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:81)
	at c.ij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:87)
	at c.ij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:97)
	at c.ij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:346)
	at c.ij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:239)
	at c.ij.psi.impl.file.impl.FileManagerImpl.forceReload(FileManagerImpl.java:161)
	at c.ij.psi.impl.file.impl.PsiVFSListener.propertyChanged(PsiVFSListener.java:344)
	at c.ij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.java:782)
	at one.util.streamex.CollapseSpliterator.accept(CollapseSpliterator.java:152)
	at one.util.streamex.CollapseSpliterator.forEachRemaining(CollapseSpliterator.java:142)
	at one.util.streamex.AbstractStreamEx.forEach(AbstractStreamEx.java:352)
	at c.ij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.java:756)
	at c.ij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.java:746)
	at c.ij.psi.impl.file.impl.PsiVFSListener$1.after(PsiVFSListener.java:141)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:682)
	at c.ij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
	at c.ij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
	at jdk.proxy2/jdk.proxy2.$Proxy222.after(Unknown Source)
	at c.ij.util.FileContentUtilCore.lambda$reparseFiles$0(FileContentUtilCore.java:47)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318)
	at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:35)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:26)
	at c.ij.database.console.JdbcConsole.fireSearchPathChanged(JdbcConsole.java:633)
	at c.ij.database.console.JdbcConsole.switchSchema(JdbcConsole.java:625)
	at c.ij.database.run.actions.ChooseSchemaAction.scheduleSavedSchemaSwitch(ChooseSchemaAction.java:172)
	at c.ij.database.console.JdbcConsoleProvider.attachConsole(JdbcConsoleProvider.java:466)
	at c.ij.database.editor.DatabaseEditorHelper.restoreAttachedConsole(DatabaseEditorHelper.java:327)
	at c.ij.database.editor.DatabaseEditorHelper$1.fileOpened(DatabaseEditorHelper.java:122)

Hi all,

We’ve tracked this error to a change on the IntelliJ side, but we’re having trouble digging farther than that. Can anyone provide a full stacktrace? What the auto-reporter is sending (and there’s a URL-length limit to what it can send) just isn’t quite enough.

 
Thx,
Ann

Environment:

  • Java: JetBrains s.r.o. 21.0.4
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.3 EAP
  • SonarLint: 10.9.0.79423
java.lang.Throwable: Write-unsafe context! Model changes are allowed from write-safe contexts only. Please ensure you're using invokeLater/invokeAndWait with a correct modality state (not "any"). See TransactionGuard documentation for details.
  current modality=ModalityState.NON_MODAL
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.oa.application.TransactionGuardImpl.assertWriteActionAllowed(TransactionGuardImpl.java:143)
	at c.ij.psi.impl.PsiModificationTrackerImpl.fireEvent(PsiModificationTrackerImpl.java:81)
	at c.ij.psi.impl.PsiModificationTrackerImpl.incCountersInner(PsiModificationTrackerImpl.java:87)
	at c.ij.psi.impl.PsiModificationTrackerImpl.treeChanged(PsiModificationTrackerImpl.java:97)
	at c.ij.psi.impl.PsiManagerImpl.fireEvent(PsiManagerImpl.java:346)
	at c.ij.psi.impl.PsiManagerImpl.beforeChildrenChange(PsiManagerImpl.java:239)
	at c.ij.psi.impl.file.impl.FileManagerImpl.forceReload(FileManagerImpl.java:161)
	at c.ij.psi.impl.file.impl.PsiVFSListener.propertyChanged(PsiVFSListener.kt:243)
	at c.ij.psi.impl.file.impl.PsiVFSListener.fireForGrouped(PsiVFSListener.kt:572)
	at c.ij.psi.impl.file.impl.PsiVFSListener.groupAndFire(PsiVFSListener.kt:544)
	at c.ij.psi.impl.file.impl.PsiVFSListener.after(PsiVFSListener.kt:535)
	at c.ij.psi.impl.file.impl.PsiVFSListenerKt$installGlobalListener$1.after(PsiVFSListener.kt:687)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:756)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:698)
	at c.ij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:528)
	at c.ij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
	at c.ij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:483)
	at jdk.proxy2/jdk.proxy2.$Proxy92.after(Unknown Source)
	at c.ij.util.FileContentUtilCore.lambda$reparseFiles$0(FileContentUtilCore.java:47)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:349)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:359)
	at c.ij.oa.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:349)
	at c.ij.oa.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:35)
	at c.ij.util.FileContentUtilCore.reparseFiles(FileContentUtilCore.java:26)
	at c.ij.database.console.JdbcConsole.fireSearchPathChanged(JdbcConsole.java:633)
	at c.ij.database.console.JdbcConsole.switchSchema(JdbcConsole.java:625)
	at c.ij.database.run.actions.ChooseSchemaAction.scheduleSavedSchemaSwitch(ChooseSchemaAction.java:172)
	at c.ij.database.console.JdbcConsoleProvider.attachConsole(JdbcConsoleProvider.java:466)
	at c.ij.database.editor.DatabaseEditorHelper.restoreAttachedConsole(DatabaseEditorHelper.java:333)
	at c.ij.database.editor.DatabaseEditorHelper$1.fileOpened(DatabaseEditorHelper.java:128)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:756)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:702)