No Reproducable Error

Answered

Hi! Unfortunately i must often fix my Plugin "Git Scope" after releases from JetBrains :-/.

The Problem is: I cannot even Reproduce the Issue under development environment.

Its Reproducable "in Production" with PHPStorm:

PhpStorm 2020.3.1
Build #PS-203.6682.180, built on December 30, 2020
Licensed to Michael Wölk
Subscription is active until January 14, 2021.
Runtime version: 11.0.9.1+11-b1145.63 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-58-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1916M
Cores: 8
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: Shifter, com.intellij.ideolog, Git Scope, com.kalessil.phpStorm.phpInspectionsEA, ru.adelf.idea.dotenv, com.jetbrains.ChooseRuntime
Current Desktop: ubuntu:GNOME

 

But not in Development:

PhpStorm 2020.3.1
Build #PS-203.6682.180, built on December 30, 2020
Licensed to Michael Wölk
Subscription is active until January 14, 2021.
Runtime version: 11.0.9.1+11-b1145.63 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-58-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 512M
Cores: 8
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: Git Scope
Current Desktop: ubuntu:GNOME

 

The Issue is:

java.lang.NoSuchFieldError: myTracker
at implementation.lineStatusTracker.MyLineStatusTrackerManager$MyLineStatusMarkerRenderer.access$000(MyLineStatusTrackerManager.java:39)
at implementation.lineStatusTracker.MyLineStatusTrackerManager$MyLineStatusMarkerRenderer$MyRollbackLineStatusRangeAction.actionPerformed(MyLineStatusTrackerManager.java:69)
at com.intellij.openapi.vcs.ex.LineStatusMarkerPopupRenderer$RangeMarkerAction.actionPerformed(LineStatusMarkerPopupRenderer.java:220)
at implementation.lineStatusTracker.MyLineStatusTrackerManager$MyLineStatusMarkerRenderer$MyRollbackLineStatusRangeAction.actionPerformed(MyLineStatusTrackerManager.java:57)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:281)
at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:209)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:177)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:160)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:477)
at java.desktop/java.awt.Component.processEvent(Component.java:6417)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:976)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:911)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:840)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:454)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:773)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:453)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:822)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:507)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

 

I Execute this with Gradle like this:

intellij {
...
version 'LATEST-EAP-SNAPSHOT'
alternativeIdePath '/snap/phpstorm/current'
}
3 comments
Comment actions Permalink

Please try and compile against the exact same version as your debug IDE instance. Compiling against "LATEST EAP" is not recommended in general anyway.

0
Comment actions Permalink

The field type was changed. This breaks binary compatibility, but not the source compatibility. Thus reproduction issues.

>i must often fix my Plugin "Git Scope" after releases from JetBrains
Yes, some breakages are unavoidable if plugin digs deep into platform implementation details.

0
Comment actions Permalink

Could Reproduce with one of the previous version, but not with the latest. The Solution was simply to build a newer build on top of the latest sources

0

Please sign in to leave a comment.