scala java mixed project with SBT builder crash

87 views
Skip to first unread message

sphinx jiang

unread,
Jun 17, 2013, 9:39:31 PM6/17/13
to scala-i...@googlegroups.com
hi, guys, I am the new guy of Scala IDE User Group~~

I started learning the source code of kafka, which is an open-source messaging system wrote in Scala.
But when I import the project, problems occured: 
1. The java file could not be read.
2. SBT builder crashed.

here is the kafka mixed project.
problems view.
errorlog.




 

Mirco Dotta

unread,
Jun 18, 2013, 1:54:23 AM6/18/13
to scala-i...@googlegroups.com
Hi,

Wow, Scala 2.8, that is old :)

I've seen you also posted on Stackoverflow


And noticed you are using the Scala IDE 2.0 bundled with Scala 2.8. Hence, you seem to be using the "right"
Scala IDE version (that would have been my first question :))

It's hard to say what is the issue. One thing I'll point out is that you may be hitting a binary compatibility issue. 
Scala 2.8 minor releases where not binary compatible at the time. The Scala IDE 2.0 is bundled with Scala 2.8.3. 
Hence, the SBT builder crash may be due to binary incompatibilities (it is possible that kafka depends on Scala 
libraries that were compiled with a Scala version smaller than 2.8.3, which could explain the compiler crash).

Scala has become a lot better with respect to binary compatibility in its latest releases (Scala 2.9 releases are forward 
binary compatible, and 2.10 is both forward and backward binary compatible). My suggestion would be to get in touch 
with the Kafka core team and ask if they'd consider upgrading their project to Scala 2.9 (or, even better, Scala 2.10).

If that doesn't work out, maybe you could consider looking at different project for getting started with Scala. If you are interested 
in distributed system and message-passing concurrency, I'd would recommend you to have a look at Akka (https://github.com/akka/akka)
- that way you could use the latest and shiniest Scala IDE v3.0 to browse the sources ;-) 

-- Mirco

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

iulian dragos

unread,
Jun 21, 2013, 7:24:38 AM6/21/13
to scala-i...@googlegroups.com
On Mon, Jun 17, 2013 at 9:39 PM, sphinx jiang <yish...@gmail.com> wrote:
hi, guys, I am the new guy of Scala IDE User Group~~


Hi and welcome to scala-ide-user!


 

I started learning the source code of kafka, which is an open-source messaging system wrote in Scala.
But when I import the project, problems occured: 
1. The java file could not be read.

Did you refresh the project? (you should enable automatic refresh in the workspace settings).
 
2. SBT builder crashed.

What is the crash about? You should find more information if you double click on the crash entries in the error log.

iulian
 


 

here is the kafka mixed project.
problems view.
errorlog.




 

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



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
Reply all
Reply to author
Forward
0 new messages