New sub menu is not showing
Grinseteddy opened this issue · 6 comments
Describe the bug
After installation of the plug in, the New context menu on a folder in the project structure is only shown if you hovering with your mouse over it. The sub menu on file is not shown at all.
How to Reproduce
- Install Async plug in to intelliJ
- Go to a folder in your project structure
- Call the context menu with the right mouse key
- Only an empty gray rectangle is shown
- Hovering with your mouse over it and the entries are shown
- Select "File" - the according sub menu is not shown
Expected behavior
The file sub menu is shown. The entry "Async" is shown and can be selected to create a new file.
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
@Grinseteddy, hi!
Which version of IDEA do you use and with which theme?
I checked on 2023.2.4 (Ultimate Edition) with both ui - new and old
IntelliJ IDEA 2023.2.4 (Ultimate Edition)
Build #IU-232.10203.10, built on October 25, 2023
Runtime version: 17.0.8.1+7-b1000.32 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.6
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
net.sf.opk.avro-schema-support (213.5.2)
com.asyncapi.plugin.idea (2.3.0+jre17)
com.intellij.spring.shell (232.8660.142)
com.intellij.mermaid (0.0.14+IJ.232)
Dart (232.9559.10)
io.flutter (76.2.4)
Kotlin: 232-1.9.0-IJ10203.10
https://github.com/asyncapi/jasyncapi-idea-plugin/assets/3388414/b653e2ff-7720-4fbe-96b5-7f91be67da4d
https://github.com/asyncapi/jasyncapi-idea-plugin/assets/3388414/2625830d-d897-4310-b431-4c31c29eedac
https://github.com/asyncapi/jasyncapi-idea-plugin/assets/3388414/2f481c5e-51e6-46e3-aad8-40015721e984
upd:
Reproduced problem in 2023.1.5 (Ultimate Edition) with both ui - new and old
IntelliJ IDEA 2023.1.5 (Ultimate Edition)
Build #IU-231.9392.1, built on July 25, 2023
Runtime version: 17.0.7+10-b829.16 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.6
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Non-Bundled Plugins:
com.asyncapi.plugin.idea (2.3.0+jre17)
org.jetbrains.kotlin (231-1.9.20-release-507-IJ8109.175)
Kotlin: 231-1.9.20-release-507-IJ8109.175
upd:
2023-11-08 03:37:49,236 [ 49751] SEVERE - #c.i.o.f.i.MergingUpdateChannel - attribute.malformed [/icons/asyncapi.svg, -1, linearGradient, gradientUnits, userSpaceOnxUse]
org.apache.batik.bridge.BridgeException: attribute.malformed [/icons/asyncapi.svg, -1, linearGradient, gradientUnits, userSpaceOnxUse]
at org.apache.batik.bridge.SVGUtilities.parseCoordinateSystem(SVGUtilities.java:1045)
at org.apache.batik.bridge.SVGLinearGradientElementBridge.buildGradient(SVGLinearGradientElementBridge.java:115)
at org.apache.batik.bridge.AbstractSVGGradientElementBridge.createPaint(AbstractSVGGradientElementBridge.java:111)
at org.apache.batik.bridge.PaintServer.convertURIPaint(PaintServer.java:373)
at org.apache.batik.bridge.PaintServer.convertPaint(PaintServer.java:273)
at org.apache.batik.bridge.PaintServer.convertFillPaint(PaintServer.java:242)
at org.apache.batik.bridge.PaintServer.convertFillAndStroke(PaintServer.java:160)
at org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(SVGShapeElementBridge.java:120)
at org.apache.batik.bridge.SVGRectElementBridge.createShapePainter(SVGRectElementBridge.java:157)
at org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(SVGShapeElementBridge.java:94)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:209)
at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:156)
at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:81)
at com.intellij.ui.svg.SvgTranscoder$Companion.createImage(SvgTranscoder.kt:86)
at com.intellij.ui.svg.SvgTranscoder$Companion.createImage$default(SvgTranscoder.kt:75)
at com.intellij.util.SVGLoaderKt.loadAndCache(SVGLoader.kt:385)
at com.intellij.util.SVGLoaderKt.access$loadAndCache(SVGLoader.kt:1)
at com.intellij.util.SVGLoader.loadFromClassResource(SVGLoader.kt:109)
at com.intellij.util.ImageLoaderKt.loadByDescriptorWithoutCache(ImageLoader.kt:580)
at com.intellij.util.ImageLoaderKt.loadByDescriptor(ImageLoader.kt:542)
at com.intellij.util.ImageLoaderKt.access$loadByDescriptor(ImageLoader.kt:1)
at com.intellij.util.ImageLoader.loadImage(ImageLoader.kt:86)
at com.intellij.openapi.util.ImageDataByUrlLoader.loadImage(ImageDataByUrlLoader.java:87)
at com.intellij.openapi.util.CachedImageIcon.loadImage$intellij_platform_util_ui(CachedImageIcon.kt:269)
at com.intellij.openapi.util.ScaledIconCache.getOrScaleIcon(ScaledIconCache.kt:46)
at com.intellij.openapi.util.CachedImageIcon.getRealIcon$intellij_platform_util_ui(CachedImageIcon.kt:151)
at com.intellij.openapi.util.CachedImageIcon.getIconWidth(CachedImageIcon.kt:104)
at com.intellij.ui.LayeredIcon.updateSize(LayeredIcon.java:293)
at com.intellij.ui.LayeredIcon.setIcon(LayeredIcon.java:164)
at com.intellij.ui.LayeredIcon.setIcon(LayeredIcon.java:139)
at com.intellij.ui.tabs.impl.TabLabel.setIcon(TabLabel.java:476)
at com.intellij.ui.tabs.impl.TabLabel.setIcon(TabLabel.java:457)
at com.intellij.ui.tabs.impl.JBTabsImpl.updateIcon(JBTabsImpl.java:1852)
at com.intellij.ui.tabs.impl.JBTabsImpl.propertyChange(JBTabsImpl.java:1763)
at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
at com.intellij.ui.tabs.TabInfo.setIcon(TabInfo.java:153)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters.updateFileIconImmediately$intellij_platform_ide_impl(EditorsSplitters.kt:410)
at com.intellij.openapi.fileEditor.impl.EditorsSplitters$doUpdateFileIcon$2.invokeSuspend(EditorsSplitters.kt:419)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at com.intellij.openapi.application.impl.DispatchedRunnable.run(DispatchedRunnable.kt:35)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)
at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:788)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)
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:758)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:571)
at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1444)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:571)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)
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)
upd:
Typo in gradientUnits
name - userSpaceOnxUse
instead of userSpaceOnUse
affects only old version
Looks like this comments may be related:
When I install the plug in, my IDE doesn't work as expected. The sub menu (New - file format) isn't opened anymore. I like the definition of event-driven APIs with Async API - but so it doesn't work. IntelliJ IDEA 2023.1.5 (Ultimate Edition)
https://plugins.jetbrains.com/plugin/15673-asyncapi/reviews#review=91710
the plug-in block file->new
https://plugins.jetbrains.com/plugin/15673-asyncapi/reviews#review=91383
@Grinseteddy please check on your side - https://github.com/asyncapi/jasyncapi-idea-plugin/releases/tag/2.3.1%2Bjre17
Fixed in 2.3.1