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 270895 - Folders disappeares in "General/Source folders" after add folder and close project props dialog
Summary: Folders disappeares in "General/Source folders" after add folder and close pr...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
Depends on:
Reported: 2017-06-16 15:02 UTC by morden
Modified: 2017-06-16 16:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

NetBeans invalid GUI behaviour - project example (64.41 KB, application/octet-stream)
2017-06-16 16:33 UTC, morden

Note You need to log in before you can comment on or make changes to this bug.
Description morden 2017-06-16 15:02:38 UTC
Project structure:


My steps:

1) Create new "C/C++ Application" project with "uncheck create main file" and select folder of project
2) "Add existing Items from folders" and select all files in subfolder "src" including jsoncpp. All files/folders was added
3) Add libraries and select "C++ 11" compiler
4) Add "src/jsoncpp" to "Build/C++ Compiler/Include Directories"
5) Add "src/jsoncpp" to "General/Source Folders". Result: two entries "src" and "src/jsoncpp"
6) Close properties dialog
7) Open project properties dialog again

Result: "src/jsoncpp" disapired from "General/Source Folders". I see only one entry "src" instead "src" + "src/jsoncpp". No any errors reported.

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2
Java: 1.8.0_131; Java HotSpot(TM) 64-Bit Server VM 25.131-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_131-b11
System: Linux version 3.13.0-119-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/xxx/.netbeans/8.2
Cache directory: /home/xxx/.cache/netbeans/8.2

Cross link:
Comment 1 morden 2017-06-16 16:04:49 UTC
Sorry. But little-bit invalid bug report.

1) I had added "src" to "Source Folders"
2) I had used "Add existing item" for select all files and my jsoncpp folder instead "Add existing item" for files in "src" foler and "Add existing items from Folders" for "src/jsoncpp" folder.
3) I had added "src/jsoncpp" to "Source Folders"

This behavior is really misleading since in any case see my jsoncpp folder and source files in project structure and of course I think that thay was really added. But this is not true.

Now all is works and I have only one entry "src/jsoncpp" in "General/Source Folders". "src" is not need.

But In any case bug is exist: no any errors, no any notifications/feedbacks from GUI for users about that folder was not added. You just add item to "General/Source Folders" and it disapears after closing dialog. And you break your head for hours for know in what is the problem.

Oh my brain...
Comment 2 morden 2017-06-16 16:33:35 UTC
Created attachment 164557 [details]
NetBeans invalid GUI behaviour - project example

Just open project properties and add "jsoncpp" folder to "General/Source folders". You will see that after press Ok and reopern properties "src/jsoncpp" entry was disappeared without any feedbacks/errors/notifications from GUI about problems.