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 105491 - compiler chooser should not pick directories
Summary: compiler chooser should not pick directories
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 22:52 UTC by ivan
Modified: 2009-11-04 22:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
make directory in make command field (84.95 KB, image/png)
2008-03-26 16:17 UTC, alexandrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2007-06-02 22:52:57 UTC
I have a subdirectory in my home directory named 'make'.
The compiler chooser picked it! and tried to build using this:
    /home/ivan/./make
Comment 1 Thomas Preisler 2008-03-11 04:24:00 UTC
Fixed. Directories are no longer picked up as a compiler/make tool.                               
Comment 2 alexandrov 2008-03-14 14:16:18 UTC
verified in build 20080314
Comment 3 alexandrov 2008-03-14 17:02:23 UTC
It works only for newly created collections. 
But if to add folder where make is subfolder to the PATH and start IDE with fresh userdir then make directory is still
picked.  
Comment 4 Thomas Preisler 2008-03-15 05:07:11 UTC
1) I cannot reproduce it as you describe
2) I don't understand how it can happen by looking at the code. The code that handles new tool sets and default tool
sets are the same so if works for one, it should work for the other.
Please try again....
Comment 5 alexandrov 2008-03-26 16:15:19 UTC
Steps to reproduce on windows platform:
1. mkdir C:\MinGW\bin\make
2. export PATH=C:\MinGW\bin\:$PATH (make sure there are no additional 'make' utilities in the PATH)
3. start IDE with fresh userdir
4. Open Tools/Options/C/C++
Make command textfield contains red text C:\MinGW\bin\make
in the bottom of the window: "Make is missing or invalid"
see attachment. 
Comment 6 alexandrov 2008-03-26 16:17:24 UTC
Created attachment 59147 [details]
make directory in make command field
Comment 7 Thomas Preisler 2009-11-04 04:49:44 UTC
Fixed.
Comment 8 Quality Engineering 2009-11-04 22:30:43 UTC
Integrated into 'main-golden', will be available in build *200911041401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cf2e5d96aa82
User: Thomas Preisler <thp@netbeans.org>
Log: #105491 compiler chooser should not pick directories