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.
for some certain jsp files the navigator shows no content, it occur random. to reproduce there is a need to play with jsp files.
This is IMHO a generic Schlimemann navigator problem, at least I saw it for RHTML and HTML files AFAIK. Hanzi, can you please look at this issue?
*** Issue 102011 has been marked as a duplicate of this issue. ***
The bug is very visible => increasing priority to P2, should be fixed in M9 IMHO.
Agree with fixing for M9 => P1
This issue is reproducible for CSS editor as well
Changing category to 'languages'.
File is sometimes not parsed when new file is opened. Thats why nevigator is empty. Simple workaround exists - start typing.
There are more things which are affected by the missing AST: 1) parser based coloring (complete coloring in CSS) 2) navigator 3) error highlighting 4) code completion I am not sure if the bug also affects the standalone schliemann editors - javascript. If so, the also folding will be missing. IMHO, the simple workaround is not so much nice for demos. I can help with the fix if you are bussy.
I have created and attached a simple patch for this issue. Hanzi and Dane, please review. Especially check if the change won't cause any unnecessary parsing. I have checked it slightly with XML and java files, it seems to be OK, all the problems described in this issue are gone.
Created attachment 41754 [details] The patch
Adding Dan Prusa to cc, since the fix replaces his recent change in the file.
Fix looks good. Thanks. You can use LanguagesManager.getDefault().isSupported (mimeType) in place of getLanguage ().
fixed in trunk and release60-m9 branch Checking in ParserManagerImpl.java; /cvs/languages/engine/src/org/netbeans/modules/languages/ParserManagerImpl.java,v <-- ParserManagerImpl.java new revision: 1.31; previous revision: 1.30 done Checking in ParserManagerImpl.java; /cvs/languages/engine/src/org/netbeans/modules/languages/ParserManagerImpl.java,v <-- ParserManagerImpl.java new revision: 1.30.2.1; previous revision: 1.30 done