{"action":"opened","issue":{"url":"https://api.github.com/repos/walterhiggins/ScriptCraft/issues/396","repository_url":"https://api.github.com/repos/walterhiggins/ScriptCraft","labels_url":"https://api.github.com/repos/walterhiggins/ScriptCraft/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/walterhiggins/ScriptCraft/issues/396/comments","events_url":"https://api.github.com/repos/walterhiggins/ScriptCraft/issues/396/events","html_url":"https://github.com/walterhiggins/ScriptCraft/issues/396","id":386593829,"node_id":"MDU6SXNzdWUzODY1OTM4Mjk=","number":396,"title":"Error \"Can't unambiguously select between fixed arity signatures\" when trying to run v13.2","user":{"login":"spustlik","id":1135561,"node_id":"MDQ6VXNlcjExMzU1NjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1135561?v=4","gravatar_id":"","url":"https://api.github.com/users/spustlik","html_url":"https://github.com/spustlik","followers_url":"https://api.github.com/users/spustlik/followers","following_url":"https://api.github.com/users/spustlik/following{/other_user}","gists_url":"https://api.github.com/users/spustlik/gists{/gist_id}","starred_url":"https://api.github.com/users/spustlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spustlik/subscriptions","organizations_url":"https://api.github.com/users/spustlik/orgs","repos_url":"https://api.github.com/users/spustlik/repos","events_url":"https://api.github.com/users/spustlik/events{/privacy}","received_events_url":"https://api.github.com/users/spustlik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-02T20:01:56Z","updated_at":"2018-12-02T20:01:56Z","closed_at":null,"author_association":"NONE","body":"When i tried to compile and run scriptcraft with v 13.2, it throw an error (see later)\r\nI tried to do some more investigation but without success - it is from lib/scriptcraft.js which is requiring js-patch and unit-testing setTimeout method.\r\n\r\nAny possibility to fix it ?\r\nThank you...\r\n\r\n```\r\n[21:00:50 INFO]: [scriptcraft] Enabling scriptcraft v3.3.0-2017-10-15\r\n[21:00:52 ERROR]: [scriptcraft] Error evaluating scriptcraft\\lib\\scriptcraft.js: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(org.bukkit.plugin.Plugin, java.util.function.Consumer, long), (org.bukkit.plugin.Plugin, java.lang.Runnable, long)] of the method org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.runTaskLater for argument types [org.scriptcraftjs.bukkit.ScriptCraftPlugin, jdk.nashorn.internal.runtime.ScriptFunction, java.lang.Double]\r\n[21:00:52 WARN]: java.lang.NoSuchMethodException: Can't unambiguously select between fixed arity signatures [(org.bukkit.plugin.Plugin, java.util.function.Consumer, long), (org.bukkit.plugin.Plugin, java.lang.Runnable, long)] of the method org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.runTaskLater for argument types [org.scriptcraftjs.bukkit.ScriptCraftPlugin, jdk.nashorn.internal.runtime.ScriptFunction, java.lang.Double]\r\n[21:00:52 WARN]:        at jdk.internal.dynalink.beans.OverloadedMethod.throwAmbiguousMethod(OverloadedMethod.java:225)\r\n[21:00:52 WARN]:        at jdk.nashorn.internal.scripts.Script$Recompilation$32$158AI$\\^eval\\_.L:1#bukkitSetTimeout(<eval>:5)\r\n[21:00:52 WARN]:        at jdk.nashorn.internal.scripts.Script$Recompilation$31$1905A$\\^eval\\_.L:1#exports#unitTest(<eval>:57)\r\n[21:00:52 WARN]:        at jdk.nashorn.internal.scripts.Script$Recompilation$5$16346AAA$\\^eval\\_.__onEnable(<eval>:754)\r\n[21:00:52 WARN]:        at jdk.nashorn.internal.scripts.Script$Recompilation$2$1583AAA$\\^eval\\_.L:5#__scboot(<eval>:90)\r\n[21:00:52 WARN]:        at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:643)\r\n[21:00:52 WARN]:        at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)\r\n[21:00:52 WARN]:        at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)\r\n[21:00:52 WARN]:        at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)\r\n[21:00:52 WARN]:        at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386)\r\n[21:00:52 WARN]:        at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190)\r\n[21:00:52 WARN]:        at org.scriptcraftjs.bukkit.ScriptCraftPlugin.onEnable(ScriptCraftPlugin.java:38)\r\n[21:00:52 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:254)\r\n[21:00:52 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:339)\r\n[21:00:52 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403)\r\n[21:00:52 WARN]:        at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:434)\r\n[21:00:52 WARN]:        at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:348)\r\n[21:00:52 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:584)\r\n[21:00:52 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:546)\r\n[21:00:52 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:424)\r\n[21:00:52 WARN]:        at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:294)\r\n[21:00:52 WARN]:        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:702)\r\n[21:00:52 WARN]:        at java.lang.Thread.run(Unknown Source)\r\n[21:00:52 ERROR]: [scriptcraft] Can't unambiguously select between fixed arity signatures [(org.bukkit.plugin.Plugin, java.util.function.Consumer, long), (org.bukkit.plugin.Plugin, java.lang.Runnable, long)] of the method org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.runTaskLater for argument types [org.scriptcraftjs.bukkit.ScriptCraftPlugin, jdk.nashorn.internal.runtime.ScriptFunction, java.lang.Double]\r\n\r\n```"}}
{"actor":{"display_login":"spustlik"}}