-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hello, and thank you for forging ahead with making clojure work with gRPC.
I tried to follow the steps outlined in this templated README, and got successfully all the way up to the running server with lein run and then, while the server is running, and can successfully call the pedestal /about page in a browser, attempting to open another terminal window and run lein repl seems to have hit a snag finding the Greeter :
example-grpc.server=> (use 'com.example.addressbook.Greeter)
Execution error (FileNotFoundException) at example-grpc.server/eval14489 (form-init619234573165394063.clj:1).
Could not locate com/example/addressbook/Greeter__init.class, com/example/addressbook/Greeter.clj or com/example/addressbook/Greeter.cljc on classpath.
example-grpc.server=> (use 'protojure.grpc.client.providers.http2)
nil
example-grpc.server=> @(call-Hello @(connect {:uri (str "http://localhost:" 8080)}) {:name "John Doe"})
Syntax error compiling at (/tmp/form-init3839680410152403001.clj:1:2).
Unable to resolve symbol: call-Hello in this context
I see that in service.clj that com.example.addressbook.Greeter.server and com.example.addressbook can load fine as :require'd dependencies, but seemingly not com.example.addressbook.Greeter from the repl.
I updated protojure to 1.5.1 and retried everything, without any change in outcome.
Also see (Hello ...) and not any reference to (call-Hello ...) which causes the second repl error.
Is it simply a matter of updating the lein template or is there something else I'm missing? Any guidance is appreciated in getting to a working hello-world gRPC server in clojure! Thanks!