Skip to content

Instantly share code, notes, and snippets.

@jcoveney
Last active April 11, 2016 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcoveney/e36c63f21392ccb9de0b738b44b4b57b to your computer and use it in GitHub Desktop.
Save jcoveney/e36c63f21392ccb9de0b738b44b4b57b to your computer and use it in GitHub Desktop.
I have a file at: scrooge_sbt/src/main/thrift/com/example/thrift/AStruct.thrift
namespace java com.example.thrift
include "thrift2/BStruct.thrift"
struct AStruct {
1: BStruct a_field
}
I have a file at: scrooge_sbt/src/main/thrift/com/example/thrift/thrift2/BStruct.thrift
namespace java com.example.thrift.thrift2
struct BStruct {
1: string a_field
}
Any idea why it's failing to compile AStruct?
sbt scrooge-gen
[info] Loading project definition from /Users/jco/git/bazel_testing_repo/scrooge_sbt/project
[info] Set current project to scrooge_sbt (in build file:/Users/jco/git/bazel_testing_repo/scrooge_sbt/)
[info] Generating scrooge thrift for /Users/jco/git/bazel_testing_repo/scrooge_sbt/src/main/thrift/com/example/thrift/AStruct.thrift, /Users/jco/git/bazel_testing_repo/scrooge_sbt/src/main/thrift/com/example/thrift/thrift2/BStruct.thrift ...
com.twitter.scrooge.frontend.FileParseException: Exception parsing: /Users/jco/git/bazel_testing_repo/scrooge_sbt/src/main/thrift/com/example/thrift/AStruct.thrift
at com.twitter.util.NoStacktrace(Unknown Source)
Caused by: com.twitter.scrooge.frontend.TypeNotFoundException: BStruct
1: BStruct a_field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment