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 244331 - LESS is not css file now, errors in code folding
Summary: LESS is not css file now, errors in code folding
Status: RESOLVED DUPLICATE of bug 244197
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@web
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-06 12:10 UTC by fecce91
Modified: 2014-05-06 12:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
highlight in css and less (26.00 KB, image/png)
2014-05-06 12:12 UTC, fecce91
Details
less file example (3.11 KB, application/octet-stream)
2014-05-06 12:24 UTC, fecce91
Details
log (97.33 KB, application/x-zip-compressed)
2014-05-06 12:28 UTC, fecce91
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fecce91 2014-05-06 12:10:51 UTC
Patch 1 update, that i downloaded (Build 201403101706), contains some errors.

1) Netbeans doesn`t highlight less or css file
2) Code folding in less and css doesn`t work (there are now any pluses and minuses even thought in settings code folding is enabled)
3) PHP code folding is also broken, but highlight is work properly

Interesting fact, if exit from netbeans and after thar launch it againg, first tab is work properly, but if reopening code folding and highlight don`r work again.
Comment 1 fecce91 2014-05-06 12:12:45 UTC
Created attachment 147135 [details]
highlight in css and less
Comment 2 Vladimir Riha 2014-05-06 12:17:41 UTC
It works for me, as far as I know, there is no change in Less/CSS in patch1.

The missing highlighting/folding could happen if the whole file has not been parsed yet (with big files, it could take few seconds). Does it happen with every css/less file? If you create a new css file with simple content like

div{
color: red
}

does it work? If so, could you attach the problematic file here? Could you please also attach IDE log (see [1])?

[1] http://wiki.netbeans.org/FaqLogMessagesFile
Comment 3 fecce91 2014-05-06 12:24:11 UTC
if create a new css file, highlight doesn`t work, also code folding too. Example in attachment. Log will be in 2 minute.
Comment 4 fecce91 2014-05-06 12:24:58 UTC
Created attachment 147137 [details]
less file example
Comment 5 fecce91 2014-05-06 12:28:52 UTC
Created attachment 147138 [details]
log
Comment 6 fecce91 2014-05-06 12:33:38 UTC
oh! strange. when i try to zip log folder windows tell me that it open in netbeans. I closed netbeans but windows tell me this again. after that i noticed that there are about 10 processes of netbeans in task manager. i closed all of them manually and after that launch netbeans. All works and highligh and code folding of css and less. I opened 10 css files, 2 opened with highlight, over not.

All PHP files works without highlight.
Comment 7 Vladimir Riha 2014-05-06 12:34:31 UTC
Is NetBeans still scanning while this happens? (there would be progress bar at the bottom part of NetBeans window)

Do you happen to have some twig files in opened projects? If so, could you please start NetBeans, close all projects (or the ones with twig files), close NetBeans, create a new PHP project and try again PHP file and Less file? It could be caused by issue 244197
Comment 8 Vladimir Riha 2014-05-06 12:36:04 UTC
(In reply to fecce91 from comment #6)
> oh! strange. when i try to zip log folder windows tell me that it open in
> netbeans. I closed netbeans but windows tell me this again. after that i
> noticed that there are about 10 processes of netbeans in task manager. i
> closed all of them manually and after that launch netbeans. All works and
> highligh and code folding of css and less. I opened 10 css files, 2 opened
> with highlight, over not.
> 
> All PHP files works without highlight.

That would support that you suffer from issue 244197. See comment #9 in that issue with workaround.
Comment 9 fecce91 2014-05-06 12:45:25 UTC
i replaced twig module file but now background scanning freeze in 80%. highlight doesn`t work in css less files.
Comment 10 fecce91 2014-05-06 12:47:14 UTC
also i noticed that after exiting that process of netbeans doesn`t finished
Comment 11 fecce91 2014-05-06 12:48:55 UTC
after deactivating twig plugin all start work properly. You were right.
Comment 12 fecce91 2014-05-06 12:50:51 UTC
after activating twig module and restarting ide highlight and code folding works. Thanks.

*** This bug has been marked as a duplicate of bug 244197 ***