Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 5510 - Cannot evaluate in scrapbook - unable to create eval context
Summary: Cannot evaluate in scrapbook - unable to create eval context
Status: RESOLVED DUPLICATE of bug 5163
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-02 17:05 EST by Philipe Mulet CLA
Modified: 2001-11-20 10:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***