You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Matthias Bläsing (JIRA)" <ji...@apache.org> on 2019/08/01 17:56:00 UTC

[jira] [Commented] (NETBEANS-1872) CSS parser loops infinitely with specific code

    [ https://issues.apache.org/jira/browse/NETBEANS-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898233#comment-16898233 ] 

Matthias Bläsing commented on NETBEANS-1872:
--------------------------------------------

Quick tries to solve it on the grammar level failed for me. One thing I came up with is limiting the CSS parsing time. I pushed a prototype to:

[https://github.com/matthiasblaesing/netbeans/commit/000facd5b4888d793c97f33f35fb88871b4f502f]

I would be interested, if this works with real-world usages. I tested a merged CSS from a bigger website, the test case of course and successfully opened the scss and css files from bootstrap 3.

> CSS parser loops infinitely with specific code
> ----------------------------------------------
>
>                 Key: NETBEANS-1872
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1872
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Parsing &amp; Indexing, ide - Performance, web - CSS Editor
>    Affects Versions: 8.2, 10.0, 11.0
>            Reporter: Mondane
>            Priority: Major
>              Labels: background-scanning
>         Attachments: slider.phtml
>
>
> I've come across a PHP-file which stalls the background scanning process. 
> How to reproduce:
>  * Download the attached file
>  * Create a new PHP 7.1 project with existing sources
>  ** Select the folder containing that one file
> The background scan initiates and never stops.
> History: http://mail-archives.apache.org/mod_mbox/netbeans-users/201901.mbox/%3CCAB8E-LGcfjm7_91gRvt%3D8zKij8Eon6yG4aMw%3D7jbEij10Pd4vg%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists