Skip to content

Angular gRPC#4

Open
webdevelopland wants to merge 2 commits into
oferb:masterfrom
webdevelopland:master
Open

Angular gRPC#4
webdevelopland wants to merge 2 commits into
oferb:masterfrom
webdevelopland:master

Conversation

@webdevelopland
Copy link
Copy Markdown

No description provided.

Comment thread app/run_localserver.sh Outdated
//app/client:hello_world_service_js_binary

echo "Copying js binary"
rm -f app/client/app.js
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using app.js?

responseType: hello_world_service_pb.HelloWorldResponse
};

exports.HelloWorldService = HelloWorldService;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you modify any of the auto-generated files?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

@@ -0,0 +1,45 @@
// package: com.google.startuposexample.app.localserver.service
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to add these files to the repo and not generate them in gulp?
What does npm run protoc do then?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I forgot to add the files to .gitignore

Comment thread app/run_localserver.sh
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove run_sample.sh and keep only one example for Angular.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we delete app/client?

Copy link
Copy Markdown
Owner

@oferb oferb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just double-check that it still works?

@webdevelopland
Copy link
Copy Markdown
Author

Looks like gRPC localserver doesn't work anymore:

FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets conf\
igured)
    currently loading: @com_google_protobuf//
    Fetching @com_google_guava; fetching
    Fetching @com_google_javascript_closure_library; fetching
Running local_server
Running grpc web proxy
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/home/locked/bootstrap/nodejs/startup-os-example/tools/bazel.rc
...
ERROR: Analysis of target '//app/local_server:local_server' failed; build aborted: no such package '@protoc_bin//file': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
...
FAILED: Build did NOT complete successfully (1 packages loaded, 0 targets conf\
FAILED: Build did NOT complete successfully (1 packages loaded, 0 targets conf\
igured)
    currently loading: @com_google_protobuf//
INFO[0001] pickfirstBalancer: HandleSubConnStateChange: 0xc4200a7090, CONNECTING  system=system
...

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.

3 participants