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 125214 - C/C++ free form projects only honour sources in the Working Directory
Summary: C/C++ free form projects only honour sources in the Working Directory
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-14 13:43 UTC by simonis
Modified: 2008-02-26 13:06 UTC (History)
0 users

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 simonis 2008-01-14 13:43:56 UTC
If I create a new C/C++ project from existing code I have to specify an existing Makefile. In the "Build Actions" step,
I have to specify a working directory, which by default is the directory that contains the Makfile selected in the
previous step. The documentation in that step says: "Working Directory is the directory in which the Build and Clean
commands are executed". 

However, if this "Working Directory" is not the root directory of all the source files contained in this project, the
source files which are not nested inside the "Working Directory" are not displayed in the "Files view". Morover, the
Mercurial commads like "stat", or "diff" (and probably others more), if called on such a project, are only applied to
the files contained in the Working Directory (by default the one which contains the Makefile), no matter if additional
sources where added to the project.

I belive the "Files" view should show all the source files that have been added to the project, not just the ones
contained in the "Working Directory". Also, actions called on the project should take into account all the source files
of the project, not just the ones contained in the "Working Directory".

Alternatively, you could change the documentation of "Working Directory" to soemthing like: "Attention: Working
Directory MUST be a root directory of all source files of this project. But I think that would be only the second best
solution because it it probably not unusual to have Makefiles that are not in the root direcotry of a project (e.g. the
hotspot project which has its Makefile in make/Makefile).

Volker Simonis

PS: my configuration

Suse Enterprise Linux 9.3, 4 Intel Xeon CPUs at 3GHz, 4GB Memory

Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.5-7.283-bigsmp running on i386; UTF-8; en_US (nb)
Comment 1 Thomas Preisler 2008-02-14 05:59:10 UTC
Fixed.

C/C++ project now support multiple source folders.

Folders from the Source Files panel in wizard are automatically added to the project. The list of source folders is also editable in the project's properties.
Comment 2 soldatov 2008-02-26 13:06:46 UTC
I will close this bug, but I think the added table can confuse users (see issue 128430)
Verified in NetBeans IDE Dev (Build 200802251204)