Bug 247766 - Incorrect editor opened on breakpoint when delta pack is installed in target
Summary: Incorrect editor opened on breakpoint when delta pack is installed in target
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows Vista
: P3 major with 2 votes (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-17 21:19 EDT by Will Horn CLA
Modified: 2010-04-29 11:28 EDT (History)
8 users (show)

See Also:
curtis.windatt.public: review+


Attachments
patch (6.11 KB, patch)
2010-04-07 21:28 EDT, Darin Wright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Will Horn CLA 2008-09-17 21:19:15 EDT
Build ID: 3.4 GA I20080617-2000

Steps To Reproduce:
1. Extract Eclipse Ganymede RCP build
2. Extract Windows RCP SDK and Delta Pack to another directory
3. Start Eclipse Ganymede RCP IDE
4. Set target platform to dir in step 2.
5. Create Hello World RCP app using wizard and accepting defaults.
6. Open Shell.class (Ctrl+Shift+T).  This opens the "ClassFileEditor".
7. Put a breakpoint on first line in the open() method.  You can see the little blue dot in the margin.
8. Debug the RCP application
9. Breakpoint is hit.  Instead of taking me to the earlier Shell.class editor, a new editor is opened, a "CompilationUnitEditor".  I do not see my blue breakpoint dot, I do not have Ctrl+Shift+I inspection*, and I am put in the middle of a comment in the solaris.gtk.sparc version Shell.java.

More information:
*Ctrl+Shift+I gives this error - "Unable to evaluate the selected expression: To perform an evaluation, an expression must be compiled in the context of a Java project's build path. The current execution context is not associated with a Java project in the workspace."
Comment 1 Chris Aniszczyk CLA 2008-09-22 18:12:00 EDT
debugging overlords, any thoughts?
Comment 2 Curtis Windatt CLA 2009-03-16 12:59:52 EDT
Possible dupe of bug 260850.  The PDE Source lookup director had no way of knowing what fragment we were actually running.

*** This bug has been marked as a duplicate of bug 260850 ***
Comment 3 Will Horn CLA 2009-03-16 21:57:14 EDT
I tried the steps on 3.5M6 with the same results (actually the carbon.macosx version came up this time, but it's effectively random).

So...can this be reopened or is it a WONTFIX??
Comment 4 Darin Wright CLA 2009-03-16 23:09:34 EDT
Needs more investigation.
Comment 5 Chris Aniszczyk CLA 2009-03-18 17:59:01 EDT
This needs to be addressed before 3.5 is out the door.
Comment 6 Eric Rizzo CLA 2009-03-19 10:56:28 EDT
This is also problematic if a team is trying to use a shared target platform and different team members are developing on different platforms. For example, most work on windows but some work on OS X, so both SWT source plug-ins are installed. But it is not predictable which one will be loaded by the debugger.
This is almost a show-stopper for cross-platform development with a shared target platform.
Comment 7 Darin Wright CLA 2009-04-22 16:56:01 EDT
This works for me using the latest I-build (I20090421-0930). Can anyone else verify this? I think it's a dup of bug 260850.
Comment 8 Darin Wright CLA 2009-04-22 16:56:31 EDT

*** This bug has been marked as a duplicate of bug 260850 ***
Comment 9 Lukas Myslivec CLA 2009-07-21 09:21:38 EDT
Hi,

i run into the same problem and were very happy to read that it has been fixed.

so i have tried it with build I20090619-0625 and it ends with the same error -> "unable to evaluate the selected expression"

any help on that?

regards
lukas
Comment 10 Darin Wright CLA 2009-07-27 09:14:54 EDT
Needs investigation.
Comment 11 Christoph Dittberner CLA 2010-03-26 10:54:24 EDT
Eclipse 3.5.2 
Build id: 20100218-1602

This bug is still not fixed and debugging of SWT classes doesn't work as expected if the target platform contains the delta pack ...
Comment 12 Darin Wright CLA 2010-04-07 16:31:00 EDT
This works for me in 3.6, but *not* on 3.5.2
Comment 13 Darin Wright CLA 2010-04-07 17:45:58 EDT
There does appear to be a bug here... Our original test case for bug 260850 dealt with hosts/fragments in the workspace. The code path here is different as the host/fragments are external. 

Needs more investigation.
Comment 14 Darin Wright CLA 2010-04-07 21:28:54 EDT
Created attachment 164158 [details]
patch
Comment 15 Darin Wright CLA 2010-04-08 09:25:28 EDT
Applied/Fixed. Please verify, Curtis.
Comment 16 Curtis Windatt CLA 2010-04-29 11:28:54 EDT
Verified.