Dear nimble developers, dear users,
I encountered another error which I am completely clueless about:
Defining model
Error in BUGSdecl$targetIndexNamePieces[[iDim]] : subscript out of bounds
It's gonna be something with the indices, but my code is more than hundred lines long, and contains a lot of indexed arrays. How am I supposed to find where the problem is from this message? This frustration reminds me old times with WinBUGS and the infamous Trap 66 :-)) I really appreciate the helpfulness of the authors here in the forum, but I cannot be sending code here every time I get an error. I am trying to find for myself a sustainable way to develop models in Nimble. How are other users coping with this? Nimble is out for 7+ years, right? How come no one became frustrated enough yet to invest time in this? Wouldn't it save development time in the end?
Would it be difficult to implement, to report line numbers and node names?
I am C++ & R developer myself, so I think it might save me time and nerves to contribute this to Nimble myself. Note that for some errors, not only line numbers but also node names would be very helpful (see e.g. the infamous "Invalid parent values" in JAGS, frustrated me enough that I once patched my JAGS to report more details on this).
Thank you and wish you beautiful advent time.
Tomas