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 113457 - No syntax highlighting, no icons for header files
Summary: No syntax highlighting, no icons for header files
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-22 08:21 UTC by Maria Tishkova
Modified: 2007-11-08 09:35 UTC (History)
0 users

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 Maria Tishkova 2007-08-22 08:21:45 UTC
Try to create New C Header file or New C++ Header file -> no syntax highlighting, no code folds, no icon in Projects
Explorer. Header files are treated as plain text.


Product Version: NetBeans IDE Dev (Build 200708211200) 
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) 
Userdir: C:\Documents and Settings\masha\.netbeans\dev
Comment 1 Maria Tishkova 2007-08-22 08:28:33 UTC
I want to add additional problem as I am sure this problem has the same root:
1. Create new header file with default name "newfile.h"
2. Invoke Rename dialog using context menu on the newfile.h -> you will see newfile.h (you used to see newfile in 5.5.1u1)
3. Rename it -> newfile.hpp --> you will see broken name in Projects Explorer -> newfile.hpp.h 
Comment 2 Maria Tishkova 2007-08-23 13:21:40 UTC
It is reproducible on Windows XP, cannot reproduce on Solaris
I have used latest NB60 daily installer
http://bits.netbeans.org/download/6.0/nightly/latest/start.html?netbeans-6.0-nightly-200708211200-full-windows.exe
Comment 3 Thomas Preisler 2007-08-23 22:17:53 UTC
Problem confirmed. Is it some sort of dataloder conflict? Could it be that one of the (many) other modules in th full distribution also claims .h files?

I cannot debug the problem  on my Windows machine due to lack of resources (memory/speed) so passing it on to one with access to a machine with more 
resources.
Comment 4 Thomas Preisler 2007-08-23 23:08:53 UTC
.h files are no longer recognized as CND HDataObject by our data loader. There does not seem to be a dataloader conflict because it looks like they are not 
recognized by any dataloader.
Comment 5 Alexander Simon 2007-08-27 13:20:08 UTC
fixed

CVS log:

Checking in CndAbstractDataLoader.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/loaders/CndAbstractDataLoader.java,v  <-- 
CndAbstractDataLoader.java
new revision: 1.6; previous revision: 1.5
done
Checking in HDataLoader.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/loaders/HDataLoader.java,v  <--  HDataLoader.java
new revision: 1.10; previous revision: 1.9
done
Comment 6 soldatov 2007-11-08 09:35:36 UTC
verified in trunk (200711071200 build)