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 119216 - Schlieman features are not dynamically registered
Summary: Schlieman features are not dynamically registered
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks: 118683
  Show dependency tree
 
Reported: 2007-10-17 14:48 UTC by Marek Fukala
Modified: 2007-10-19 11:00 UTC (History)
2 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 Marek Fukala 2007-10-17 14:48:35 UTC
Currently the languages initialization fails for features which are token specific (folds, navigator, error checks etc.)

It is a regression from October 7th done over multiple files - fix of issue #116835 - CSS coloring disappear and it's
updated slowly after modification

In particullar the problem is that for example folding initialization does check 

if (l.getFeatures ("FOLD").size () > 0) {
    //register the FM
}

but the list of features is always empty. The problem is that the FeatureList.getFeatures() doesn't look for the type
specific features, just for the generic ones (AST, PROPERTIES, etc.).
Comment 1 Daniel Prusa 2007-10-17 14:56:46 UTC
Bug in Language.getFeatures() method.
Comment 2 Daniel Prusa 2007-10-17 17:25:59 UTC
Fixed in trunk.

/cvs/languages/engine/src/org/netbeans/modules/languages/Language.java,v  <--  Language.java
new revision: 1.55; previous revision: 1.54
/cvs/languages/engine/src/org/netbeans/modules/languages/FeatureList.java,v  <--  FeatureList.java
new revision: 1.6; previous revision: 1.5
Comment 3 Daniel Prusa 2007-10-17 17:31:46 UTC
fixed
Comment 4 Daniel Prusa 2007-10-18 12:35:08 UTC
Merged to beta2:

/cvs/languages/engine/src/org/netbeans/modules/languages/Language.java,v  <--  Language.java
new revision: 1.54.2.1; previous revision: 1.54
/cvs/languages/engine/src/org/netbeans/modules/languages/FeatureList.java,v  <--  FeatureList.java
new revision: 1.5.2.1; previous revision: 1.5
Comment 5 Jindrich Sedek 2007-10-19 11:00:13 UTC
verified in beta2 branch