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.
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)
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.
I will close this bug, but I think the added table can confuse users (see issue 128430) Verified in NetBeans IDE Dev (Build 200802251204)