Note that there are some explanatory texts on larger screens.

plurals
  1. POError when generating thrift files contains Union using scrooge
    text
    copied!<p>I generate a thrift server with twitter's <a href="https://github.com/twitter/scrooge" rel="nofollow">scrooge</a>,all runs well, but if I include a union type in thrift file, the generating process fails:</p> <pre><code>[error] Exception in thread "main" com.twitter.scrooge.ParseException: [13.1] failure: string matching regex `\z' expected but `u' found [error] [error] union union_value{ [error] [error] ^ [error] at com.twitter.scrooge.ScroogeParser.parse(ScroogeParser.scala:227) [error] at com.twitter.scrooge.ScroogeParser.parseFile(ScroogeParser.scala:235) [error] at com.twitter.scrooge.Main$$anonfun$main$2.apply(Main.scala:92) [error] at com.twitter.scrooge.Main$$anonfun$main$2.apply(Main.scala:88) [error] at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) [error] at scala.collection.immutable.List.foreach(List.scala:45) [error] at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30) [error] at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:42) [error] at com.twitter.scrooge.Main$.main(Main.scala:88) [error] at com.twitter.scrooge.Main.main(Main.scala) </code></pre> <p>below is the versions I choose in my project(you can see my project <a href="https://github.com/DiveInto/thrift-server" rel="nofollow">here</a>):</p> <blockquote> <p>sbt version : 0.11.2<br> scala version : 2.9.2<br> scrooge plugin: addSbtPlugin("com.twitter" %% "sbt11-scrooge" % "3.0.0")<br> scrooge runtime: "com.twitter" %% "scrooge-runtime" % "3.1.0"</p> </blockquote> <p>after several attempts, seems that above is the latest scrooge version I can choose.</p> <p>any advice? Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload