intellij-latte icon indicating copy to clipboard operation
intellij-latte copied to clipboard

Indexing is super slow in 1.1.4

Open maral opened this issue 3 years ago • 1 comments

Describe the bug After upgrading from 1.1.3 (which was giving me some weird errors) to 1.1.4, the indexing suddenly slowed down a few orders of magnitude. It gets stuck on some files for minutes, some take only milliseconds. I have hundreds of latte files in my project.

Environment (please complete the following information):

  • PhpStorm version 2021.3, Build PS-213.5744.279
  • Plugin version 1.1.4

To Reproduce Steps to reproduce the behavior (or attach video):

  1. Turn on PHPStorm
  2. Indexing module 'projectname'... Also, the machine is running 100 % the whole time.

Code Example of a file, that takes more than 10 minutes to index:

{block css}
    <!--link rel="stylesheet" href="{$baseUrl}/css/app/support.css"-->

    <style>

        /* bootstrap fixes */

        .panel-heading {
            cursor: pointer;
        }

        .panel-body {
            display: none;
        }

    </style>
{/block}
{block js}
<script>

$(function(){
    $("body").on("click", ".panel-heading", function() {
        $(this).next().slideToggle();
        $.nette.ajax({
            type: "GET",
            url: {link readThread!},
            data: {
                threadId: $(this).data("thread-id")
            }
        });
        $(this).find(".unread").fadeOut();
    });

    $("body").on("click", ".unsolve", function (e) {
        e.preventDefault();
        var $this = $(this);
        console.log($this.data("href"));
        $.ajax({
            type: "GET",
            url: $this.data("href"),
            success: function () {
                $this.closest(".panel")
                            .removeClass("panel-default")
                            .addClass("panel-info")
                            .find(".label-success").fadeOut();
            }
        });
    });

    $("body").on("click", ".solve", function (e) {
        e.preventDefault();
        var $this = $(this);
        console.log($this.data("href"));
        $.ajax({
            type: "GET",
            url: $this.data("href"),
            success: function () {
                $this.closest(".panel")
                        .removeClass("panel-info")
                        .addClass("panel-default")
                        .children(".panel-heading")
                            .prepend("<span class='label label-success'>Solved</span>");
            }
        });
    });
});

maral avatar Dec 28 '21 14:12 maral

Indexes will be removed in next version

mesour avatar Sep 24 '23 00:09 mesour