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.
I've never seen this item enabled. I'm attaching debugger to an application running on another virtual machine using dt_shmem. Fix action is always disabled. I'm unable to fix & cont.
Cannot reproduce. Fix action is disabled if: 1) the debugee VM does not support the feature 2) there is no Main project in IDE 3) the Main project does not support the "debug.fix" command 4) build.xml file is missing from the J2SE project 5) Projects Sources directory is not set Please check if anything applies to your case and/or provide more info about how to reproduce, including versions of JDK and OS used, project configuration, etc.
1. JDK 1.4.2_03 2. Main project is Editor 3. I don't have IDEA what "debug.fix" command is. Is this command documented somewhere? 4. I have build.xml file 5. Projects Sources as well.
I see that the Editor and all other Netbeans' projects does not support the debug.fix command. It is one of those build, run, debug, etc. commands that projects support. Standard J2SE project supports the debug.fix command and Fix works just fine there. You can verify that by creating a simple J2SE project from scratch. Assigning to apisupport for evaluation because I see this is the provider of nb projects.
Right, debug.fix is not currently supported for NBM projects. I think it could be easily. Have not evaluated yet.
NBM projects is the only type of project I'm using. This issue prevents me from switching from NB 3.6 debugger to NB 4.0 debugger. I really appreciate if "debug.fix" command will be implemented soon.
Hopefully fixed, but I don't have things set up to test it properly, so please verify or reopen as needed: committed * Up-To-Date 1.21 apisupport/project/src/org/netbeans/modules/apisupport/project/Actions.java committed * Up-To-Date 1.23 nbbuild/templates/projectized.xml
"Run | Fix" is still always disabled :(
Well the ActionProvider for an NBM project returns true from isActionEnabled(JavaProjectConstants.COMMAND_DEBUG_FIX, Lookups.singleton(DataObject.find(someJavaFileInProject)); I just unit tested it. However the Fix menu item is indeed disabled. I can't guess why; this menu item is implemented in the debugger module and its impl is not trivial.
This issue does not affect our users (they do not need NBM projects as I know). So it can not be a P2.
NetBeans developers are also NetBeans users. You should not ignore this community. P2 is adequate priority according bug priority guidelines: 1. Product feature is significantly affected, a workaround may exist but is difficult to use or impractical 2. Affects another developer's progress Let this issue be P2 or provide me a workaround.
Agree with Hanz - was marked P2 in apisupport, but it is not necessarily a P2 for debuggercore or the product. Now it looks to me like Fix is enabled if and only if (1) the debugger is already running (of course), (2) the source file is contained in the main project. This is so regardless for both NBM projects and j2seproject's. True? If so, doesn't #2 prevent you from fixing code in a subproject while debugging the master project? I'm not sure I understand what's going on here.
I'm sorry. Jesses fix works somehow. I did not have Main Project properly set. Anyway this command still does not work for me. Output from debugger console: debug-fix-nb: Classes to be reloaded: org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$1 org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$2 org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$3 org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$DiffList org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$ErrorInfoImpl org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$ErrorList org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl$PosInfo org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl D:\sources\trunk\nbbuild\templates\projectized.xml:353: java.lang.NullPointerException BUILD FAILED (total time: 0 seconds) Any ideas?
Run with -verbose to get a stack trace!
This NPE is random. I'll attach stack trace as soon as it happens again.
I have a stack trace.
Created attachment 17288 [details] Stack trace
The NPE was fixed in issue 47953. Reopen if still does not work.
One more issue which I just fixed was that Run->Fix did not work on unit tests. Fixed in: apisupport/project/src/org/netbeans/modules/apisupport/project/Actions.java; new revision: 1.26; previous revision: 1.25 nbbuild/templates/projectized.xml; new revision: 1.27; previous revision: 1.26
VERIFIED