Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 5510

Summary: Cannot evaluate in scrapbook - unable to create eval context
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2001-11-02 17:05:57 EST
Build 20011025 (206)

In a self-hosting workspace, define a new project 'Crap', then add to its 
prerequisite projects 'org.eclipse.jdt.core'.

Create a scrapbook page under the project root (when the project has a source 
folder 'src'). 

In the scrapbook page, try to evaluate:

Object obj = "test";                                                  
  obj = obj + "ing";                                                    
  System.out.println(obj);  

I got a dialog complaining about not being able to create an evaluation 
context, even after switching JRE.
Comment 1 Darin Wright CLA 2001-11-02 18:34:41 EST
This error means that launching the VM for evaluation has failed or timed out. 
When I tried the same scenario in 20011101, the evaluation worked, and 
returned "(no explicit return value)".

However, we need provide better feedback and/or relaunch when this occurrs.
Comment 2 Philipe Mulet CLA 2001-11-03 03:07:04 EST
I presume this mostly occurs on the first run. I got it to fail every time in 
sequence, yesterday, and today succeeded at the second attempt.

Could you make the first run special, or timeout differently so that you would 
not be affected by the VM initialization ? (on first run you could run a dummy 
snippet first to get things initialized, and this one would have a progress 
monitor).
Comment 3 Darin Wright CLA 2001-11-20 10:01:04 EST

*** This bug has been marked as a duplicate of 5163 ***