Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexing is super slow in 1.1.4 #190

Open
maral opened this issue Dec 28, 2021 · 1 comment
Open

Indexing is super slow in 1.1.4 #190

maral opened this issue Dec 28, 2021 · 1 comment
Labels
bug EAP This is being considered for the next EAP version

Comments

@maral
Copy link

maral commented Dec 28, 2021

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>");
            }
        });
    });
});
@mesour mesour added bug EAP This is being considered for the next EAP version labels Sep 24, 2023
@mesour
Copy link
Collaborator

mesour commented Sep 24, 2023

Indexes will be removed in next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug EAP This is being considered for the next EAP version
Projects
None yet
Development

No branches or pull requests

2 participants