You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As much as working with Tofu can be a great experience, it sometimes can also be quite frustrating when you get some "computer says no" response.
For example for some complex for_each construct using a combination ofsetproduct, tomap, etc. the response while doing a plan or even only when you apply gives an error about the value not being map or set, but I have found no way of actually checking what it is that actually got produced by the construct. So I'm left with two options:
try to guess which part is wrong
meticulously replaying whatever it was that I wrote, which can be challenging it the objects themselves have been produced by other pieces of code
I would find it very helpful if there was a debugging level that just dumped the object structure that is being evaluated. This could be some pragma in code to specifically dump troublesome code, or a global setting dumping everything that is being evaluated in the run.
Maybe this option already exists, but I have not been able to find it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As much as working with Tofu can be a great experience, it sometimes can also be quite frustrating when you get some "computer says no" response.
For example for some complex
for_each
construct using a combination ofsetproduct
,tomap
, etc. the response while doing a plan or even only when you apply gives an error about the value not being map or set, but I have found no way of actually checking what it is that actually got produced by the construct. So I'm left with two options:I would find it very helpful if there was a debugging level that just dumped the object structure that is being evaluated. This could be some pragma in code to specifically dump troublesome code, or a global setting dumping everything that is being evaluated in the run.
Maybe this option already exists, but I have not been able to find it.
Beta Was this translation helpful? Give feedback.
All reactions