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 197314

Summary: CSS completion blocked by CSS parser error analysis
Product: web Reporter: Marek Fukala <mfukala>
Component: CSS Visual ToolsAssignee: Marek Fukala <mfukala>
Status: RESOLVED FIXED    
Severity: normal CC: pjiricka
Priority: P3    
Version: -S1S-   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Marek Fukala 2011-04-01 08:58:11 UTC
Extracted from the issue 179727 - [69cat] Code completion is slow

http://statistics.netbeans.org/exceptions/exception.do?id=434322

Getting CSS parser result automatically involves the error evaluation of the css rules which is not always necessary.
Comment 1 Marek Fukala 2011-04-01 09:51:15 UTC
Making the semantic css error analysis lazy. Until one calls getDiagnostics() on the parser result it is not computed. In fact I'm not sure whether anyone else can call that method when the parser result is explicitly requested by PM.parse() from the completion thread before the completion shows the results. If this happens, some kind of parse levels would have to be added to the css parser result.

web-main#80cce555de36
Comment 2 Quality Engineering 2011-04-02 08:48:11 UTC
Integrated into 'main-golden', will be available in build *201104020400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/80cce555de36
User: Marek Fukala <mfukala@netbeans.org>
Log: #197314 - CSS completion blocked by CSS parser error analysis