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 124096 - NetBeans/Ruby should show me everything inside the project directory
Summary: NetBeans/Ruby should show me everything inside the project directory
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks: 117668
  Show dependency tree
 
Reported: 2007-12-16 17:29 UTC by plmayer
Modified: 2008-04-25 13:04 UTC (History)
3 users (show)

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 plmayer 2007-12-16 17:29:44 UTC
Coming from Eclipse, I found the NetBeans Ruby environment to be really great, especially when it comes to code
navigation and usage discovery. However, one thing is really annoying: Not being able to access all files within the
directory.

My use case is that I have some files in the root directory - AUTHORS, VERSION, and so on, which are not shown. Also,
the vendors/ directory is missing, so I cannot edit contributed files. What's worst is that CVS support is there for
these hidden files, but I can NOT resolve any conflicts in those files simply because I do not see them. I have to fall
back to other CVS clients for this, which is really annoying.

PLEASE add an option for me to disable hiding of files. This is really not needed for advanced users. Thanks!!
Comment 1 Tomas Danek 2007-12-17 12:34:21 UTC
Hi,
there are two different views (windows) in NetBeans; Projects view (ctrl-1) and Files view (ctrl-2). Since projects view
shows *logical* structure of your project directory, you should use in such a case files view, which reflects directory
structure as it is saved on disk. You should see there *all* [1] files that are stored in you project folder. 

[1]
If you still do not see (in files view) files you want (like CVS metadata,..), try hacking "ignored files" option; this
option is accessible in Tools|Options|Advanced option in IDE Configuration|System|System settings. You can edit the
regexp which defines files "invisible" for IDE.
Comment 2 Torbjorn Norbye 2007-12-17 22:05:58 UTC
Note first that you can switch to the traditional Rails file view for your project even within the projects view, see
the options (Tools | Options | Ruby | Platform). You have to restart the IDE.

The "Vendor" directory was hidden in 6.0 as part of a number of other bug fixes. See this issue for details:
http://www.netbeans.org/issues/show_bug.cgi?id=123146
Note however that this has been fixed in 6.1, and the Vendor directory is there in the project view and files view now.

I'm not sure why AUTHORS and VERSION aren't showing up in your project.  I tried a simple experiment for myself; outside
the IDE I created files named AUTHORS and VERSION (text files containing some text) as well as a directory named
WHATEVER, and then I opened up the IDE on the project. All three files (2 text files, one directory) showed up in the
projects view.  So this is supposed to be working.

Which version of NetBeans are you using? (See About box in the Help menu to get the exact build number).
Comment 3 plmayer 2007-12-18 12:34:59 UTC
Dear all,

thanks very much for your quick responses. Using the Files View does indeed solve my problems, as does disabling the
logical view, which I was not aware of (Tools | Options | Ruby | Miscellaneous | Show Logical Project View). So, no more
need for an enhancement request. Thanks!

In response to tor: The vendors directory and the AUTHORS etc. files still do not show up with the standard setting
(i.e. logical view) - this is on NetBeans 6.1 Dev (Build 200712180000). However, they do show up when disabling the
view, so I think this is intended.

Again, thanks for your answers. Works for me.
Comment 4 Torbjorn Norbye 2007-12-19 19:57:09 UTC
There is code in there to ensure that all "unknown" files (like AUTHORS and VERSION) should show up - and in my tests,
they did. So I'd like to track down why this doesn't work in your scenario. Were there any errors listed in the log?
Comment 5 plmayer 2007-12-20 10:36:58 UTC
OK, I tried again using the current dev version (NetBeans IDE Dev (Build 200712180000)). I did the following:

a) Having "Show Logical Project View" ENABLED, I cannot see any files in the root folder of projects except Rakefile and
README, regardless of what files are there. When I create new files or folders in the projects view, they do not show up
either (but do in the files view). Note that I can create files inside directories just fine.

b) Having "Show Logical Project View" DISABLED, I right-click on a project in projects view, create a new empty file,
name it "BLA", do not select a folder, click finish. 
=> Result: The file does NOT show up in the view. It is there in the files view. It is also there upon restart.

In both cases, nothing is in the log (.netbeans\dev\var\log\messages.log).

HTH,

Philip

PS: It woule be nice if the log file could be opened from within the IDE. I do not have the Tools/Show IDE Log File entry.
Comment 6 Martin Krauskopf 2008-03-26 14:08:17 UTC
Not sure what is the intention but the code is like this:

[well-known == { README, Rakefile }]

- Logical View disabled
  - Rails Project -> all files are shown in the root
  - Ruby Project -> only well-known files are shown
- Logical View enabled
  - Rails Project -> only well-known
  - Ruby Project -> only well-known

So only for the first combination all files are shown. The intention probably is to always show all files in the
project's root, no-matter what options is selected and what project type is used.
This is how I'll fix it if there is no other opinion.
Comment 7 Martin Krauskopf 2008-04-01 18:07:05 UTC
Fixed (but note issue 125162)
Comment 8 Martin Krauskopf 2008-04-01 18:07:41 UTC
Changeset: 26e62f120827