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.
Summary: | Code folding occasionally stops working | ||
---|---|---|---|
Product: | editor | Reporter: | Vladimir Riha <vriha> |
Component: | CSL (API & infrastructure) | Assignee: | Svata Dedic <sdedic> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
screenshot IDE log with more logging |
Created attachment 133273 [details]
screenshot
Reproducible (randomly), but FoldingScanner.folds() is not called by CSL infrastructure. Reassigning. Svato, can you evaluate? Thanks in advance. Created attachment 133301 [details]
IDE log with more logging
Here is IDE log with the better logging. Once I saw no code folding, these 2 lines were the last one in log (the rest was appended during IDE shutdown - including the unrelated exception)
FINER [org.netbeans.modules.csl.editor.fold.GsfFoldManager]: GSF fold task called for: org.netbeans.modules.parsing.api.Source@ac6f04[mimeType=text/x-php5, fileObject=/var/www/PhpProject16/index.php@ba0bd6f3:cfb8b3, document=null
FINE [org.netbeans.modules.csl.editor.fold.GsfFoldManager]: No live FoldManagers found for org.netbeans.modules.parsing.api.Source@ac6f04[mimeType=text/x-php5, fileObject=/var/www/PhpProject16/index.php@ba0bd6f3:cfb8b3, document=null
Fixed in http://hg.netbeans.org/jet-main/rev/5fa7de62720a except the logging, the fix is pretty safe; it should be considered for backport to 7.3.x, since the unsynchronized Map is both in Java and in CSL from the dawn of their days. Thanks Svato. If this is safe, I'm for patch candidate as well. I'll wait with verification for trunk build, just to be sure I tried it couple of times and can't reproduce it anymore, thanks. Verified Product Version: NetBeans IDE Dev (Build 201304162301) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-40-generic-pae running on i386; UTF-8; en_US (nb) transplanted as http://hg.netbeans.org/jet-main/rev/d38f38c51c2c Integrated into 'releases', will be available in build *201305062200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/d38f38c51c2c User: Svata Dedic <sdedic@netbeans.org> Log: #228188: file-to-task map synchronized; transplanted from trunk patch2 verified Product Version: NetBeans IDE 7.3.1 (Build 201302132200) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-41-generic-pae running on i386; UTF-8; en_US (nb) |
Created attachment 133272 [details] IDE log Please try following (I did to reproduce it several times): - start IDE with fresh user dir - create new PHP project - declare simple function (see screenshot) - not necessary - restart IDE (step 4) => code folding in this file is not working. If I create another PHP file, it has code folding, but the first one still doesn't. It seems to happen only with PHP Web page, at least I didn't reproduce it using PHP file Interesting is, if you create another project after step 4 and restart IDE, the same issue happens all over again. Also please notice that there are the "folding line indicators" but not folding marks as such (and Ctrl+- is not working) Highly visible, only workaround is restarting IDE and I think it worked in 7.3 => imo P2 Product Version: NetBeans IDE Dev (Build web-main-10228-on-20130403) Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b32 System: Linux version 3.2.0-39-generic-pae running on i386; UTF-8; en_US (nb)