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

java.lang.NoSuchMethodError: kotlin.jvm.internal.FunctionReference.<init>(ILjava/lang/Object;)V #200

Closed
MinRam opened this issue Oct 19, 2017 · 4 comments
Labels

Comments

@MinRam
Copy link

MinRam commented Oct 19, 2017

It throws a error when i start to use AceJump,and I alse see the same error from #160 , #149 , #143 ,
Does it throws error due to my some wrong operatrions?

the Information of IDE below:

  • AceJump 3.4.2
  • Android Studio 2.3.3
  • Build #AI-162.4069837, built on June 6, 2017
  • JRE: 1.8.0_112-release-b06 amd64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
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.view.Canvas$storeBounds$1.<init>(Canvas.kt)
	at com.johnlindquist.acejump.view.Canvas.storeBounds(Canvas.kt:44)
	at com.johnlindquist.acejump.view.Canvas.bindCanvas(Canvas.kt:32)
	at com.johnlindquist.acejump.control.Handler.configureEditor(Handler.kt:76)
	at com.johnlindquist.acejump.control.Handler.start(Handler.kt:108)
	at com.johnlindquist.acejump.control.Handler.access$start(Handler.kt:32)
	at com.johnlindquist.acejump.control.Handler$activate$1.invoke(Handler.kt:52)
	at com.johnlindquist.acejump.control.Handler$activate$1.invoke(Handler.kt:32)
	at com.johnlindquist.acejump.search.AceUtilKt$sam$Runnable$b83511ca.run(AceUtil.kt)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:626)
	at com.johnlindquist.acejump.search.AceUtilKt.runAndWait(AceUtil.kt:28)
	at com.johnlindquist.acejump.control.Handler.activate(Handler.kt:52)
	at com.johnlindquist.acejump.control.AceAction.actionPerformed(AceAction.kt:26)
	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)

Thanks for debug~

@andrewvmail
Copy link

am also getting this on phpstorm 10, updated to 2018 and its fine ...

@breandan breandan mentioned this issue Aug 13, 2018
@breandan
Copy link
Collaborator

This error is caused by the following line:

this::offsetToLogicalPosition.let {

Older platform versions do not support the method reference syntax (introduced in JDK 1.8). The Kotlin compiler really should handle this by translating :: to Java 7 compatible bytecode when targteting older versions. Or maybe it does and we're not targeting the right bytecode version in the buildscript... ☹️

@zeus2615
Copy link

I have met this bug also.
Chose to degrade acejump to 3.4.0 to fix it temporarily.

@breandan
Copy link
Collaborator

This issue is caused by an outdated version of the Kotlin runtime bundled with older platform versions. Will bump the minimum required version, recommend updating to at least a 2018.2 release or greater in order to run recent versions of AceJump.

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

No branches or pull requests

4 participants