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

Fix deadlock running TemplateLint on save #485

Merged
merged 1 commit into from
Apr 21, 2023
Merged

Conversation

dwickern
Copy link
Collaborator

@dwickern dwickern commented Apr 21, 2023

Fixes #484

Most linters read the file contents from stdin and write the fixed file contents to stdout. Their IntelliJ implementations disable the automatic refresh (JSLinterFixAction#needRefreshFilesAfter returns false) and so they won't hit this deadlock. TemplateLint writes its fixes directly to the same file so we need to refresh the files after.

Copy link
Owner

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! :)

@Turbo87 Turbo87 added the bug label Apr 21, 2023
@Turbo87 Turbo87 merged commit 602765c into master Apr 21, 2023
2 checks passed
@Turbo87 Turbo87 deleted the fix-template-lint-on-save branch April 21, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TemplateLint --fix on save freezes on version 2023.1.1
2 participants