-
Notifications
You must be signed in to change notification settings - Fork 765
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
grpc-web plugin not working in GitHub Codespaces #1128
Comments
Thanks for the report! :) May i know what exact command you were trying to run while encountering this error? :) Curious if you're able to run And i supposed you've already followed the instructions here to setup both compilers? |
This is the installation step we use (Codespaces runs in a Docker container):
I can run the same command locally and the plugin installs and works. I can confirm
However, when I run
the plugin fails with the following error:
|
Thanks for the details... When i run:
I get error:
But i assume that's just a typo in your post.. I'm not familiar with Codespaces.. but this seems to be some filesystem issue that's specific to your Docker environment.. I can take a try later.. :) |
Yes, it is a typo. It should have been |
And yes, it does seem very much like an environment issue. We've been using the |
Ah i see! I that case, consider searching / routing this issue to the protobuf project (who maintains I can help take a look later but i'm unlikely to have any additional context since we (mainly) only care about what happens after |
The thing that led me to believe the issue is with
I get no error locally but get the following error in Codespaces:
|
Aha! Yeah that's a good way to confirm the issue.. It sounds like |
That's what I thought too. I've checked and
|
Ah ok then.. Thanks for confirming.. :) I'll try to take a look when i can.. |
Hey I tried to take a look here but it seems that i don't have access to any repo with Codespace I'm not sure how.. :) Do you have some simple instructions for reproducing this without having access to a Codespace repo (e.g. maybe from a docker image directly)? Thanks :) |
I'll see what I can do to reproduce using a simple Docker in Docker set-up. I might not get to get for a few days... |
well, I have the same issue in Azure Devops /usr/local/bin/protoc-gen-grpc-web: 1: Not: not found
--grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 127.
##[error]The process '/usr/bin/bash' failed with exit code 1
##[error]Bash failed with error: The process '/usr/bin/bash' failed with exit code 1 Below is my setup in Azure DevOps pipeline
PROTOC_VERSION=3.17.3
PROTOC_ZIP=protoc-${PROTOC_VERSION}-linux-x86_64.zip
# install protoc
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/$PROTOC_ZIP
sudo unzip -qq -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -qq -o $PROTOC_ZIP -d /usr/local 'include/*'
sudo chmod +x /usr/local/bin/protoc
protoc --version
#clean up
rm -f $PROTOC_ZIP
PROTOC_VERSION=1.2.1
PROTOC_WEB_FILE=protoc-protoc-gen-grpc-web-${PROTOC_VERSION}-linux-x86_64
PROTOC_WEB_DST=/usr/local/bin/protoc-gen-grpc-web
# install protoc
curl -OL https://github.com/grpc/grpc-web/releases/download/v${PROTOC_VERSION}/${PROTOC_WEB_FILE}
sudo mv ${PROTOC_WEB_FILE} ${PROTOC_WEB_DST}
sudo chmod +x ${PROTOC_WEB_DST}
ls -l /usr/local/bin/protoc-gen-grpc-web
ls -al /usr/local/bin/ My yaml file is ( trigger:
- develop
pr:
branches:
include:
- "*"
variables:
vmImage: "ubuntu-latest"
jobs:
- job: "job"
pool:
vmImage: $(vmImage)
steps:
- task: NodeTool@0
displayName: "Install Node.js"
inputs:
versionSpec: "14.17.x"
checkLatest: true
- task: ShellScript@2
displayName: "Run protogen"
inputs:
scriptPath: "script.sh" for -rwxr-xr-x 1 vsts docker 9 Sep 11 20:29 /usr/local/bin/protoc-gen-grpc-web |
When I want to add grpc-web in my project.
|
i think you should rename " protoc-gen-grpc-web-1.4.2-windows-aarch64.exe" to " protoc-gen-grpc-web" and place it in the same folder as protoc file "C:\protoc-3.12.3-win64\bin" |
I am running the code generator plugin in GitHub Codespaces and gett the following error:
protoc
is installed and in the PATH and both binaries are executable (chmod +x ...).Do you have any thoughts on where I might start to resolve this?
The text was updated successfully, but these errors were encountered: