Closed
Description
Summary:
If you have a file that contains a non-ASCII character, then running stanc on the file just tells you that there was a C++ exception, and nothing else.
Description:
If your Stan source contains a non-ASCII character, then stanc just dies with "c++ exception (unknown reason)", which doesn't help in tracking down the cause of the problem, and makes it look like some sort of system instability.
Reproducible Steps:
Write out the "Eight Schools" model to a file schools.stan, then replace all occurrences of the identifier "mu" with the unicode character "μ". Save the results as UTF-8. Then run
stanc("schools.stan")
Current Output:
The following error message:
Error in stanc("~/Tmp/foo.stan") : c++ exception (unknown reason)
Expected Output:
Something telling me that I have illegal, non-ASCII characters in my Stan source.
RStan Version:
2.17.2
R Version:
R version 3.4.3 (2017-11-30)
Operating System:
OS X 10.13.3
Metadata
Metadata
Assignees
Labels
No labels