Home Download Buy Blog Forum Support

ST2 freezes under Windows 7 at one certain Freemarker file

ST2 freezes under Windows 7 at one certain Freemarker file

Postby IppeZiepe on Thu Oct 27, 2011 11:18 am

As of today, Sublime Text 2 (2126) freezes when I enter text or delete something in a certain Freemarker file. I have a Freemarker plugin to highlight syntax. It only happens when I work in this file.

I use Windows 7 x64. I tried installing the 32-bit version of ST2, but that didn't solve any problems. Also, I've deleted the Session.sublime_session file, but it still occurs.

The contents of the file that freezes Sublime:

Code: Select all
<!-- Some HTML comments -->
[#assign m = m.p! /]
[#if m?has_content][#-- Freemarker comment --]
    [#-- Freemarker comment --]

        [#assign me = m._i /]

        [#-- Freemarker comment --]
            [#list m.i! as i]
                [#if i.t = "String" && i.u!?has_content]
                    [#assign mi = i ! 'string' /]
                    [#assign iS = v.getSomething(i.u, im) ! "" /]
                    [#if iS != ""]<meta property="prop1" content="${iS}"/>[/#if]
                    [#-- Freemarker comment --]
                [/#if]
            [/#list]
        [#-- /Freemarker comment --]

        [#-- another Freemarker comment --]
            [#assign r = me.r! /]
            [#assign hR = r ? has_content /]

            [#if hR]
                [#list r as rn]
                    [#if rn.t == "STRING"]
                        [#assign mA = rn.t! /]
                    [/#if]
                [/#list]
            [/#if]

            [#assign tA = mA + ": " ! /]
            [#assign tT = me.t! /]
           
            <meta property="prop2" content="${tA}${tT!'String'}" />
        [#-- /another Freemarker comment --]

    [#-- /comment --]

[#else][#-- comment --]
    [#-- comment --]

        [#-- comment:comment --]
            <meta property="prop3" content="${c.t ! 'String!'}" />
        [#-- /comment:comment --]

        [#-- comment:comment --]
            [#assign oIs = [ ${s.getAL(ct, 'hI')!, ${s.getAL(ct, 'string')! ] /]
         [#list oIs as i]
            <meta property="prop4" content="http://${v.getPDN(ct)}!${i!}" />
            [/#list]
        [#-- /comment:comment --]

    [#-- /comment --]
[/#if][#-- comment --]

[#-- comment --]
            <meta property="prop5" content="${m.sT!'String} - ${m.wT ! ct.t}" />
            <meta property="prop6" content="${v.getPPU(ct) ! 'http://www.domain.tld/'}"/>
            <meta property="prop7" content="${m.sT!'String'}" />
            <meta property="prop8" content="website" />
            <meta property="prop9:locale" content="nl_NL" />
            <meta property="prop10:alternate" content="nl_BE" />
[#-- more commenting --]

<!-- more HTML commenting -->


Hopefully someone could tell me what's wrong. The code highlighting is OK, so it doesn't look like I've forgotten brackets or quotes or anything. Thanks, Ippe

EDIT: I forgot to say that ST2 freezes for 30 seconds or so, and then unblocks. Then it'll freeze as soon as I modify the file.
IppeZiepe
 
Posts: 2
Joined: Thu Oct 27, 2011 10:59 am

Re: ST2 freezes under Windows 7 at one certain Freemarker file

Postby IppeZiepe on Thu Oct 27, 2011 11:58 am

Think I did screw up the code, at which the Freemarker plugin froze ST2. (I did:
Code: Select all
[#assign oIs = [ ${s.getAL(ct, 'hI')!, ${s.getAL(ct, 'string')! ] /]
but I shouldn't have inserted the ${...}'s.)

But maybe this post isn't invaluable altogether, maybe ST could detect freezing or something.

Thanks anyway!
IppeZiepe
 
Posts: 2
Joined: Thu Oct 27, 2011 10:59 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 28 guests