-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.16 does not fix problem of missing parser errors #431
Comments
It'd be great if you could patch this in RStan, as I think the error messages are super important. Please file an issue with The milestones aren't up to date in the issues, so I just set this to |
see old issue in the previous version here #405 If you can fix it by installing from source, I would say that implies this is not a bug that we can fix. I feel like the pre-built binary version from CRAN for Mac is somehow incompatible with your local environment. I had this problem too. But I have no way to tell what's wrong with the binary file downloaded from CRAN. |
I just installed 2.16.2 and don't have this problem in either the GUI or RStudio:
P.S. I would prefer to see "error in miss-semi.stan" rather than "model105c33fb88e54_miss_semi"---is there something I can do in the parser inputs/outputs to make that possible? I was assuming that the file name was passed in for the naming. |
I was having this problem (also on Mac), installing from source fixed it. |
Glad installing from source worked for you too. We are definitely trying to
avoid this problem with the cran mac binary in all future releases.
…On Fri, Sep 22, 2017 at 7:43 PM David A. Knowles ***@***.***> wrote:
I was having this problem (also on Mac), installing from source fixed it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#431 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHb4Q7LZhojxhWDLWZ5VPq8JrGf0JYKZks5slEYNgaJpZM4OTfWO>
.
|
Looks like this is still an issue as of 2.17.2: stan-dev/stan#2458 If it can't be fixed in the next version, would it be possible to add some kind of warning for users with bad installations? Figuring out what was going on tonight took me something like a half hour. |
Sorry this still isn't fixed. This is a critical bug that will warrant a patch release if we can fix it. I have no idea where messages are getting lost on the way from Stan to RStan. The first thing I'd check is that everything's getting flushed on the
|
We know what the issue is, but it is a bit of guessing game to get CRAN to
build the binaries correctly. If you install the develop branch from GitHub
from source, it is probably fine.
…On Mon, Jan 15, 2018 at 2:28 PM, Bob Carpenter ***@***.***> wrote:
Sorry this still isn't fixed. This is a critical bug that will warrant a
patch release if we can fix it. I have no idea where messages are getting
lost on the way from Stan to RStan.
The first thing I'd check is that everything's getting flushed on the
iostream to which these messages are being sent. That kind of default can
change with new implementations.
-
Works on my machine with RStan 2.17.2 installed from binaries through
R GUI an RStudio on OS X v10.10.5 and Xcode 7.2.1.
-
@mitzimorris <https://github.com/mitzimorris> just confirmed it's
still broken through R terminal on OS X v10.13.2 and Xcode v9.2. She just
reinstalled 2.17.2 from binaries and the error messages are being swallowed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#431 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqtqPmA_W6P8ldh2dW6BorcD5cRLtks5tK6bXgaJpZM4OTfWO>
.
|
@davharris where should this warning be? put another way, where would you expect to find this information? |
I've edited the RStan wiki page and added a troubleshooting section - hope this is useful. |
Thanks all of you for continuing to look into this. @mitzimorris I realize that I don't know what it's like to work with CRAN on something this complicated, but here are some possibly-naive suggestions.
On the other hand, my experience with the bug may have been unusually bad: I'd imagine that there would be a lot more long, duplicate issue threads about this if people were routinely getting as mixed up as I did. Anyway, thanks again. |
Actually, maybe I take that last bit back. I forgot about the discourse site. Looks like people have been posting about it there instead. There are over a dozen threads about "unknown reason" there, although it looks like only some of them are about this issue. It's also been raised by a few people here and in the main Stan repo. |
All calls to the parser *are* wrapped in exception handling code. It's very bad form to throw exceptions to containers, and we try to keep our interfaces well within the bounds of civility.
It works as intended when built from source on all these machines, just not when installed as a binary from CRAN. Thus, this is a *build issue for CRAN binaries*.
|
Excellent. So when your exception catcher sees |
a message directing folks to a specific page in the RStan wiki might be more general, although also more indirect. I've added a "Troubleshooting" section to the main page. More is needed. |
@davharris If we could reliably print messages from exceptions, we wouldn't need to tell people to re-install from source! We're already catching the exception with the informative error message. The problem is getting error messages from our exceptions through the R plumbing when installed from CRAN. |
@bob-carpenter Oh, I think I see where the disconnect is: I meant R exceptions, and it sounds like maybe you meant C++ exceptions? I'll stop pestering you though. I can imagine this is very frustrating. |
I'm indeed talking about catching C++ exceptions in C++ and then sending messages collected from them to R's output streams.
If there's a further R exception that could be caught to signal that there's an install problem, that would be great. I didn't even realize R had exceptions in the language!
We're happy to get suggestions on how to fix things, so please don't feel shy about posting.
|
Great. Here's a simple example of what I was trying to suggest: This function is our "parser." It can succeed, fail, or do something weird and uninformative.
Here's our exception handling (described in more detail below):
If the "parser" succeeds, our handler passes along the parsed output. If it fails, it passes along the error message, unless it's our uninformative message. In that case, it replaces the error message with something useful.
|
If this looks like a good approach, I'd be happy to submit a pull request this weekend, by the way. |
I don't know R---that's up to @bgoodri, @maverickg, and @jgabry |
Is this fixed in a more recent version, so that it can be closed? |
Summary:
When installed from Mac binary the parser errors that were missing in v2.15 are still missing for me in v2.16. Installing from source works, but not having the parser errors when installing from binary seems like a big problem.
Reproducible Steps:
Current Output:
Expected Output:
The same parser error I would get if I had installed from source, i.e.,
RStan Version:
2.16.2
R Version:
3.4.1
Operating System:
OS X 10.12.5
The text was updated successfully, but these errors were encountered: