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 270059 - Cannot create working project from existing files
Summary: Cannot create working project from existing files
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-13 02:14 UTC by Paul17041993
Modified: 2017-03-16 05:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (177.10 KB, text/plain)
2017-03-13 02:14 UTC, Paul17041993
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul17041993 2017-03-13 02:14:51 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.8.0-41-generic running on amd64
Java; VM; Vendor = 1.8.0_101
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Reproducibility: Happens every time

STEPS:
  * open new project dialogue
  * select either new c++ from existing files or new c++ application
  * set directory to existing sources

ACTUAL:
  * new c++ from existing sources will not create adequate build and config files, leaving a mostly empty configuration with no way to add compile options etc
  * new c++ application errors out with a hidden error, probably due to the root directory already existing but no errors are ever shown, nor is there any way to handle this

EXPECTED:
  * adequate files generated for existing source option
  * proper error handling and workaround options on other project creation methods
Comment 1 Paul17041993 2017-03-13 02:14:57 UTC
Created attachment 163823 [details]
IDE log
Comment 2 Alexander Simon 2017-03-15 11:14:15 UTC
1. New c++ application is not designed for create project with existing source.
You can select folder with existing source and add all needed source files late.
2. New c++ project with existing files relies on existing build system (makefile, configure,..). IDE adds files after building project in IDE.
Comment 3 Paul17041993 2017-03-15 22:08:08 UTC
(In reply to Alexander Simon from comment #2)
> 1. New c++ application is not designed for create project with existing
> source.
> You can select folder with existing source and add all needed source files
> late.
> 2. New c++ project with existing files relies on existing build system
> (makefile, configure,..). IDE adds files after building project in IDE.

- still not helpful that it doesn't tell you any errors that occur.

- and what if the existing sources don't have a build system at all? then what? additionally the standard build option will not fire commands as they would via a terminal
Comment 4 Alexander Simon 2017-03-16 01:03:18 UTC
(In reply to Paul17041993 from comment #3)
> - still not helpful that it doesn't tell you any errors that occur.
I do not understand what you mean. Please clarify.

> - and what if the existing sources don't have a build system at all? then
> what? 
As I said you have a choice:
- create "managed" project from scratch (Application). IDE will automatically support makefile. Add needed source files. Define source file properties (user defined macros, include pats, standards, ...). IDE reflects all changes in supported makefile. You can build/debug IDE project.
- create project with existing sources. Do not use configure and build. IDE adds all sources in the IDE project without any source file properties (user defined macros, include pats, standards, ...). As result you will have bad quality project that cannot be build/debug.

>additionally the standard build option will not fire commands as they
> would via a terminal
Again I do not understand what you mean. Please clarify.
Comment 5 Paul17041993 2017-03-16 04:22:07 UTC
- If an error occurs during project creation, nothing happens. No error printed, nothing, it just sits there like you never pressed the next or finish buttons.

- The options in the build config are pseudo CLI, you can put commands in only for very specific things, any form of CLI wildcards or other options will not be understood or executed.
Comment 6 Alexander Simon 2017-03-16 05:18:09 UTC
(In reply to Paul17041993 from comment #5)
> - If an error occurs during project creation, nothing happens. No error
> printed, nothing, it just sits there like you never pressed the next or
> finish buttons.
It is a bug. Please file separate issue with steps to reproduce.
> 
> - The options in the build config are pseudo CLI, you can put commands in
> only for very specific things, any form of CLI wildcards or other options
> will not be understood or executed.