I’m getting weird behavior on Catalina when compiling any model that has an error. Instead of reporting the error,
stanc just returns with no error message, and no value returned. Thereafter no error messages nor warning messages of any sort are reported by any other command executed. Digging deeper I found that the FFI call within
stanc fails, throwing an unknown C++ exception, and fails to properly restore stderr (which it had redirected to a file). I’ve filed this as issue #751 for standev/rstan.
Despite this, I can compile and run the 8schools example without problem, and likewise I can run
prophet, which relies on RStan.
Yes, I carefully followed the instructions for installing RStan on MacOS Catalina using the “macOS R toolchain installer” linked to on the page “Installing RStan from source on a Mac”, and this was fairly recently, with the last few weeks.
Has anyone else encountered this problem? Does anyone know of a reasonable work-around? It’s difficult to debug a Stan model if you can’t get back any error messages from the compiler.