scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

Worksheet fails silently when a method is overriden #214

Open valtih1978 opened 9 years ago

valtih1978 commented 9 years ago

The following is won't run

object o {
    case class C() {
        def toString = "!"
    }
    val c = C                                 //> c  : o.C.type = C
}

and won't display any errors. Actually errors appear for a second and disappear immediately after save leaving me unsure if they are real or not. Everything is fine when I rename toString or add the override keyword.

Eclipce for RCP and RAP Luna Service Release 1a (4.4.1.20150109-0740 ) Scala 2.11.5 4.0.0.201501121807 org.scala-ide.scala211.feature.feature.group scala-ide.org Scala IDE for Eclipse 4.0.0.v-2_11-201501121809-027320c org.scala-ide.sdt.feature.feature.group scala-ide.org Scala Worksheet 0.2.6.v-2_11-201501131040-8101792 org.scalaide.worksheet.feature.feature.group Scala IDE

BTW, what is the difference between reporting here and at https://www.assembla.com/spaces/scala-ide/tickets? What is the difference between sites?

kiritsuku commented 9 years ago

Assembla is for the main scala-ide, whereas this repo is for the issues about the worksheet.

kiritsuku commented 9 years ago

The problem could be that you have "build automatically" enabled. See: https://groups.google.com/forum/#!topic/scala-ide-user/7ZJQeQL1Hy8

valtih1978 commented 9 years ago

Autobuild has no effect whatsoever.