Incomplete apply does not produce working operator
bsngardner opened this issue ยท 2 comments
Issue type:
- ๐ Bug
Short description:
According to the book, applying fewer inputs than an operator needs creates an operator with the leftover inputs. This doesn't appear to be working properly.
Steps to reproduce the problem:
- Create getOrDefault operator
- Flip the inputs in a new operator
- Apply an integer to that operator
- Flip the inputs again
- Place the last card in a display panel and the rest in a variable store
Expected behaviour:
This should show an operator with signature any->List->any. Instead there is an error: "The given config render pattern with 0 slots is not compatible with the number of input types 2 for :flip:"
--- Partially applied operator ---
--- Flip card error message ---
Versions:
- Integrated Dynamics: 0.11.13
- Integrated Tunnels: 1.5.6
- Minecraft: 1.12.2
- Forge: 14.23.4.2708
Log file:
This may be unrelated, but previously I had an issue where two predicates applied to a choice did not work in the predicate slot of an integrated tunnels player simulator or item exporter. But filtering a list with that same card and putting that in the list slot did work.
- Make two predicates (in my case, they gave true for certain items)
- Apply a redstone reader boolean card and the two predicates to a choice operator.
- Put the card in the predicate slot of an item exporter on a network with both predicate items in it
- Put an inventory on the output of the exporter.
The redstone signal should control which item is exported, but nothing happens. There is no error message in the item exporter. Putting the predicates in the slot individually does work, as does filtering a list from an inventory reader and putting it in the list slot.
Sorry if this is unrelated to the original bug; it seems similar from my point of view.