Before sbt catches up with Scala 2.10.0-M1

340 views
Skip to first unread message

Grzegorz Kossakowski

unread,
Jan 19, 2012, 6:49:00 PM1/19/12
to scala-i...@googlegroups.com, simple-b...@googlegroups.com
Hi,

Anyone trying to compile sbt-based project with 2.10.0-M1 will face the following problem:

 found   : API.this.global.tpnme.NameType
    (which expands to)  API.this.global.TypeName
 required: String
sym.isLocalClass || sym.isAnonymousClass || sym.fullName.endsWith(LocalChild)
                                                                                  ^
one error found
[error] {file:/Users/grek/scala/scala-reflection/}default-e61cd1/compile:compile: Error compiling sbt component 'compiler-interface'

In case you are impatient to wait for Sbt to catch up with the M1 you might want to try: https://gist.github.com/1643715

My current understanding of how sbt works reassures me that this is fairly safe thing to do and it's not going to break your sbt installation for Scala 2.9.x. Also note that it's easy to roll-back by doing:

m -rf ~/.sbt/boot/scala-2.9.1/org.scala-tools.sbt/sbt/0.11.2/compiler-interface-src

PS. If you are scratching your head and wondering why this doesn't work then the answer is simple: M1 is released exactly to flesh out all sorts of issues that might arise.

--
Grzegorz Kossakowski

Reply all
Reply to author
Forward
0 new messages