okkero / Skedule

Use the BukkitScheduler with coroutines - for plugin developers using Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when trying to schedule a task

Redrield opened this issue · comments

Trace: https://hastebin.com/xubufixiza.md

Relevant line: pl.sever.scheduler.schedule(pl, SynchronizationContext.ASYNC) { } (pl is my plugin instance

Skedule requires that you have kotlinx.coroutines available in the classpath at runtime. I suppose I should have mentioned that in the readme as well

coroutines is in the classpath. I use coroutines in the enable method to create my database

I'm on vacation without a laptop right now, so until I get home on sunday there is not really much I can do.

It does sound a bit strange, however. Because I run Skedule without a problem, having both the kotlin 1.1 stdlib and kotlinx.coroutines somewhere in the classpath as the server is running.

I've narrowed the issue down. Something available in kotlinx.coroutines 0.12 that you utilize was removed in future versions, thus the NoSuchMethodError. Until a fix is available I've found that syncing my version of coroutines with that in the project has solved it

Okay. Sorry for the inconvenience, and thank you for helping me debug that. I will see to fixing it ASAP when I get home