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

Skript Parse Error #661

Closed
andrewjunggg opened this issue Jun 13, 2017 · 8 comments
Closed

Skript Parse Error #661

andrewjunggg opened this issue Jun 13, 2017 · 8 comments
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.

Comments

@andrewjunggg
Copy link

andrewjunggg commented Jun 13, 2017

[20:11:10] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[20:11:10] [Server thread/ERROR]: #!#! Could not load joinmsg.sk
[20:11:10] [Server thread/ERROR]: #!#! 
[20:11:10] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[20:11:10] [Server thread/ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[20:11:10] [Server thread/ERROR]: #!#! and check whether this error has already been reported.
[20:11:10] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[20:11:10] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[20:11:10] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[20:11:10] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[20:11:10] [Server thread/ERROR]: #!#! 
[20:11:10] [Server thread/ERROR]: #!#! Stack trace:
[20:11:10] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[20:11:10] [Server thread/ERROR]: #!#!     at java.lang.Class.isAssignableFrom(Native Method)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:324)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:445)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1159)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:219)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:174)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:319)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:445)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1159)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1150)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:219)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:174)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:659)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:450)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:243)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:267)
[20:11:10] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:187)
[20:11:10] [Server thread/ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[20:11:10] [Server thread/ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[20:11:10] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:644)
[20:11:10] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:630)
[20:11:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:443)
[20:11:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[20:11:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678)
[20:11:10] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576)
[20:11:10] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[20:11:10] [Server thread/ERROR]: #!#! 
[20:11:10] [Server thread/ERROR]: #!#! Version Information:
[20:11:10] [Server thread/ERROR]: #!#!   Skript: 2.2-dev29
[20:11:10] [Server thread/ERROR]: #!#!   Bukkit: 1.12-R0.1-SNAPSHOT
[20:11:10] [Server thread/ERROR]: #!#!   Minecraft: 1.12
[20:11:10] [Server thread/ERROR]: #!#!   Java: 1.8.0_72 (Java HotSpot(TM) 64-Bit Server VM 25.72-b15)
[20:11:10] [Server thread/ERROR]: #!#!   OS: Linux amd64 3.16.0-4-amd64
[20:11:10] [Server thread/ERROR]: #!#! 
[20:11:10] [Server thread/ERROR]: #!#! Running CraftBukkit: false
[20:11:10] [Server thread/ERROR]: #!#! 
[20:11:10] [Server thread/ERROR]: #!#! Current node: set {_dif} to difference between "%{_u}%" parsed as number and "%{_st}%" parsed as number (joinmsg.sk, line 20)
[20:11:10] [Server thread/ERROR]: #!#! Current item: null
[20:11:10] [Server thread/ERROR]: #!#! 
[20:11:10] [Server thread/ERROR]: #!#! Thread: Server thread
[20:11:10] [Server thread/ERROR]: #!#! 
[20:11:10] [Server thread/ERROR]: #!#! End of Error.

I don't know how to read the error, but it saying Parse.

@Snow-Pyon
Copy link

Snow-Pyon commented Jun 13, 2017

One of the variables might be null (<none>), do some debug, like:

broadcast "%{_u} parsed as number%" and "%{_st}% parsed as number%"

But shouldn't it just do nothing instead of throw a NullPointer @bensku?

@TheBentoBox
Copy link
Member

This may also be due to the fix for using difference between on two dates stored in variables.

@bensku bensku closed this as completed Jun 14, 2017
@bensku bensku reopened this Jun 14, 2017
@bensku
Copy link
Member

bensku commented Jun 14, 2017

Oops, clicked wrong button on mobile. Anyway, it is quite likely that I somehow caused this by fixing variable comparisions. Probably easy to fix.

@TheBentoBox TheBentoBox added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jun 24, 2017
@bensku bensku added this to the 2.3 milestone Sep 20, 2017
@ghost
Copy link

ghost commented Nov 22, 2017

Hi everybody!

I think I get pretty much the same error on the dev32b, but I suspect a problem with Skellett? My errors (only two) are concerning mysql result (but the other results in my code work well... O_o)

[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! [Skript] Severe Error:
[11:22:32 ERROR]: #!#! Could not load 01_MySQL.sk
[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! Something went horribly wrong with Skript.
[11:22:32 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[11:22:32 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[11:22:32 ERROR]: #!#! Here is full list of them:
[11:22:32 ERROR]: #!#! TuSKe (github.com/Tuke-Nuke/TuSKe) skUtilities (https://tim740.github.io/) SkStuff MundoSK (https://forums.skunity.com/resources/mundosk.69/) SkQuery Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/)
[11:22:32 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[11:22:32 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[11:22:32 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[11:22:32 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[11:22:32 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[11:22:32 ERROR]: #!#! Only if the author tells you to do so, report it as Skript issue (url below)
[11:22:32 ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! Stack trace:
[11:22:32 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for resultset
[11:22:32 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1786)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1753)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1501)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1474)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1513)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1447)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1447)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:223)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:178)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:491)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:808)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1517)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1513)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:223)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:178)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:919)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:52)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:134)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:584)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:347)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:359)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:289)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:319)
[11:22:32 ERROR]: #!#!     at ch.njol.skript.Skript$2.run(Skript.java:409)
[11:22:32 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[11:22:32 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353)
[11:22:32 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:738)
[11:22:32 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405)
[11:22:32 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678)
[11:22:32 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576)
[11:22:32 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! Version Information:
[11:22:32 ERROR]: #!#!   Skript: 2.2-dev32b
[11:22:32 ERROR]: #!#!   Bukkit: 1.12-R0.1-SNAPSHOT
[11:22:32 ERROR]: #!#!   Minecraft: 1.12
[11:22:32 ERROR]: #!#!   Java: 1.8.0_77 (Java HotSpot(TM) 64-Bit Server VM 25.77-b03)
[11:22:32 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! Running CraftBukkit: false
[11:22:32 ERROR]: #!#! Running Spigot (or compatible): true
[11:22:32 ERROR]: #!#! Running Paper (or compatible): false
[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! Current node: set {_columnlist::*} to mysql integer "value" in {_result} (01_MySQL.sk, line 11)
[11:22:32 ERROR]: #!#! Current item: null
[11:22:32 ERROR]: #!#! Thread: Server thread
[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! Language: english
[11:22:32 ERROR]: #!#! Link parse mode: DISABLED
[11:22:32 ERROR]: #!#!
[11:22:32 ERROR]: #!#! End of Error.
[11:22:32 ERROR]: #!#!
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! [Skript] Severe Error:
[11:22:47 ERROR]: #!#! Could not load 19_Colony.sk
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! Something went horribly wrong with Skript.
[11:22:47 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[11:22:47 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[11:22:47 ERROR]: #!#! Here is full list of them:
[11:22:47 ERROR]: #!#! TuSKe (github.com/Tuke-Nuke/TuSKe) skUtilities (https://tim740.github.io/) SkStuff MundoSK (https://forums.skunity.com/resources/mundosk.69/) SkQuery Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/)
[11:22:47 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[11:22:47 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[11:22:47 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[11:22:47 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[11:22:47 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[11:22:47 ERROR]: #!#! Only if the author tells you to do so, report it as Skript issue (url below)
[11:22:47 ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! Stack trace:
[11:22:47 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for resultset
[11:22:47 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1786)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1753)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1501)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1474)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1513)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1447)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1447)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:223)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:178)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:491)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:808)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1517)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1513)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:223)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:178)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:919)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1005)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1005)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1005)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1005)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1005)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.command.Commands.loadCommand(Commands.java:471)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:571)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:347)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:359)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:289)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:319)
[11:22:47 ERROR]: #!#!     at ch.njol.skript.Skript$2.run(Skript.java:409)
[11:22:47 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[11:22:47 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353)
[11:22:47 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:738)
[11:22:47 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405)
[11:22:47 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678)
[11:22:47 ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576)
[11:22:47 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! Version Information:
[11:22:47 ERROR]: #!#!   Skript: 2.2-dev32b
[11:22:47 ERROR]: #!#!   Bukkit: 1.12-R0.1-SNAPSHOT
[11:22:47 ERROR]: #!#!   Minecraft: 1.12
[11:22:47 ERROR]: #!#!   Java: 1.8.0_77 (Java HotSpot(TM) 64-Bit Server VM 25.77-b03)
[11:22:47 ERROR]: #!#!   OS: Windows 10 amd64 10.0
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! Running CraftBukkit: false
[11:22:47 ERROR]: #!#! Running Spigot (or compatible): true
[11:22:47 ERROR]: #!#! Running Paper (or compatible): false
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! Current node: set {_iduser::*} to mysql integer "id" in {_result} (19_Colony.sk, line 73)
[11:22:47 ERROR]: #!#! Current item: null
[11:22:47 ERROR]: #!#! Thread: Server thread
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! Language: english
[11:22:47 ERROR]: #!#! Link parse mode: DISABLED
[11:22:47 ERROR]: #!#!
[11:22:47 ERROR]: #!#! End of Error.
[11:22:47 ERROR]: #!#!

Good luck!
Kiss Bensku! <3

@Snow-Pyon Snow-Pyon reopened this Jan 31, 2018
@Snow-Pyon Snow-Pyon added the priority: low Issues that are not harmful to the experience but are related to useful changes or additions. label Jan 31, 2018
@TheLimeGlass
Copy link
Collaborator

TheLimeGlass commented Jul 5, 2018

Those errors aren't related to the ones presented in the original post, those are from SkQuery.

Use latest SkQuery and Skellett to fix.

Before posting errors on this issue tracker, you should have ran it without addons.

@Nicofisi
Copy link
Member

Nicofisi commented Jul 11, 2018

Rather a workaround I guess, but what do you think

Index: src/main/java/ch/njol/skript/lang/SkriptParser.java
===================================================================
--- src/main/java/ch/njol/skript/lang/SkriptParser.java	(revision b10cbd6b250483af1636d211df1b386a7f407509)
+++ src/main/java/ch/njol/skript/lang/SkriptParser.java	(date 1531312012001)
@@ -494,7 +494,9 @@
 				}
 				if (e != null) { // Expression/VariableString parsing success
 					Class<?> returnType = e.getReturnType(); // Sometimes getReturnType does non-trivial costly operations
-					assert returnType != null;
+					if (returnType == null) {
+						return null;
+					}
 					for (int i = 0; i < types.length; i++) {
 						final Class<?> t = types[i];
 						if (t == null) // Ignore invalid (null) types

I'm referring to the original issue

The question is, what could this change break?

@bensku
Copy link
Member

bensku commented Jul 12, 2018

Parser has a ton of workarounds already. Please don't add more unless this issue is critical; we should try to locate source of the issue instead.

@bensku bensku removed this from the 2.3 milestone Mar 2, 2019
@Wealthyturtle Wealthyturtle added the needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. label Jul 10, 2020
@TPGamesNL
Copy link
Member

TPGamesNL commented Dec 5, 2020

I found the source of this issue: ExprDifference line 104. The check is there, to see if first and second have a difference at all (because of their types), this part is done with ci.getMath() == null, ci being the supertype of the two, and getMath returns a object that handles the arithmetic for that type.

I presume !ci.getC().equals(Object.class) was added in case two variables were being compared, which would result in a supertype of Object, which would fail as it has no arithmetic. Instead, the check for a comparison of two variables should be made using bothVariables, which (tested) has the right effect.

Is there any other reason to compare the supertype with Object, besides the scenario of two variables? If not, I'll PR this change.

EDIT:
There is another reason to compare the supertype with object class, so the issue isn't with not erroring, but with setting relativeType. The check on line 108 shouldn't check for bothVariables, it should check if the supertype is object. I'm gonna PR it.

@Wealthyturtle Wealthyturtle added the completed The issue has been fully resolved and the change will be in the next Skript update. label Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.
Projects
None yet
Development

No branches or pull requests

9 participants