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

Fixes enum issue when defined outside a message. #48

Merged
merged 1 commit into from
Feb 19, 2018

Conversation

atgjack
Copy link
Contributor

@atgjack atgjack commented Jan 2, 2018

This seems to fix an issue where Enumerations that are defined outside of a message body throwing an error. I saw that there was a test that checks it, and it passes. However, when I call the following code from the CLI:

node bin/grpcc.js -p test/test.proto - a localhost:8080

I receive the following error:

Unable to find any service in proto file

There is currently an open issue(#46) about this.

The issue seems to stem from a shadowed variable, so it's a simple fix. I'd be interested to know why the test passes, but when I try calling it manually it fails. Any ideas?

@agconti
Copy link

agconti commented Feb 15, 2018

@atgjack thanks for making this PR!

@salismt
Copy link

salismt commented Feb 19, 2018

can someone merge this request? @njpatel

@njpatel njpatel merged commit 6767bd2 into njpatel:master Feb 19, 2018
@njpatel
Copy link
Owner

njpatel commented Feb 19, 2018

Sorry for the delay on this, grpc v1.1.2 is being published to npm now with this fix.

Thanks for the contribution @atgjack !

@agconti
Copy link

agconti commented Feb 19, 2018

Thanks @njpatel!

This project is awesome 💖

@qlodhi-clearlabs
Copy link

Sorry for the delay on this, grpc v1.1.2 is being published to npm now with this fix.

Thanks for the contribution @atgjack !

Still happens in 1.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants