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 237143 - "Run" dialog gets user crazy
Summary: "Run" dialog gets user crazy
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: igor_nikiforov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-15 15:16 UTC by Vladimir Kvashin
Modified: 2013-11-13 08:25 UTC (History)
1 user (show)

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 Vladimir Kvashin 2013-10-15 15:16:28 UTC
Here is the story. I have a project based on a custom makefile. 
It has several target binaries (well, originally there was the only one, but then I added some tests)

When I double-clicked one of these binaries (I wanted to run a test),
"Run" dialog appeared with fields:
- Executable
- Working dir
- Arguments
- Envorinments
(quite reasonable fields for "Run" dialog!)
- Some more fields

I wasn't attentive enough to read all fields, filled in the above ones and pressed ENTER

(Do *you* always read every word in every dialog? I can't believe you do!)

How surprised I was when I saw that now I have two projects with the same name in Projects pane!

That's absolutely inappropriate IDE behavior.
"Run" must run, not create a project.

Expected behavior:
- Run just runs the binary and *never* creates a project.

Please note that there is an item "Create a Project..." on a binary.
Comment 1 Vladimir Kvashin 2013-10-15 15:51:16 UTC
What drives me crazy is the fact that the binary I tried to launch alreary belongs to the open project. And after IDE creates a new project, it adds this binary to the "Important files"folder. And if I select it in the "Important files", and double-click and press enter - it creates one more new project and adds the binary to its "Important files", and so on.

But whoever will try fixing this:
please don't fix this particular effects.

The proper fix should be:
"Run" action never creates a new project. It just runs.
Comment 2 igor_nikiforov 2013-10-31 08:33:20 UTC
The fix is in internal repository:
  changeset: 272375:e5f1b350e8b3
Comment 3 Quality Engineering 2013-11-11 20:16:25 UTC
Integrated into 'releases/release74', will be available in build *201311111738* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/52df43a90e66
User: igor_nikiforov <igor_nikiforov@netbeans.org>
Log: Bug 237143 - "Run" dialog gets user crazy - fix.
(transplanted from e5f1b350e8b3047225bc3af9196147886a44eaf6)
Comment 4 soldatov 2013-11-12 12:39:48 UTC
verified in NetBeans IDE 7.4 (Build 201311111738)

No "Run" dialog if executable file was placed into "Important files" logical folder