Build error for Scala 2.11

76 views
Skip to first unread message

Renato Garcia

unread,
Jan 6, 2013, 7:28:04 PM1/6/13
to scala-...@googlegroups.com
Hi,

I'm trying to build scala-ide for 2.11 so I can have a go building it with macro paradise version, however the build for 2.11 seems to be broken. I get the same error as the nightly builds here.

Any clue on what might be causing this error?

Regards,
Renato


Mirco Dotta

unread,
Jan 8, 2013, 12:46:22 PM1/8/13
to scala-...@googlegroups.com
Hi Renato,

From the output

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.scala-ide.sdt.core 2.1.0.qualifier
[ERROR]   Missing requirement: org.scala-ide.scala.compiler 2.11.0.v20130104-181922-b571637c2d requires 'package javax.tools 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: org.scala-ide.sbt.full.library 0.13.0.SNAPSHOT-2_11-20130106-0513 depends on: package scala.reflect.api 0.0.0
[ERROR]   Cannot satisfy dependency: org.scala-ide.sdt.core 2.1.0.qualifier depends on: bundle org.scala-ide.sbt.full.library [0.13.0,0.14.0)
[ERROR] 

It looks like we are generating a bad MANIFEST for the scala-compiler bundle for Scala 2.11, i.e., the generated MANIFEST should not contain an import for javax.tools

What I'd try is adding a !javax.tools here https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.scala.compiler/pom.xml#L203. Re-build and see if that works. 

-- Mirco

Renato Garcia

unread,
Jan 8, 2013, 5:09:20 PM1/8/13
to scala-...@googlegroups.com
Thanks Mirco, that solved the issue.

However now it is failing to compile JVMUtils.scala(and some others) because it depends on FJBG which seems to be removed from the scala compiler jar on 2.11.

Is there a separated FJBG artifact available?

Mirco Dotta

unread,
Jan 9, 2013, 4:28:54 AM1/9/13
to scala-...@googlegroups.com
On Jan 8, 2013, at 11:09 PM, Renato Garcia wrote:

Thanks Mirco, that solved the issue.

However now it is failing to compile JVMUtils.scala(and some others) because it depends on FJBG which seems to be removed from the scala compiler jar on 2.11.

Is there a separated FJBG artifact available?

Could you post the full error message.


On 09/01/13 03:46, Mirco Dotta wrote:
Hi Renato,

From the output

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.scala-ide.sdt.core 2.1.0.qualifier
[ERROR]   Missing requirement: org.scala-ide.scala.compiler 2.11.0.v20130104-181922-b571637c2d requires 'package javax.tools 0.0.0' but it could not be found
[ERROR]   Cannot satisfy dependency: org.scala-ide.sbt.full.library 0.13.0.SNAPSHOT-2_11-20130106-0513 depends on: package scala.reflect.api 0.0.0
[ERROR]   Cannot satisfy dependency: org.scala-ide.sdt.core 2.1.0.qualifier depends on: bundle org.scala-ide.sbt.full.library [0.13.0,0.14.0)
[ERROR] 

It looks like we are generating a bad MANIFEST for the scala-compiler bundle for Scala 2.11, i.e., the generated MANIFEST should not contain an import for javax.tools

What I'd try is adding a !javax.tools here https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.scala.compiler/pom.xml#L203. Re-build and see if that works. 

-- Mirco

On Jan 7, 2013, at 1:28 AM, Renato Garcia wrote:

Hi,

I'm trying to build scala-ide for 2.11 so I can have a go building it with macro paradise version, however the build for 2.11 seems to be broken. I get the same error as the nightly builds here.

Any clue on what might be causing this error?

Regards,
Renato






---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta








iulian dragos

unread,
Jan 9, 2013, 7:31:05 AM1/9/13
to scala-...@googlegroups.com
Renato,

Scala 2.11 removed the deprecated jvm backend, in favor of the new one based on ASM. Scala IDE depends on some functionality in the old backend, but I think it shouldn't be too difficult to rewrite it based on the new API, maybe it's even possible to make it source compatible with 2.10 and 2.9. As you've probably seen, it's all in computing the Java name of some types, and there are only a 3 usages in the whole code base.

However, we are now focusing on releasing the final version of 2.1, and we don't want to spend too much time supporting a Scala version that will be out in a year or so. It would be great if you continue and get to a point that works, and we'd be very happy to include your patch when it's ready. It would really help us speed things up, otherwise we'll get to it after the final is out the door.

thanks,
iulian
--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Renato Garcia

unread,
Jan 9, 2013, 2:59:24 PM1/9/13
to scala-...@googlegroups.com
Hi iulian,

Thanks for your reply. I'll try to take a look over the weekend.
Reply all
Reply to author
Forward
0 new messages