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

Project indexing hungs #44

Closed
myrek007 opened this issue Aug 17, 2022 · 14 comments
Closed

Project indexing hungs #44

myrek007 opened this issue Aug 17, 2022 · 14 comments
Labels
bug Something isn't working HIGH PRIORITY High priority issues next version candidate Candidate for next release

Comments

@myrek007
Copy link

Describe the bug
Project indexing hungs when plugin enabled.

Environment (please complete the following information):

  • PhpStorm 2022.2
  • Plugin version 1.0.4
@mesour
Copy link
Contributor

mesour commented Aug 17, 2022

@myrek007 I need more information. Which file doing this? Is some error in this file (if not, can you send here content of this file)?

@mabar
Copy link

mabar commented Aug 17, 2022

@myrek007 Click on the indexing progress bar, it should show the current file being indexed. File is probably too long or have some special syntax.
That file is gonna be needed for issue replication. Try to replicate issue with that file in standalone repo and send minimal code which reproduces the issue

@mesour mesour added the question Further information is requested label Aug 17, 2022
@myrek007
Copy link
Author

Everytime I restart IDE it hungs at different file. I don't think it's reproducible this way.

@mabar
Copy link

mabar commented Aug 17, 2022

Could you move one or more of these files to own project and check if the issue will appear?
It is really hard to tell what is happening withou having code to reproduce it.

@myrek007
Copy link
Author

I may offer you a remote access to my desktop to see it yourself.

@mesour
Copy link
Contributor

mesour commented Aug 17, 2022

@myrek007 it can be in more files. PhpStorm not indexing files in same order. It is not necessary, you can record it and upload video to youtube or can you post here one of these files?

@myrek007
Copy link
Author

sample.zip

@mabar
Copy link

mabar commented Aug 17, 2022

@myrek007 Change {label contact_email} etc. to {label contact_email/} and you should be fine.
It is required from Latte 3 to have unpair {label} written that way.

@mesour It completele freezes phpstorm even with one file.

@myrek007
Copy link
Author

myrek007 commented Aug 17, 2022

Will try.
Does it explain why it hungs on SVG, TSX or JAR as well?

@myrek007
Copy link
Author

OK, it worked, project is now indexed.
Are you going to fix the issue? I cannot prevent such typos in all projects.

@mabar
Copy link

mabar commented Aug 17, 2022

On JAR?

Hmm, maybe same issue as in original plugin, @mesour? nette-intellij/intellij-latte#186

@myrek007
Copy link
Author

On JAR?

Fixing the "label" pairing issue in latte files resulted that indexing does not hung anymore. Not even on JAR, TSX, SVG etc.
Weird.

@mabar
Copy link

mabar commented Aug 17, 2022

I guess it's caused by multithreading. PHPStorm indexed multiple files at once and when Latte indexing got stuck it showed one of the currently indexed files.

@mesour mesour added the low priority Low priority issues label Aug 31, 2022
@mesour mesour added bug Something isn't working HIGH PRIORITY High priority issues next version candidate Candidate for next release and removed question Further information is requested low priority Low priority issues labels Sep 29, 2022
@mesour
Copy link
Contributor

mesour commented Sep 29, 2022

@myrek007 please try it in 1.0.7

@mesour mesour closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working HIGH PRIORITY High priority issues next version candidate Candidate for next release
Projects
None yet
Development

No branches or pull requests

3 participants