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 195885 - --test-userdir-lock-with-invalid-arg prevents options to be parsed
Summary: --test-userdir-lock-with-invalid-arg prevents options to be parsed
Status: RESOLVED DUPLICATE of bug 193681
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: Other Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 18:20 UTC by Jaroslav Tulach
Modified: 2011-02-28 16:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Hg bundle with my project (2.74 KB, application/octet-stream)
2011-02-23 18:21 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2011-02-23 18:20:07 UTC
My customer complains that in spite of provided various options through run.extra.args in a project, those options are not always passed into its application.

A bit of investigation turned out that (if there is a $userdir/lock file), additional parameters are passed to the application, especially "--test-userdir-lock-with-invalid-arg". I am not sure what module is supposed to handle this argument, but in simple NetBeans Platform Application there is none. 

That means the command line is found invalid and none of its arguments are processed.

To simulate, use the attached Hg bundle and:
1. start the application with Ctrl-F5
2. properly close the main window
3. start with Ctrl-F5 once again
check: so far no asserts
4. stop with Shift-F5
5. start with Ctrl-F5
failure: assert is shown, as the command line processor is not invoked.
Comment 1 Jaroslav Tulach 2011-02-23 18:21:56 UTC
Created attachment 106357 [details]
Hg bundle with my project
Comment 2 Jesse Glick 2011-02-24 18:50:19 UTC
Currently WONTFIX; do not use Finish Debugger, just close the app normally.

*** This bug has been marked as a duplicate of bug 193649 ***
Comment 3 Jaroslav Tulach 2011-02-25 19:08:16 UTC
Finish debugger is a natural end of majority of debugging sessions. Explain why it breaks subsequent run in case of NetBeans platform based applications, before trying to close as won'tfix.
Comment 4 Jesse Glick 2011-02-28 16:13:27 UTC

*** This bug has been marked as a duplicate of bug 193681 ***