kafka-streams project compiles using maven but failed using sbt

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

kafka-streams project compiles using maven but failed using sbt

Tommy
Hi

I am playing with kafka-streams using Scala, but found some strange issue, the following project compiles using mvn but failed using sbt: 


[error] /Users/tommy/tmp/kstream-debug/src/main/scala/kafka/streams/WordCountDemo.scala:49: missing parameter type for expanded function ((x$1) => x$1.toUpperCase())
[error]     val uppercasedWithMapValues: KStream[Array[Byte], String] = textLines.mapValues(_.toUpperCase())
[error]                                                                                     ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed


Any ideas why the demo failed compiling using sbt ? 

Thanks, 
Tommy

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: kafka-streams project compiles using maven but failed using sbt

Viktor Klang

Do you use the same compiler version and same compiler flags?

--
Cheers,


On Aug 27, 2016 17:17, "Tommy" <[hidden email]> wrote:
Hi

I am playing with kafka-streams using Scala, but found some strange issue, the following project compiles using mvn but failed using sbt: 


[error] /Users/tommy/tmp/kstream-debug/src/main/scala/kafka/streams/WordCountDemo.scala:49: missing parameter type for expanded function ((x$1) => x$1.toUpperCase())
[error]     val uppercasedWithMapValues: KStream[Array[Byte], String] = textLines.mapValues(_.toUpperCase())
[error]                                                                                     ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed


Any ideas why the demo failed compiling using sbt ? 

Thanks, 
Tommy

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: kafka-streams project compiles using maven but failed using sbt

Tommy
Gotcha! `Xexperimental` solved the problem.  Thanks.

On Saturday, August 27, 2016 at 11:24:15 PM UTC+8, √iktor Klang wrote:

Do you use the same compiler version and same compiler flags?

--
Cheers,


On Aug 27, 2016 17:17, "Tommy" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="cLfC5v9eBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">deepl...@...> wrote:
Hi

I am playing with kafka-streams using Scala, but found some strange issue, the following project compiles using mvn but failed using sbt: 

<a href="https://github.com/deeplambda/kstream-debug" style="color:rgb(17,85,204)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdeeplambda%2Fkstream-debug\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNExK7If1l2bzbAQIpqxiYOdtYepxQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdeeplambda%2Fkstream-debug\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNExK7If1l2bzbAQIpqxiYOdtYepxQ&#39;;return true;">https://github.com/deeplambda/kstream-debug

[error] /Users/tommy/tmp/kstream-debug/src/main/scala/kafka/streams/WordCountDemo.scala:49: missing parameter type for expanded function ((x$1) => x$1.toUpperCase())
[error]     val uppercasedWithMapValues: KStream[Array[Byte], String] = textLines.mapValues(_.toUpperCase())
[error]                                                                                     ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed


Any ideas why the demo failed compiling using sbt ? 

Thanks, 
Tommy

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="cLfC5v9eBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">scala-user+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: kafka-streams project compiles using maven but failed using sbt

Viktor Klang
You're welcome!

On Sat, Aug 27, 2016 at 5:46 PM, Tommy <[hidden email]> wrote:
Gotcha! `Xexperimental` solved the problem.  Thanks.

On Saturday, August 27, 2016 at 11:24:15 PM UTC+8, √iktor Klang wrote:

Do you use the same compiler version and same compiler flags?

--
Cheers,


On Aug 27, 2016 17:17, "Tommy" <[hidden email]> wrote:
Hi

I am playing with kafka-streams using Scala, but found some strange issue, the following project compiles using mvn but failed using sbt: 


[error] /Users/tommy/tmp/kstream-debug/src/main/scala/kafka/streams/WordCountDemo.scala:49: missing parameter type for expanded function ((x$1) => x$1.toUpperCase())
[error]     val uppercasedWithMapValues: KStream[Array[Byte], String] = textLines.mapValues(_.toUpperCase())
[error]                                                                                     ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed


Any ideas why the demo failed compiling using sbt ? 

Thanks, 
Tommy

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Cheers,

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: kafka-streams project compiles using maven but failed using sbt

vani reddy
In reply to this post by Tommy
I dont get it. Please HELP!!!! Thank you i nadvance.

On Saturday, 27 August 2016 21:16:42 UTC+5:30, Tommy wrote:
Gotcha! `Xexperimental` solved the problem.  Thanks.

On Saturday, August 27, 2016 at 11:24:15 PM UTC+8, √iktor Klang wrote:

Do you use the same compiler version and same compiler flags?

--
Cheers,


On Aug 27, 2016 17:17, "Tommy" <[hidden email]> wrote:
Hi

I am playing with kafka-streams using Scala, but found some strange issue, the following project compiles using mvn but failed using sbt: 

<a href="https://github.com/deeplambda/kstream-debug" style="color:rgb(17,85,204)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdeeplambda%2Fkstream-debug\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNExK7If1l2bzbAQIpqxiYOdtYepxQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fdeeplambda%2Fkstream-debug\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNExK7If1l2bzbAQIpqxiYOdtYepxQ&#39;;return true;">https://github.com/deeplambda/kstream-debug

[error] /Users/tommy/tmp/kstream-debug/src/main/scala/kafka/streams/WordCountDemo.scala:49: missing parameter type for expanded function ((x$1) => x$1.toUpperCase())
[error]     val uppercasedWithMapValues: KStream[Array[Byte], String] = textLines.mapValues(_.toUpperCase())
[error]                                                                                     ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed


Any ideas why the demo failed compiling using sbt ? 

Thanks, 
Tommy

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.