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.
There are a couple of actionscript files in my project that when I try to open them in the project view it seems to freeze the IDE and I have to kill the java process from the windows task manager and restart it. The contents of one of the files is as follows: class ChartData { public var prices:Array; public var times:Array; public var volumes:Array; public var equityQuote:EquityQuote; } Some of the other actionscript files seem to open ok.
Hi, can you please provide a project where this issue is reproducible? I am unable to reproduce the issue with given information. Also, can you please attach IDE log file (<user_profile>/.netbeans/6.5/var/log/messages.log)? Thank you.
Without requested information for a long time, I have to close this issue as INVALID. Please reopen the issue if the problem persists in the latest dev build, providing more information (messages.log, threaddumps, sample projects).
Created attachment 92893 [details] Actionscript file that shows this issue Just opening this file in Netbeans (doesn't have to be part of a project) exposes this issue for me. Obviously I'm not expecting netbeans to have syntax highlighting... but, it would be nice if it could open it and allow me to edit it as a plain-text document. Haven't tested much with opening other actionscript files, but this 8 line file definitely doesn't open.
I'm on Windows 7 x64, if that is relevant.
Upon closer inspection, it appears what is causing this issue is garbage characters at the beginning of text files that Flash saves. If I copy and paste the text of the attached file into a new file in netbeans and give it an .as extension I can edit and open the file normally (in Netbeans). But, once I make a change and save the file in Flash it locks up Netbeans again upon opening. Clearly a problem with Flash but, Netbeans surely shouldn't lock up upon parsing such characters.
can you please capture thread dump, when IDE is frozen and attach it here? Thanks
Created attachment 93083 [details] VisualVM thread dump
thansk
Apparently the IDE interprets your .as files as assembler files and as such tries to parse them, etc. Why the IDE freezes I can't say. There is no apparent deadlock in the threaddump that you provided. But I'm not very familiar with the CND code. All I can see is several instances of 'Code Model Parser X' threads waiting on ParserQueue$Lock, but nobody seems to own this synchronizer. Anyway, I'm passing this to CND folks.
Egor, looks like asm lexer doesn't have error recovery => infinite loop
fixed http://hg.netbeans.org/cnd-main?cmd=changeset;node=0804018e1e6e
*** Bug 183345 has been marked as a duplicate of this bug. ***