imports do not work?

3,086 views
Skip to first unread message

Steffen Egelund Jensen

unread,
Oct 4, 2016, 6:50:38 AM10/4/16
to ScalaPB
Hi I am trying to use scalapb and am stuck when trying to import timestamp and use it

syntax = "proto3";

package model;

import "google/protobuf/wrappers.proto";
import "google/protobuf/timestamp.proto";

...

output from sbt

info] Compiling schema src/main/protobuf/model.proto
protoc-jar: protoc version: 300, detected platform: mac os x/x86_64
protoc-jar: executing: [/var/folders/84/023ryf2j50ddmzgfjkvvf_680000gn/T/protoc6282715334811092398.exe, --plugin=protoc-gen-scala=/var/folders/84/023ryf2j50ddmzgfjkvvf_680000gn/T/protocbridge228952358312795792, --scala_out=grpc:/Users/sejensen/Dev/mk-planner-2/protobuf-model/target/scala-2.11/src_managed/main, -I/Users/sejensen/Dev/mk-planner-2/protobuf-model/src/main/protobuf, -I/Users/sejensen/Dev/mk-planner-2/protobuf-model/target/protobuf_external, /Users/sejensen/Dev/mk-planner-2/protobuf-model/src/main/protobuf/model.proto]
google/protobuf/wrappers.proto: File not found.
google/protobuf/timestamp.proto: File not found.
model.proto: Import "google/protobuf/wrappers.proto" was not found or had errors.
model.proto: Import "google/protobuf/timestamp.proto" was not found or had errors.

Am i missing something to able to use imports?

Thanx in advanace 
/Steffen

Nadav Samet

unread,
Oct 4, 2016, 11:13:47 AM10/4/16
to Steffen Egelund Jensen, ScalaPB
Hi Steffen,

It's a pretty common question. I've updated the installation instructions to cover this and just added this to the FAQ:
 

--
You received this message because you are subscribed to the Google Groups "ScalaPB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalapb+unsubscribe@googlegroups.com.
To post to this group, send email to sca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalapb/5fec7fed-34d7-471b-a769-f245b27f8098%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-Nadav

Steffen Egelund Jensen

unread,
Oct 4, 2016, 4:10:15 PM10/4/16
to ScalaPB, seje...@gmail.com
Cool thank you very much!

I think ScalaPB looks quite cool and I think you have used many nice scala libraries to make my life easier with protobuf

Do you have any plans for Play Framework support? IE a protobuf bodyparser and perhaps some sort of protobuf response for exposing protobuf enhanced services?

Thanx in advance

Steffen


On Tuesday, October 4, 2016 at 5:13:47 PM UTC+2, Nadav Samet wrote:
Hi Steffen,

It's a pretty common question. I've updated the installation instructions to cover this and just added this to the FAQ:
 
On Tue, Oct 4, 2016 at 3:50 AM, Steffen Egelund Jensen <seje...@gmail.com> wrote:
Hi I am trying to use scalapb and am stuck when trying to import timestamp and use it

syntax = "proto3";

package model;

import "google/protobuf/wrappers.proto";
import "google/protobuf/timestamp.proto";

...

output from sbt

info] Compiling schema src/main/protobuf/model.proto
protoc-jar: protoc version: 300, detected platform: mac os x/x86_64
protoc-jar: executing: [/var/folders/84/023ryf2j50ddmzgfjkvvf_680000gn/T/protoc6282715334811092398.exe, --plugin=protoc-gen-scala=/var/folders/84/023ryf2j50ddmzgfjkvvf_680000gn/T/protocbridge228952358312795792, --scala_out=grpc:/Users/sejensen/Dev/mk-planner-2/protobuf-model/target/scala-2.11/src_managed/main, -I/Users/sejensen/Dev/mk-planner-2/protobuf-model/src/main/protobuf, -I/Users/sejensen/Dev/mk-planner-2/protobuf-model/target/protobuf_external, /Users/sejensen/Dev/mk-planner-2/protobuf-model/src/main/protobuf/model.proto]
google/protobuf/wrappers.proto: File not found.
google/protobuf/timestamp.proto: File not found.
model.proto: Import "google/protobuf/wrappers.proto" was not found or had errors.
model.proto: Import "google/protobuf/timestamp.proto" was not found or had errors.

Am i missing something to able to use imports?

Thanx in advanace 
/Steffen

--
You received this message because you are subscribed to the Google Groups "ScalaPB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalapb+u...@googlegroups.com.

To post to this group, send email to sca...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalapb/5fec7fed-34d7-471b-a769-f245b27f8098%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-Nadav
Reply all
Reply to author
Forward
0 new messages