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.
[200509041800] Scenario: 1) Run Module project 2) Debug Module project The module was only redeployed. No debug started. User should be at least informed that the proccess must be stopped before the debug is started.
No idea how to do that.
Implent -exitide command (cli). Use the exitide when exists lock in IDE. It doesn't seem be so dificult.
Might work.
Potentially simpler fix: in {Module,Suite}Actions, for COMMAND_{RUN,DEBUG} (except COMMAND_RUN in ModuleActions which is currently bound to reload - an inconsistency reported elsewhere), check whether project.getHelper().resolveFile(project.evaluator().evaluate("${test.user.dir}/lock")).isFile(). (Currently SuiteProject.createEvaluator fails to define the default value for test.user.dir - should be fixed to be like Evaluator.) If the file exists, show a warning to the user and do not run the Ant target. ModuleOperations.canRun already does something similar (a little more verbosely than necessary due to its usage of FileObject's).
Actually I will take this one.
core-main #a89f924f468e
Integrated into 'main-golden', available in NB_Trunk_Production #271 build Changeset: http://hg.netbeans.org/main/rev/4b181e90ae86 User: Jesse Glick <jglick@netbeans.org> Log: Refinements to #72397: prevent project operations while application is running. 1. Make it work for suite projects, not just module projects. 2. Make it work for suite component and nb.org modules, not just standalone modules. 3. Fix test to use ContextAwareAction (not sure how it could ever have passed before). 4. Consolidating lock-detection logic in preparation for #63652 (prevent run while app running).