![]() i really thought there would be Undo/Redo actions there, but there was not. Then, simply follow the Install plugins from disk instructions to install it to your IDE.Ī little validation demo, FWIW: copilot-undo-redo-fix.mp4 Adding core-1.2.4-modified.jar into the archive as /github-copilot-intellij/lib/core-1.2.4-modified.jar.Deleting /github-copilot-intellij/lib/core-1.2.4.jar from the archive.Extracting core-1.2.4-modified.jar from core-1.2.Downloading that GH Copilot nightly (, which I found on the plugin's releases page). ![]() zip is way to big to upload here, but if you're okay running some non-source bytecode from a stranger, you can install the fix by: ![]() So, I wrapped that call with a try/catch on RuntimeException, and returned null if thrown. I opened it up in Recaf and discovered the offending line is calling FileEditorManagerImpl.getSelectedTextEditor(), but it's perfectly okay with getting a null value, too. zip ( ) and found the offending class, CopilotCommandListener, inside /github-copilot-intellij/lib/core-1.2.4.jar at /com/github/copilot/editor/CopilotCommandListener.class. Then, I popped open the latest nightly copilot. The nitty gritty is: I downloaded Recaf for decompiling/recompiling. ![]() Well, I find life without Copilot very tedious, and I definitely can't live without undo/redo, so I figured out how to edit the offending. ![]() : Cannot invoke (class=CopilotCommandListener, method=undoTransparentActionStarted, topic=CommandListener)Īt .(MessageBusImpl.kt:657)Īt .(MessageBusImpl.kt:482)Īt .$intellij_platform_core(CompositeMessageBus.kt:294)Īt .(MessageBusImpl.kt:442)Īt jdk.proxy1/jdk.proxy1.$Proxy95.undoTransparentActionStarted(Unknown Source)Īt .(CoreCommandProcessor.java:365)Īt .ex.LineStatusTrackerBase$Companion.updateDocument(LineStatusTrackerBase.kt:291)Īt .ex.LineStatusTrackerBase.updateDocument(LineStatusTrackerBase.kt:133)Īt .ex.LineStatusTrackerBase.updateDocument(LineStatusTrackerBase.kt:127)Īt .ex.tBaseRevisionContent(LineStatusTrackerBase.kt:79)Īt .ex.tBaseRevisionContent(LineStatusTracker.kt:111)Īt .ex.tBaseRevision(PartialLocalLineStatusTracker.kt:215)Īt .(LineStatusTrackerManager.kt:1422)Īt .impl.LineStatusTrackerManager$MyBaseRevisionLoader.handleSuccess(LineStatusTrackerManager.kt:606)Īt .impl.LineStatusTrackerManager$MyBaseRevisionLoader.handleResult(LineStatusTrackerManager.kt:551)Īt .impl.LineStatusTrackerManager$MyBaseRevisionLoader.handleResult(LineStatusTrackerManager.kt:493)Īt .impl.SingleThreadLoader$handleSingleRequest$1.invoke(LineStatusTrackerManager.kt:1291)Īt .impl.SingleThreadLoader$handleSingleRequest$1.invoke(LineStatusTrackerManager.kt:1285)Īt .ActionsKt.invokeLater$lambda$5(actions.kt:58)Īt .TransactionGuardImpl$1.run(TransactionGuardImpl.java:194)Īt .(ApplicationImpl.java:831)Īt .impl.ApplicationImpl$3.run(ApplicationImpl.java:456)Īt .(FlushQueue.java:79)Īt .(FlushQueue.java:122)Īt .(FlushQueue.java:41)Īt sktop/.dispatch(InvocationEvent.java:318)Īt sktop/(EventQueue.java:788)Īt sktop/$3.run(EventQueue.java:739)Īt sktop/$3.run(EventQueue.java:731)Īt java.base/(AccessController.java:399)Īt java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)Īt sktop/(EventQueue.java:758)Īt .defaultDispatchEvent(IdeEventQueue.kt:666)Īt ._dispatchEvent$lambda$7(IdeEventQueue.kt:570)Īt .(ApplicationImpl.java:1442)Īt ._dispatchEvent(IdeEventQueue.kt:570)Īt .access$_dispatchEvent(IdeEventQueue.kt:68)Īt $dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)Īt $dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)Īt .(CoreProgressManager.java:787)Īt $dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)Īt $dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)Īt .performActivity$lambda$1(IdeEventQueue.kt:994)Īt .TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)Īt .performActivity(IdeEventQueue.kt:994)Īt .dispatchEvent$lambda$4(IdeEventQueue.kt:343)Īt .dispatchEvent(IdeEventQueue.kt:385)Īt sktop/(EventDispatchThread.java:207)Īt sktop/(EventDispatchThread.java:128)Īt sktop/(EventDispatchThread.java:117)Īt sktop/(EventDispatchThread.java:113)Īt sktop/(EventDispatchThread.java:105)Īt sktop/(EventDispatchThread.java:92)Ĭaused by: kotlin.UninitializedPropertyAccessException: lateinit property mainSplitters has not been initializedĪt .(FileEditorManagerImpl.kt:133)Īt .(FileEditorManagerImpl.kt:525)Īt .(FileEditorManagerImpl.kt:1384)Īt .(FileEditorManagerImpl.kt:1370)Īt .CopilotCommandListener.getSelectedEditor(CopilotCommandListener.java:147)Īt .CopilotCommandListener.undoTransparentActionStarted(CopilotCommandListener.java:102)Īt .(MessageBusImpl.kt:677)Īt .(MessageBusImpl.kt:644)īeta Was this translation helpful? Give feedback. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |