yannick-cw / notionfy

Syncing kindle highlights to notion
BSD 3-Clause "New" or "Revised" License
138 stars 7 forks source link

UnsupportedFeatureError #12

Closed sudohainguyen closed 3 years ago

sudohainguyen commented 3 years ago

I'm encountering a problem when trying to sync for the first time. An exception came up with a message as below

"Exception in thread "main" com.oracle.svm.core.jdk.UnsupportedFeatureError: Invoke with MethodHandle argument could not be reduced to at most a single call or single field access. The method handle must be a compile time constant, e.g., be loaded from a static final field. Method that contains the method handle invocation: java.lang.invoke.LambdaForm$MH/150595542.invoke_MT(Object, Object)"

I'm using Ubuntu 20.04 OS and I already make it executable using chmod.

yannick-cw commented 3 years ago

Thanks for reporting, maybe you are the first Linux user :) I'll have a look

yannick-cw commented 3 years ago

I updated some version, maybe you can try this release: https://github.com/yannick-cw/notionfy/releases/tag/0.2.3

I am not very confident this works, but if it might save me a lot of work, otherwise I'll have to dig a bit :)

sudohainguyen commented 3 years ago

Seems like the problem is still unsolved, but keep working! I really appreciate this project :)

yannick-cw commented 3 years ago

This seems to be due to: https://github.com/oracle/graal/issues/2214

Looking for a fix

yannick-cw commented 3 years ago

Could you try out 0.2.5 https://github.com/yannick-cw/notionfy/releases/tag/0.2.5?

sudohainguyen commented 3 years ago

Thanks a lot! Seems like it works smoothly in version 0.2.5