Any way to safely step through plugin code that results in popup menus? [message #1713948] |
Sun, 08 November 2015 20:04  |
Eclipse User |
|
|
|
On a single laptop, I'm attempting to step through code in an Eclipse plugin. Some of this code results in popup menus being populated and rendered.
While stepping through this code, I ran into a frustrating situation where the system seemed to be "focus deadlocked". A popup menu for the test instance displayed on top of the main instance, and at that point, the only thing I could do was move the mouse cursor. The entire system was essentiallly frozen. I also tried numerous keyboard combinations, none of which appeared to be acknowledged in any way. The only action that did anything useful was the power button, which I eventually resorted to.
I believe one "safer" way of doing things like this is displaying each instance on separate monitors. I believe that's supposed to prevent this sort of deadlock, but I'm not sure. In any case, I won't be able to do that. Is there anything I can set in my Eclipse environment that will prevent these deadlocks from occurring in this situation?
|
|
|
Re: Any way to safely step through plugin code that results in popup menus? [message #1713964 is a reply to message #1713948] |
Mon, 09 November 2015 03:09   |
Eclipse User |
|
|
|
David,
I've run into these kinds of problems debugging drag and drop logic.
Separate monitors does not help; I have that and the problem is the
same. There's only one focus and internally in the code there is only
one Display. In my situation, Ctrl-Atl-Delete helped unlocked the
windowing system. I've certainly never had to power down...
On 09/11/2015 2:04 AM, David M. Karr wrote:
> On a single laptop, I'm attempting to step through code in an Eclipse
> plugin. Some of this code results in popup menus being populated and
> rendered.
>
> While stepping through this code, I ran into a frustrating situation
> where the system seemed to be "focus deadlocked". A popup menu for
> the test instance displayed on top of the main instance, and at that
> point, the only thing I could do was move the mouse cursor. The
> entire system was essentiallly frozen. I also tried numerous keyboard
> combinations, none of which appeared to be acknowledged in any way.
> The only action that did anything useful was the power button, which I
> eventually resorted to.
>
> I believe one "safer" way of doing things like this is displaying each
> instance on separate monitors. I believe that's supposed to prevent
> this sort of deadlock, but I'm not sure. In any case, I won't be able
> to do that. Is there anything I can set in my Eclipse environment
> that will prevent these deadlocks from occurring in this situation?
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Any way to safely step through plugin code that results in popup menus? [message #1717192 is a reply to message #1714582] |
Thu, 10 December 2015 11:00  |
Eclipse User |
|
|
|
After using this arrangement for a few weeks now, I can report one particular chronic problem with it. The workspace on the guest gets "corrupted" in some way that I'm unable to understand. The only symptom I see is that I start up Eclipse on the guest and it fails to show the source file in the editor view, and there are no projects listed. The error message in the editor view is happening because it can't find the project the source file is associated with. I've posted a question on the forum about this, and filed a bug, but there's been no progress on it. The only workaround I can see that is likely to make a difference is to copy the files into the workspace. That will be very annoying, as I'll have to redo this every time I actually make any changes to the source files on the host, where I'll actually be doing the work. I wonder if it would make sense to set up some sort of "sync" process between them?
Note that I set up the original workspace by simply creating the workspace on the guest, and "Import Existing Projects" and pointing to the shared folder linked to the host. This results in a separate workspace on the guest, but with the project files on the host. Is that the arrangement you were using, or something different?
[Updated on: Thu, 10 December 2015 11:08] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04778 seconds