Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - java.lang.NoSuchMethodError #143

Closed
johnwatsondev opened this issue Jun 1, 2017 · 9 comments
Closed

[BUG] - java.lang.NoSuchMethodError #143

johnwatsondev opened this issue Jun 1, 2017 · 9 comments

Comments

@johnwatsondev
Copy link

johnwatsondev commented Jun 1, 2017

Env

MacOS Sierra Version 10.12.5

Android Studio 2.3.2
Build #AI-162.3934792, built on April 21, 2017
JRE: 1.8.0_112-release-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Installed ideaVim didn't config the f F key

Log

kotlin.jvm.internal.FunctionReference.<init>(ILjava/lang/Object;)V
java.lang.NoSuchMethodError: kotlin.jvm.internal.FunctionReference.<init>(ILjava/lang/Object;)V
	at com.johnlindquist.acejump.KeyboardHandler$uninstallCustomShortCutHandler$1$1.<init>(KeyboardHandler.kt)
	at com.johnlindquist.acejump.KeyboardHandler.uninstallCustomShortCutHandler(KeyboardHandler.kt:168)
	at com.johnlindquist.acejump.KeyboardHandler.access$uninstallCustomShortCutHandler(KeyboardHandler.kt:35)
	at com.johnlindquist.acejump.KeyboardHandler$reset$1.invoke(KeyboardHandler.kt:205)
	at com.johnlindquist.acejump.KeyboardHandler.reset(KeyboardHandler.kt:212)
	at com.johnlindquist.acejump.ui.AceUI.setEditor(AceUI.kt:30)
	at com.johnlindquist.acejump.AceAction.actionPerformed(AceAction.kt:16)
	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:197)
	at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
	at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:156)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:211)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:587)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$2(IdeKeyEventDispatcher.java:634)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:633)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:477)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:609)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:387)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
@breandan
Copy link
Collaborator

breandan commented Jun 1, 2017

This looks like a platform version issue. Could Android Studio be missing unregisterCustomShortcutSet() from the IntelliJ Platform SDK? Please update if you can reproduce on a recent version (ie. AS v3.0+).

@johnwatsondev Thank you for reporting!

@johnwatsondev
Copy link
Author

Thanks for a reply. I will give a try and report here. :)

@johnwatsondev
Copy link
Author

johnwatsondev commented Jun 2, 2017

@breandan I have tested in AS Preview 3.0 Canary 2.

IDE

Android Studio 3.0 Canary 2
Build #AI-171.4041253, built on May 25, 2017
JRE: 1.8.0_112-release-b736 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.5

Plugin

IdeaVim 0.48
AceJump 3.2.3

Behaviour

It didn't show anything when I try to activate the AceJump Shortcut.

BTW: If you need some other info please let me know. :)

@breandan
Copy link
Collaborator

We are now bundling a fixed version of Kotlin in the plugin, please let me know if this error still occurs after updating AceJump. Thanks!

@johnwatsondev
Copy link
Author

johnwatsondev commented Jun 11, 2017

Log

kotlin.jvm.internal.FunctionReference.<init>(ILjava/lang/Object;)V
java.lang.NoSuchMethodError: kotlin.jvm.internal.FunctionReference.<init>(ILjava/lang/Object;)V
	at com.johnlindquist.acejump.KeyboardHandler$uninstallCustomShortCutHandler$1$1.<init>(KeyboardHandler.kt)
	at com.johnlindquist.acejump.KeyboardHandler.uninstallCustomShortCutHandler(KeyboardHandler.kt:165)
	at com.johnlindquist.acejump.KeyboardHandler.access$uninstallCustomShortCutHandler(KeyboardHandler.kt:35)
	at com.johnlindquist.acejump.KeyboardHandler$reset$1.invoke(KeyboardHandler.kt:200)
	at com.johnlindquist.acejump.KeyboardHandler.reset(KeyboardHandler.kt:207)
	at com.johnlindquist.acejump.KeyboardHandler$resetListener$1.caretPositionChanged(KeyboardHandler.kt:128)
	at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99)
	at com.intellij.util.EventDispatcher.access$200(EventDispatcher.java:35)
	at com.intellij.util.EventDispatcher$2.invoke(EventDispatcher.java:79)
	at com.sun.proxy.$Proxy28.caretPositionChanged(Unknown Source)
	at com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:517)
	at com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:665)
	at com.intellij.openapi.editor.impl.CaretImpl.lambda$moveToVisualPosition$4(CaretImpl.java:600)
	at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:437)
	at com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:600)
	at com.intellij.openapi.editor.impl.CaretModelImpl.moveToVisualPosition(CaretModelImpl.java:130)
	at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.processMousePressed(EditorImpl.java:6001)
	at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.lambda$runMousePressedCommand$0(EditorImpl.java:5811)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129)
	at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.runMousePressedCommand(EditorImpl.java:5816)
	at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mousePressed(EditorImpl.java:5745)
	at java.awt.Component.processMouseEvent(Component.java:6530)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6298)
	at java.awt.Container.processEvent(Container.java:2236)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
	at java.awt.Container.dispatchEventImpl(Container.java:2280)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:795)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:627)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:387)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

IDE

Android Studio 2.3.3
Build #AI-162.4069837, built on June 6, 2017
JRE: 1.8.0_112-release-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Plugin

AceJump 3.2.6
IdeaVim 0.48

@johnwatsondev
Copy link
Author

johnwatsondev commented Jun 11, 2017

@breandan Hello, should I try v3.0.0-beta for AS stable version and canary 3 ?

@esafirm
Copy link

esafirm commented Jun 19, 2017

Also reproducible in AceJump 3.2.7 with Android Studio 2.3.3

My test:
Android Studio 3 with AceJump 3.2.4 ✅
Android Studio 3 with AceJump 3.2.7 ✅
Android Studio 2.3.3 with AceJump 3.2.7 ❌

@breandan
Copy link
Collaborator

@esafirm thanks for this, really helpful. According to @johnwatsondev, it does not work with AS 3.0. Can anyone else who has issues with Android Studio report their IDE and plugin version? Thanks.

@breandan
Copy link
Collaborator

Should be fixed. Please feel to reopen if issue persists after updating to AceJump 3.3.0+, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants