Summary: | breakpoint management not allowed | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Tools] PTP | Reporter: | marcelo vanti <vanti.furb> | ||||||||
Component: | Photran.Debugger & Console View | Assignee: | Jeffrey Overbey <com-eclipse-dot-org> | ||||||||
Status: | RESOLVED FIXED | QA Contact: | |||||||||
Severity: | critical | ||||||||||
Priority: | P1 | CC: | christian.rab, claus.haslauer, com-eclipse-dot-org, dharenberg, kabanovdmitry, mgarraha, neal.kruis, nicolas.blanc, rayden, samuel.debionne | ||||||||
Version: | 6.0 | ||||||||||
Target Milestone: | 8.0.4 | ||||||||||
Hardware: | PC | ||||||||||
OS: | Windows 7 | ||||||||||
Whiteboard: | |||||||||||
Attachments: |
|
Description
marcelo vanti
2012-07-03 13:45:27 EDT
*** Bug 384226 has been marked as a duplicate of this bug. *** Although Bug 384226 is a duplicate of this bug, I just want to mention that this also happens in Linux and Mac OSX and also with Photran Version 8.0. Hi, I reproduced the problem. I can't set breakpoints by clicking. Only "parallel breakpoints" types are available (green ones). I work with linux64, Eclipse Juno Release Build id: 20120614-1722, and PTP version 6.0.0.201206130201 Update 6.0.1 from http://download.eclipse.org/tools/ptp/updates/juno does not solve this problem. Does anybody have a solution ? Thanks I can also confirm this bug on Windows and MacOSX with Photran version 8.0. Any idea when this might be resolved? Thanks! I found that it is possibile to set breakpoints by manually adding them to the .gdbinit file. e.g. break <file>:<line number> it is just not possible to add them via the interface. (In reply to comment #3) > I reproduced the problem. I can't set breakpoints by clicking. Only > "parallel breakpoints" types are available (green ones). > I work with linux64, Eclipse Juno Release Build id: 20120614-1722, and PTP > version 6.0.0.201206130201 > > Update 6.0.1 from http://download.eclipse.org/tools/ptp/updates/juno does > not solve this problem. Photran 8.0.2.201209141911 and PTP 6.0.2.201209181406 behave the same way for me (Sun Java 1.6, openSUSE 11.4, x86_64). Please make this a priority. I will keep using Indigo until this is fixed in Juno. I can confirm that this does not work with the latest updates, i.e. with PTP 6.0.2/Photran 8.0.2 on Ubuntu 12.04 with Eclipse Juno. Right-clicking on the line numbers to manage breakpoints shows all breakpoint actions greyed out. Cannot set breakpoints in the Breakpoint View either. Please make this highest importance. Thanks! With Photran 8.0.2 / eclipse 4.2.1 on OS 10.8.2 I experience the same issue. I'd appreciate a fix. Thank you. Claus Has this been fixed in Photran 6.0.3 (released today)? If not, is there a target release / date? I can confirm that this does not work with the latest updatesPhotran 8.0.3 on Windows 7 x64. Please make this highest importance. Thanks! Eclipse with PTP 6.0.3 and Photran 8.0.3 has the same issue. Please fix it! Created attachment 225658 [details]
fix
After debugging for a while I found out that no ToggleBreakpointsTargetFactory could be created for FortranEditor --ToggleBreakpointsTargetManager.getToggleBreakpointsTarget(IWorkbenchPart, ISelection) line: 535.
Then I noticed that the extension org.eclipse.debug.ui.toggleBreakpointsTargetFactories was commented out in Plugin org.eclipse.photran.ui/plugin.xml.
Just re-enabling the plug-in did not work because the class org.eclipse.cdt.debug.internal.ui.actions.ToggleCBreakpointsTargetFactory could not be found at runtime from org.eclipse.cdt.photran.ui.
So to avoid this issue, I created an empty class from ToggleCBreakpointsTargetFactory and added a dependency for org.eclipse.cdt.debug.ui in org.eclipse.photran.ui.
After tese steps I could finally set\remove breakpoints in Fortran again.
I hope that some more exprienced Photran developer can pickup from here and help fix this issue.
Created attachment 225690 [details]
fix
Created attachment 225693 [details]
fix
Actually, one only needs to re-enable the extension ToggleCbreakpointsTargerFactory and add a dependency for org.eclipse.cdt.debug.ui to fix this issue.
The extension was disabled in revision: ed686fe64b33d7cc10bcbd47f6690a4812992d89. commit ed686fe64b33d7cc10bcbd47f6690a4812992d89 Author: Jeffrey Overbey <jeffreyoverbey@acm.org> Date: Thu Oct 13 23:51:03 2011 +0000 Bug 360891 - [Architecture] Photran core, core.vpg, and UI should not depend on CDT - removed dependencies from photran.ui Thanks for looking at this, Nicolas. I'll try to take over and commit a fix this weekend. Your patch gives me enough information to fix the problem. Thanks! In the revision you mentioned, the CDT-dependent editor code (or most of it?) was moved from photran.ui into photran.cdtinterface, so I might end up putting the fix there instead of directly in photran.ui... Thanks again for the help. This is fixed in ptp_6_0 for Juno SR2. I still need to merge the fix into HEAD. Yay, great news! Thanks Nicolas and Jeff! This is so important for me! Looking forward to Juno SR2! This is fixed in HEAD for Photran 8.1 (as well as Juno SR2). |