Toolbox has internal limitation to evaluate imports of nested packages. Assume there is a file defined following:
and usage in other file
Let us stop now in BREAKPOINT HERE and evaluate
Expression Evaluator context looks like following
And error:
Compilation failed
object bar is not a member of package foo
package foo
package bar
class Foo {
def bar = "bar in Foo"
}
and usage in other file
package acme
import foo.bar
object Main extends App {
(new bar.Foo).bar // <- BREAKPOINT HERE
}
Let us stop now in BREAKPOINT HERE and evaluate
val a = 42
Expression Evaluator context looks like following
{
import acme._;
import org.scalaide.debug.internal.expression.context._;
import org.scalaide.debug.internal.expression.proxies._;
import org.scalaide.debug.internal.expression.proxies.primitives._;
{
import foo.bar;
{
val __this: acme.Main.type = JdiContext.placeholder;
import __this._;
{
val a = 42;
()
}
}
}
}
And error:
Compilation failed
object bar is not a member of package foo
Leave a comment
on 2015-11-04 14:45 *
By wpopielarski769697
Description changed from Toolbox has internal limita... to Toolbox has internal limita...
Move ticket to next milestone.
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|