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 150293 - Blank node in a Files view instead of a regular file (unable to open a Makefile)
Summary: Blank node in a Files view instead of a regular file (unable to open a Makefile)
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: t_h
URL:
Keywords:
: 149985 150384 150665 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-15 21:34 UTC by Petr Dvorak
Modified: 2008-12-22 14:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log - indicates an exception was thrown (21.98 KB, text/plain)
2008-10-15 21:35 UTC, Petr Dvorak
Details
archive with project (40.60 KB, application/octet-stream)
2008-10-15 21:36 UTC, Petr Dvorak
Details
Screenshot - before/after clean action (11.94 KB, image/png)
2008-10-15 21:41 UTC, Petr Dvorak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-10-15 21:34:38 UTC
Product Version         = NetBeans IDE Dev (Build 200810151401)
Operating System        = Linux version 2.6.24-21-generic running on amd64
Java; VM; Vendor        = 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 10.0-b23; Sun Microsystems Inc.

I was working at my university project for "principles of compilers" and I have noticed a defective behavior of the tree
in the Files view. Whenever I invoke build action, the node corresponding to "Makefile" becomes blank (see the
screenshot) and it doesn't become normal until I restart IDE.

I will attach you messages.log (there is an exception caused by "flex") and my project.

Note: You might need some "compiler/grammar-tools" installed ("sudo apt-get install flex flex-doc bison") to work with
my project...
Comment 1 Petr Dvorak 2008-10-15 21:35:27 UTC
Created attachment 71904 [details]
messages.log - indicates an exception was thrown
Comment 2 Petr Dvorak 2008-10-15 21:36:53 UTC
Created attachment 71905 [details]
archive with project
Comment 3 Petr Dvorak 2008-10-15 21:38:45 UTC
Sorry - it happens when I invoke "clean" action (I was using "Clean&Build" before)...
Comment 4 Petr Dvorak 2008-10-15 21:41:05 UTC
Created attachment 71906 [details]
Screenshot - before/after clean action
Comment 5 Petr Dvorak 2008-10-15 21:46:11 UTC
Adding jskrivanek to CC (openide>filesystems)
Comment 6 Leonid Lenyashin 2008-10-16 06:57:45 UTC
please evaluate and reassign to thp then
Comment 7 soldatov 2008-10-16 08:45:42 UTC
I can't reproduce this problem in RC1 on my machine. But scenario should be investigated.

Not a showstopper.
Comment 8 soldatov 2008-10-16 09:03:59 UTC
I think I can reproduce this problem.

Scenario:
- Create LexxYacc project
- Select project node. Call context menu. Select 'Clean' menu item
- Open 'Files' tab. Expend project node
==> ok
- Open Files tab
- Select project node. Call context menu. Select 'Clean and Build' menu item
- Open 'Files' tab
==> Makefile is disappeared (I see unnamed file in Files tab instead of Makefile)
Comment 9 soldatov 2008-10-16 09:12:48 UTC
I found mistake in my scenario. Correct description:
- Create LexxYacc project
- Select project node. Call context menu. Select 'Clean' menu item
- Open 'Files' tab. Expend project node
==> ok
- Open Projects tab
- Select project node. Call context menu. Select 'Clean and Build' menu item
- Open 'Files' tab
==> Makefile is disappeared (I see unnamed file in Files tab instead of Makefile)
Comment 10 soldatov 2008-10-16 10:36:00 UTC
Bug can be reproduced with other samples (Quote, Welcome). But I doesn't see this problem in NetBeans-6.5beta
Comment 11 Alexander Pepin 2008-10-16 11:01:05 UTC
Simple scenario for Windows:
- Create LexxYacc project
- Open 'Files' tab. Expend  LexxYacc node, Makefile exists
- puch Clean&Build button on main toolbar
Result: Makefile disappears from Files tab
 
Comment 12 soldatov 2008-10-16 11:17:28 UTC
Small comment: in described scenario first file disappears (Makefile, Html file or C++ file). I don't think it is a
problem in C/C++ pack. I move bug into 'openide'.
Comment 13 t_h 2008-10-16 13:05:56 UTC
dbbb0824ccad
Comment 14 t_h 2008-10-16 13:29:27 UTC
Should be fixed for 6.5 => P1
Comment 15 Petr Dvorak 2008-10-16 14:21:49 UTC
OK, I have tried a patch from t_h and it fixes this issue (tested on attached project). Verified.
Comment 16 Lukas Jungmann 2008-10-16 16:07:09 UTC
*** Issue 150384 has been marked as a duplicate of this issue. ***
Comment 17 t_h 2008-10-16 17:29:40 UTC
Fix for another problem revealed by joshis during patch testing 18a28f3b0413
Comment 18 Petr Dvorak 2008-10-16 17:34:46 UTC
(The second patch also verified - it fixes another problem with an empty node.)
Comment 19 t_h 2008-10-16 18:13:47 UTC
*** Issue 149985 has been marked as a duplicate of this issue. ***
Comment 20 Quality Engineering 2008-10-17 04:58:48 UTC
Integrated into 'main-golden', will be available in build *200810170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/dbbb0824ccad
User: Tomas Holy <t_h@netbeans.org>
Log: #148168: (assert) #150293: Blank node in a Files view instead of a regular file.
Comment 21 Lukas Hasik 2008-10-20 09:58:19 UTC
*** Issue 150665 has been marked as a duplicate of this issue. ***