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 146715 - getting encoding for C++ project is very slow
Summary: getting encoding for C++ project is very slow
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 146696
  Show dependency tree
 
Reported: 2008-09-09 22:34 UTC by Vladimir Voskresensky
Modified: 2008-09-11 17:31 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 Vladimir Voskresensky 2008-09-09 22:34:20 UTC
java.lang.Exception: Not allowed to use EDT for reading XML descriptor of project!
        at
org.netbeans.modules.cnd.makeproject.api.configurations.ConfigurationDescriptorProvider.getConfigurationDescriptor(ConfigurationDescriptorProvider.java:87)
        at
org.netbeans.modules.cnd.makeproject.MakeProjectEncodingQueryImpl.getMakeConfigurationDescriptor(MakeProjectEncodingQueryImpl.java:107)
        at
org.netbeans.modules.cnd.makeproject.MakeProjectEncodingQueryImpl.getEncoding(MakeProjectEncodingQueryImpl.java:74)
        at
org.netbeans.modules.projectapi.ProjectFileEncodingQueryImplementation.getEncoding(ProjectFileEncodingQueryImplementation.java:72)
        at org.netbeans.api.queries.FileEncodingQuery.getEncoding(FileEncodingQuery.java:91)
        at org.openide.text.DataEditorSupport.openDocument(DataEditorSupport.java:396)
        at org.openide.text.CloneableEditorSupport.open(CloneableEditorSupport.java:434)
        at org.netbeans.modules.cnd.modelutil.CsmUtilities$2.run(CsmUtilities.java:526)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Vladimir Voskresensky 2008-09-09 22:35:08 UTC
Thomas, please, move project encoding information out of configuration.xml
This information must be returned very quickly for project, because it slow down opening of files which belongs to project 
Comment 2 Thomas Preisler 2008-09-09 23:39:36 UTC
Should move it (<sourceEncoding>UTF-8</sourceEncoding>) to project.xml
Comment 3 Vladimir Voskresensky 2008-09-10 06:33:20 UTC
yes, please
Comment 4 Thomas Preisler 2008-09-10 23:59:00 UTC
Fixed.
Comment 5 Quality Engineering 2008-09-11 17:31:43 UTC
Integrated into 'main-golden', will be available in build *200809111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/12f74340c0b8
User: Thomas Preisler <thp@netbeans.org>
Log: #146715 getting encoding for C++ project is very slow