This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 173184 - Uanble to unset a breakpoint after the file renamig
Summary: Uanble to unset a breakpoint after the file renamig
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 175523 (view as bug list)
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2009-09-28 10:24 UTC by Alexandr Scherbatiy
Modified: 2009-11-10 04:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-09-28 10:24:16 UTC
netbeans-trunk-nightly-200909221401-javafx-full.zip 

  Product Version         = NetBeans IDE Dev (Build 200909221401) (#038a2843d59a)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Create 'Main' JavaFX file
- Copy to the editor:
------------------------------------
var a = 10;
------------------------------------
- Set a breakpoint to the line
- Debug the project
 The debugger stops on the breakpoint
- Finish debugging

- Rename the 'Main' file to 'Main2'
- Try to unset the breakpoint
The red line still is shown
Comment 1 Michal Skvor 2009-10-15 19:22:03 UTC
Fixed.

Changeset: 2679:7249fb3f72ad
Comment 2 Lukas Hasik 2009-10-19 10:32:58 UTC
doesn't work - Product Version: NetBeans IDE 6.8 Beta (Build 200910171337)
I just followed the steps to reproduce on W.Vista
Comment 3 Petr Suchomel 2009-10-20 13:34:07 UTC
Linux does not work as well:
java.lang.NullPointerException
	at org.netbeans.modules.javafx.debugger.utils.Utils.getContextPath(Utils.java:46)
	at org.netbeans.modules.javafx.debugger.breakpoints.JavaFXLineBreakpoint.<init>(JavaFXLineBreakpoint.java:66)
	at org.netbeans.modules.javafx.debugger.breakpoints.JavaFXLineBreakpoint.create(JavaFXLineBreakpoint.java:91)
	at org.netbeans.modules.javafx.debugger.actions.JavaFXToggleActionProvider.doAction(JavaFXToggleActionProvider.java:58)
	at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:112)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
Comment 4 Petr Suchomel 2009-10-20 13:36:35 UTC
Works after restarting NetBeans. Seems there is some old info cached and the cache is not updated accordingly 
Comment 5 Michal Skvor 2009-10-23 15:42:20 UTC
Fixed.

2721:d230d549441d
Comment 6 Alexandr Scherbatiy 2009-10-27 15:35:37 UTC
After restarting IDE it works for me to.
But it it does not work for without the IDE restarting in the build 200910261401
Comment 7 Alexandr Scherbatiy 2009-10-27 15:37:08 UTC
*** Issue 175523 has been marked as a duplicate of this issue. ***
Comment 8 Michal Skvor 2009-11-02 12:59:34 UTC
This is probably also issue of registration in java debugger.
Comment 9 Martin Entlicher 2009-11-02 14:29:03 UTC
This seems to be some subtle problem in firing of the selected file - after you select another document and then back
the renamed one, breakpoints can be removed/added.
The same behavior is for Java files, therefore this is not JavaFX-specific.
Comment 10 Martin Entlicher 2009-11-04 10:51:11 UTC
Fixed in changeset:   152047:cb3e625b278e
http://hg.netbeans.org/main/rev/cb3e625b278e
Comment 11 Quality Engineering 2009-11-05 10:17:30 UTC
Integrated into 'main-golden', will be available in build *200911050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cb3e625b278e
User: mentlicher@netbeans.org
Log: #173184 - Listen on file renames.
Comment 12 Alexandr Scherbatiy 2009-11-10 04:48:32 UTC
verified in Build 200911091156