intellij-latte
intellij-latte copied to clipboard
Indexing is super slow in 1.1.4
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):
- Turn on PHPStorm
- 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>");
}
});
});
});
Indexes will be removed in next version