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

JSHint freezing Sublime when saving HTML files containing inline Script templates #98

Open
markedup opened this issue Dec 22, 2014 · 3 comments

Comments

@markedup
Copy link

If I edit an HTML file that includes inline Script templates (e.g. Mustache or Handlebars), Sublime Text 2 is freezing/locking on save.

The only way to get out of this is to force-quit Sublime and reopen it; the JSHint process still runs in the background, however, and at a high CPU usage.

I've tried adding an ignore option to .jshintrc as suggested in #59, but this doesn't seem to be supported by JSHint.

For now, I've found that adding /* jshint ignore:start */ and /* jshint ignore:end */ comments immediately inside any inline <script type="text/template"> blocks stops Sublime locking up:

<script type="text/template" id="search-result-template">
    /* jshint ignore:start */
    <li class="search-result">
        <a href="<@= url @>"><@= text @></a>
    </li>
    /* jshint ignore:end */
</script>
@stormslowly
Copy link

try the PR here #101

@raphaklaus
Copy link

Is there a prevision to merge it on? This issue is really annoying.

@TheBunyip
Copy link

I can confirm this happening for me too. It's particularly frustrating because finding this open issue requires some guesswork as to what is causing it (all you get is a frozen Sublime Text).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants