You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Junichi Yamamoto (JIRA)" <ji...@apache.org> on 2019/03/19 04:58:00 UTC

[jira] [Commented] (NETBEANS-1872) Background scan stalls on specific PHP file

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

Junichi Yamamoto commented on NETBEANS-1872:
--------------------------------------------

Maybe, the following code has a problem:

{code:php}
    @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
    <?php if ($isSliderEnable) : ?>
    #<?= /* @escapeNotVerified */ $sliderId ?> .swiper-brand .am-image-wrapper,
    #<?= /* @escapeNotVerified */ $sliderId ?> .swiper-brand .am-image-wrapper img {
        max-width: <?= /* @escapeNotVerified */ ($itemsPerView <= count($items)) ? $sliderWidth / $itemsPerView : $sliderWidth / count($items) ?>px;
    }
    <?php else : ?>
    #<?= /* @escapeNotVerified */ $sliderId ?> .swiper-brand .am-image-wrapper,
    #<?= /* @escapeNotVerified */ $sliderId ?> .swiper-brand .am-image-wrapper img {
       <?php if ($imgWidth) : ?>
       max-width: <?= /* @escapeNotVerified */ $imgWidth;?>px;
       <?php endif;?>
       <?php if ($imgHeight) : ?>
       max-height: <?= /* @escapeNotVerified */ $imgHeight;?>px;
       <?php endif;?>
       }
    <?php endif;?>
    }
{code}

I added your code to unit tests of PHP parser in my local environment. However, I can't find errors. So CSS may have a problem.


> Background scan stalls on specific PHP file
> -------------------------------------------
>
>                 Key: NETBEANS-1872
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1872
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Parsing &amp; Indexing, ide - Performance, php - Code Analysis
>    Affects Versions: 8.2, 10.0
>            Reporter: Mondane
>            Priority: Major
>              Labels: background-scanning, php7
>         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.3#76005)

---------------------------------------------------------------------
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