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 135891

Summary: Extensions added in options aren't applied to existing files till NetBeans restart
Product: cnd Reporter: Sergey Grinev <sergius>
Component: ProjectAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 134192    
Bug Blocks:    

Description Sergey Grinev 2008-05-27 15:10:03 UTC
1. Create a plain text file with name "random.cfg"
2. Type "int i;" in it. No highlighing should be shown.
3. Go to Tools->Options->C/C++->Other->C/C++ Header File Extensions and add "cfg" to extensions list.

EXPECTED: opened "random.cfg" would get syntax highlighting and will be marked as header file in project view
OBSERVED: it is not. Neither reopening file, nor reopening project, nor removing from project and adding back will fix
this. 
WORKAROUND: new extensions works fine after restarting IDE.

N.B.: applicable only to trunk version due to http://www.netbeans.org/issues/show_bug.cgi?id=134192
Comment 1 Vladimir Voskresensky 2008-05-31 13:11:47 UTC
Have a look at http://www.netbeans.org/issues/show_bug.cgi?id=133773 as well. Could be related
Comment 2 Alexander Pepin 2008-06-30 14:06:47 UTC
see also issue #116111
Comment 3 Sergey Grinev 2008-07-21 16:19:04 UTC
*** Issue 124249 has been marked as a duplicate of this issue. ***
Comment 4 Sergey Grinev 2008-07-21 16:20:30 UTC
*** Issue 136978 has been marked as a duplicate of this issue. ***
Comment 5 Alexander Simon 2009-03-23 16:49:01 UTC
not repeatable now