Integrated Dynamics

Integrated Dynamics

63M Downloads

Wrong error message for type error of partial application done by "apply"?

cyb0124 opened this issue ยท 2 comments

commented

Issue type:

  • ๐Ÿ› Bug

Short description:

This error message essentially shows "operator expected but got operator", which doesn't make sense.
image

Possible cause:
https://github.com/CyclopsMC/IntegratedDynamics/blob/8b9a2b67815b3335dcedcce2d6d7209784c25561/src/main/java/org/cyclops/integrateddynamics/core/evaluate/OperatorBuilders.java#L209C21-L209C21
This here, shouldn't it be input.getVariables()[1] instead of input.getVariables()[0]?

Steps to reproduce the problem:

  1. Make a operator card set to "apply"
  2. Make a const int card set to 0
  3. Make a apply card taking the above cards as input

Expected behaviour:

Error message should show "operator expected but got int", but it shows "operator expected but got operator"


Versions:

  • This mod: IntegratedDynamics-1.18.2-1.13.7
  • Minecraft: 1.18.2
  • Forge: 40.2.9
commented

Thanks for reporting!

commented

This here, shouldn't it be input.getVariables()[1] instead of input.getVariables()[0]?

Aha, that seems to be wrong indeed. Good catch!