CPU spikes on Lion editing a Plugin.groovy file #2

Open
basejump opened this Issue Dec 16, 2011 · 5 comments

Projects

None yet

2 participants

@basejump

any one else having issues editing a *Plugin.groovy.
Textmate spikes 100% of the CPU
Is it just me?

@alkemist
textmate member

This means there's a recursion in the grammar. I can't fix it without concrete steps to reproduce.

@alkemist alkemist closed this Dec 16, 2011
@basejump

I can help if you point me in the right direction.
All I do on Lion is open any *Plugin.groovy file and it spikes.

@alkemist
textmate member

Send me one of the files that has this for you and I'll take a look.

@alkemist alkemist reopened this Dec 16, 2011
@basejump

https://github.com/nebolsin/grails-quartz/blob/master/QuartzGrailsPlugin.groovy
I narrowed it down to this
def generateTriggerName = {->
if I remove the "->" everything is fine. as soon as I add "->" back in textmate spikes CPU to 100%

@basejump basejump closed this Dec 16, 2011
@basejump basejump reopened this Dec 16, 2011
@basejump

so its not specific to a plugin file
if I add
def someClosure{->
to any groovy file its goes into the loop and freezes texmate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment