Skip to content
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

Add proper error handling semantics to FileStream. #1844

Merged
merged 1 commit into from
Apr 28, 2017

Conversation

davesisson
Copy link
Contributor

The previous implementation was swallowing any errors so it could be confusing. For instance a missing file is treated as an empty string which successfully parses (when one would expect an error).

This will be an incompatible change and is probably best lumped in with the other incompatible changes coming up.

@parrt parrt added this to the 4.7.1 milestone Apr 28, 2017
@parrt parrt merged commit b404abb into antlr:master Apr 28, 2017
davesisson added a commit to davesisson/antlr4 that referenced this pull request Apr 30, 2017
@millergarym
Copy link
Contributor

This code doesn't compile

@EpsilonPrime
Copy link

EpsilonPrime commented May 1, 2017 via email

@millergarym
Copy link
Contributor

@EpsilonPrime I only saw your updated PR after commenting.

What setup would you aim for?
I think it would be worth while putting in a bit of effort for a nice production and development setup for antlr/go.

My antlr dev/Go environment is a bit fragmented.
I'm using Eclipse for the Java, with runner configured for quick turn around and debuggable converts of grammars to Go.
Maven is needed when test files change (something a clean is needed). This is slow, so I avoid too many changes to test grammars.
The Go working is in vscode.

As for prod - the Go target is not very go gettable.
Every now and then I prune the antlr repo and push it (with included jars) to https://github.com/wxio/antlr4-go . The readme is a bit out of date.

@davesisson
Copy link
Contributor Author

davesisson commented May 1, 2017 via email

@millergarym
Copy link
Contributor

There is something funny with the Go travis tests. The compile error in master was (I've merged your fix into my code) breaking my build. Is there a go get or something like that happening during the build?

parrt added a commit that referenced this pull request May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants