Sublime Forum

ST2 freezes under Windows 7 at one certain Freemarker file

#1

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]
#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 --]






#-- more commenting --]

[/code]

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.

0 Likes

#2

Think I did screw up the code, at which the Freemarker plugin froze ST2. (I did: #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!

0 Likes