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.
Steps to reproduce: - start IDE from fresh user dir - create C/C++ application - open main.cpp file in editor Actual behavior: - Scanning projects progress bar - Indexing 188 *.js files ( like to: jar:file:/export/home/as204739/cnd-main/nbbuild/netbeans/ide/jsstubs/allstubs.zip!//stub_dom2_HTMLHtmlElement.js) Expected behavior: - No indexing of *.js files.
Parsing api parses only registered roots. The java script stubs are registered by javascript support when always when first project is opened as the javascript can be part of any project.
Should be reevaluated for 7.3.
Due to also issue #218708 I tried to move the GlobalPathRegistry registry to the JsLanguage#getLexerLanguage(). It's a hack but since the registration happens in JsLanguage, it always was. :/ This should be entry point for all JS features and on the other hand it's not called immediately after any project opening. Hard to guess if it will behave correctly in all cases, it worked to me well at least for languages which embed JS, for plain JS, with empty userdir, tests. We have probably enough of time to figure out if that solution is stable and flawless enough. web-main #536fe324d2c0
*** Bug 206671 has been marked as a duplicate of this bug. ***