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
Comment by bob-carpenter Thursday Dec 13, 2018 at 14:10 GMT
We got better at this but right no we can have errors in "a * b" that get translated as "multiply(a, b)" in the error messages, even though the user never wrote "multiply". This is an issue with any kind of intermediate form normalization (* being replaced with multiply here)---we need a path back to the actual user input.
Comment by VMatthijs Thursday Dec 13, 2018 at 15:12 GMT
Ah right. This has been fixed in stanc3, then. It comes with a pretty printer to render an AST as Stan syntax. (Can be used for auto-formatting.) The error messages thrown by the compiler render AST nodes using this pretty printer whenever they need to refer to a node in the error. In particular, operators get rendered properly.
Thursday Aug 13, 2015 at 01:45 GMT
Originally opened as stan-dev/stan#1582
There are still some cases that aren't working properly.
The text was updated successfully, but these errors were encountered: