After upgrading to 2.10.2, I've come to a complete stand-still. On a rather small project (~150 classes), I'm hitting error: erroneous or inaccessible type 13 different places with no clue whatsoever as to the cause.
I've seen numerous bugs filed that match this description, some of them marked fixed, others not.
Can anyone offer some clue on how to proceed? Any workaround would be much appreciated.
After upgrading to 2.10.2, I've come to a complete stand-still.
--
You received this message because you are subscribed to the Google Groups "scala-internals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-interna...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On 17 July 2013 15:10, Nils Kilden-Pedersen <nil...@gmail.com> wrote:Can you show us complete output of Scala compiler? For example, does it report positions in source files where error occurs?After upgrading to 2.10.2, I've come to a complete stand-still. On a rather small project (~150 classes), I'm hitting
error: erroneous or inaccessible type13 different places with no clue whatsoever as to the cause.I've seen numerous bugs filed that match this description, some of them marked fixed, others not.
Can anyone offer some clue on how to proceed? Any workaround would be much appreciated.
--
Grzegorz KossakowskiScalac hacker at Typesafetwitter: @gkossakowskigithub: @gkossakowski
On Wed, Jul 17, 2013 at 5:55 PM, Grzegorz Kossakowski <grzegorz.k...@gmail.com> wrote:
On 17 July 2013 15:10, Nils Kilden-Pedersen <nil...@gmail.com> wrote:Can you show us complete output of Scala compiler? For example, does it report positions in source files where error occurs?After upgrading to 2.10.2, I've come to a complete stand-still. On a rather small project (~150 classes), I'm hitting
error: erroneous or inaccessible type13 different places with no clue whatsoever as to the cause.I've seen numerous bugs filed that match this description, some of them marked fixed, others not.
Can anyone offer some clue on how to proceed? Any workaround would be much appreciated.
I think I have it figured out. In my case, it was probably some funky cake inheritance gone horribly wrong. At least removing some of that made those, seemingly unrelated, errors go away.
> <console>:13: error: erroneous or inaccessible type
def build = Bar(
^
class Foo {
def toInt = 12
}
case class Bar( fooBar : Int )
class Test {
var fooBar : Foo = null
def build = Bar(
fooBar = foBar.toInt
)
}
fooBar = foBar.toInt
fooBar = fooBar.toInt
Following error:> <console>:13: error: erroneous or inaccessible type
def build = Bar(
^could be reproduces with this sample code:class Foo {
def toInt = 12
}
case class Bar( fooBar : Int )
class Test {
var fooBar : Foo = null
def build = Bar(
fooBar = foBar.toInt
)
}Error disappears if I fix typo here:fooBar = foBar.toInttofooBar = fooBar.toIntScala version is 2.10.1