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 181605 - Addition of *.cpp and *.h files only is not right
Summary: Addition of *.cpp and *.h files only is not right
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: Alexey Vladykin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-06 14:56 UTC by daorus
Modified: 2010-03-12 15:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suggested patch (2.06 KB, patch)
2010-03-11 12:10 UTC, Alexey Vladykin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description daorus 2010-03-06 14:56:19 UTC
Qt Project 
-> Project Tab 
-> Source Files 
-> Right Click 
-> Context Menu 
-> Add Existing Items from folders... 
-> Add Folder ... 
-> Select 
-> Ignored Folders Pattern (empty) 
-> Add

Only *.cpp and *.h files are added, the rest files are ignored. The rest must be ignored only if "Ignored Patterns" are filled but with empty "Ignored Patters" all the files must be added recursively. Now we have to add manually all the files for every folder with Add existing item... which is quite annoying.

In general it is quite a killing thing, that there is a "logical folders" concept is on. Why do they prohibit to just mirror filesystem structure?! Now we always have to manually syncronize filesystem structure and project file structure.
Comment 1 Alexey Vladykin 2010-03-11 06:07:38 UTC
Ability to mirror filesystem folders in Projects view is a good enhancement, and I suggest you to file it separately. As a temporary workaround please use Files view.

As for the addition of *.cpp and *.h files only, what else do you want to add to Source Files logical folder? Qt files like *.ui and *.qrc?
Comment 2 daorus 2010-03-11 06:32:55 UTC
> Ability to mirror filesystem folders in Projects view
> is a good enhancement, and I suggest you to file it
> separately. As a temporary workaround please use
> Files view.

yes, we already do use it, but comfort is not so great.

> As for the addition of *.cpp and *.h files only, what
> else do you want to add to Source Files logical folder?
> Qt files like *.ui and *.qrc?

yes, and also *.qml, *.css, *.js, *.html and *.sql files

by the way, if it is possible, would be so great
to add feature to *.qml context menu "Run", cause
*.qml is self-run file like *.html in browser

for now we have to manually start *.qml files
via Windows Exlorer
Comment 3 Alexey Vladykin 2010-03-11 12:10:27 UTC
Created attachment 95059 [details]
Suggested patch
Comment 4 daorus 2010-03-11 12:16:27 UTC
> Suggested patch

I'm new to the community and I don't know all the
protocol procedures, required from my side in this
situation. If I have to click somewhere, vote, 
write a letter or something - just let me know.
I will do, cause we all do very important activity.
Comment 5 Alexey Vladykin 2010-03-11 15:42:03 UTC
Nothing is required from your side, thank you :)
I'll test the fix and, if it doesn't have negative side effects, integrate it soon.
Comment 6 daorus 2010-03-11 16:35:40 UTC
>I'll ... integrate it soon

Great! Will it be enougn to just "Check updates", 
or some special actions sould be undertaken to
start using your fix?
Comment 7 Alexey Vladykin 2010-03-12 13:24:10 UTC
Fix changesets:
http://hg.netbeans.org/cnd-main/rev/4fc4fdfb3e66
http://hg.netbeans.org/cnd-main/rev/659c4da03ed2
The fix has evolved significantly since yesterday :)

The behavior of Add Existing Items from Folders is now affected by the following:
- NetBeans global file filter: Tools -> Options -> Miscellaneous -> Ignored Files Pattern (this is exactly as it was before the fix)
- CND-specific setting: Tools -> Options -> C/C++ -> Project Options -> Show binary files in Project view  (this behavior is added by the fix)
- project-specific setting: project properties -> General -> Ignored Folders Pattern  (this is exactly as it was before the fix)
- Exclude Pattern field in the "Add Files" dialog  (this behavior is added by the fix, because the value of this field was not used at all previously)

The fix will be available in development builds (http://bits.netbeans.org/download/trunk/nightly/latest/) soon and eventually in NetBeans 6.9.
If QA nominates this bug for the next NB6.8 patch, it will be delivered to you as an update when patch 2 is released. But I can't guarantee that it will happen.

Please file your request about *.qml files as a separate enhancement.
Comment 8 daorus 2010-03-12 15:17:05 UTC
Alexey Vladykin did a great job and did 
it fantasticly fast, cause it is important!
Huge respect!