IDEA 2023 not re-rendering Javadoc in Documentation Popup window after package-info.java is changed in editor

Answered

Using

IntelliJ IDEA 2023.3.2 (Community Edition)
Build #IC-233.13135.103, built on December 20, 2023
Runtime version: 17.0.9+7-b1087.9 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4076M
Cores: 12
Non-Bundled Plugins:
  IdeaVIM (2.7.5)
Kotlin: 233.13135.103-IJ

I've opened a package-info.java file in an editor tab, looks vaguely like

/**
 * This is paragraph one.  It contains a couple of sentences.
 *
 * <p>This is paragraph two.  It was added later.
 *
 * <p>Paragraph three goes on for several lines.  It was also added later.
 */
package myorg.myproject.mypackage;

Originally, only the first couple of lines were in the file.  Everything was fine.  Committed to revision control, exited and restarted the IDE several times over the course of many days, and so forth.

Today I opened the file again and added the additional text.  None of the changes are being shown in any of the rendered Javadoc displays:  the documentation popup, the full documentation tool window, the “rendered view” by clicking the gutter icon, etc.

All other editor tabs (containing normal Java source files) are fine; it's uniquely the package-info.java files.  The plural files there is correct; I've now tried opening other random package-info files elsewhere in the project and made some random changes to them, and their HTML displays are not updated either.  I have verified that the package-info.java actually on the disk is correctly being updated, so the editor is not losing data or saving in the wrong place or anything like that.

A few older bug reports came up when I was searching for this; the common blame was the old “safe write” setting, now called “Back up files before saving”.  I've disabled this but it made no difference.

0
3 comments

the “rendered view” by clicking the gutter icon

Let me clarify:  clicking the gutter icon does correctly render an up-to-date display in the editor tab, but doing this does not update any of the other views of the documentation.

If there's a “clear javadoc cache” internal to the IDE, I'd love to find it.

0

If there's a “clear javadoc cache” internal to the IDE, I'd love to find it.

And I did try the “Invalidate Caches → delete embedded browser cache” and restart, with no change.  It did spit out this error, but I don't know whether it's relevant to javadoc given that it seems to be an IdeaVim error:

java.lang.Throwable: Slow operations are prohibited on EDT. See SlowOperations.assertSlowOperationsAreAllowed javadoc.
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
	at com.intellij.util.SlowOperations.assertSlowOperationsAreAllowed(SlowOperations.java:101)
	at com.intellij.openapi.vfs.newvfs.persistent.FSRecordsImpl.update(FSRecordsImpl.java:718)
	at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.findChildInfo(PersistentFSImpl.java:603)
	at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findInPersistence(VirtualDirectoryImpl.java:154)
	at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.doFindChild(VirtualDirectoryImpl.java:137)
	at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findChild(VirtualDirectoryImpl.java:83)
	at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findChild(VirtualDirectoryImpl.java:535)
	at com.intellij.openapi.vfs.newvfs.impl.VirtualDirectoryImpl.findChild(VirtualDirectoryImpl.java:51)
	at com.intellij.openapi.vfs.newvfs.VfsImplUtil.findFileByPath(VfsImplUtil.java:56)
	at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.findFileByPath(LocalFileSystemBase.java:119)
	at com.intellij.openapi.vfs.impl.VirtualFileManagerImpl.findByNioPath(VirtualFileManagerImpl.java:362)
	at com.intellij.openapi.vfs.impl.VirtualFileManagerImpl.findFileByNioPath(VirtualFileManagerImpl.java:349)
	at com.maddyhome.idea.vim.vimscript.Executor.ensureFileIsSaved(Executor.kt:122)
	at com.maddyhome.idea.vim.vimscript.Executor.executeFile(Executor.kt:107)
	at com.maddyhome.idea.vim.api.VimscriptExecutor.executeFile$default(VimscriptExecutor.kt:38)
	at com.maddyhome.idea.vim.vimscript.services.VimRcService.executeIdeaVimRc(VimRcService.kt:137)
	at com.maddyhome.idea.vim.VimPlugin.registerIdeavimrc(VimPlugin.java:289)
	at com.maddyhome.idea.vim.VimPlugin.turnOnPlugin(VimPlugin.java:338)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:843)
	at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:463)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:75)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:67)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1436)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:124)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:44)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:695)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$12(IdeEventQueue.kt:589)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithoutImplicitRead(RwLockHolder.kt:44)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:589)
	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:72)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:355)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:354)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:793)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:354)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:349)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1014)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1014)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:349)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:848)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:391)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
0

Hello, please try to disable all non-bundled plugins, follow all steps from these guide, and if the issue persist, please attach logs ("Help | Collect logs and diagnostic data"), you can upload them here https://uploads.jetbrains.com/. 

0

Please sign in to leave a comment.