This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 196488

Summary: org.netbeans.modules.scala.core.interactive.RangePositions$ValidateException: Enclosing tree [19104] does not include tree [19094]
Product: contrib Reporter: teras <teras>
Component: ScalaAssignee: _ dcaoyuan <dcaoyuan>
Status: NEW ---    
Severity: normal CC: andreluizferreirapinto, douglasv
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 167442
Attachments: stacktrace

Description teras 2011-03-09 12:54:25 UTC
Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326
OS: Mac OS X

User Comments:
GUEST: adding an import statement

GUEST: I was just working together with the lift mapper library. The editor reported an error, and then i changed it and it afterwards wouldnot color highlight in the document.

GUEST: editing a case for a pattern match; dot accessing the values in an enumeration

GUEST: dot lookup for a java class imported from a JAR

GUEST: using auto complete

douglasv: typing scala code

print(greetStrings.  , When I typed the period the error happened

was printing greetStrings.update(2, "world!\n")

 for(i <- 0 .to(2)) , when typing the period here, the previous error report was sent to you

douglasv: typing scala code

teras: I was trying to create a scala object




Stacktrace: 
org.netbeans.modules.scala.core.interactive.RangePositions$ValidateException: Enclosing tree [19104] does not include tree [19094]
   at org.netbeans.modules.scala.core.interactive.RangePositions$class.error$1(RangePositions.java:202)
   at org.netbeans.modules.scala.core.interactive.RangePositions$class.validate$1(RangePositions.java:216)
   at org.netbeans.modules.scala.core.interactive.RangePositions$$anonfun$validate$1$8.apply(RangePositions.java:234)
   at org.netbeans.modules.scala.core.interactive.RangePositions$$anonfun$validate$1$8.apply(RangePositions.java:234)
   at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.java:61)
   at scala.collection.immutable.List.foreach(List.java:45)
Comment 1 teras 2011-03-09 12:54:29 UTC
Created attachment 106855 [details]
stacktrace