groovy-grails.tmbundle icon indicating copy to clipboard operation
groovy-grails.tmbundle copied to clipboard

CPU spikes on Lion editing a Plugin.groovy file

Open basejump opened this issue 14 years ago • 5 comments

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

basejump avatar Dec 16 '11 19:12 basejump

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

ldaley avatar Dec 16 '11 20:12 ldaley

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.

basejump avatar Dec 16 '11 21:12 basejump

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

ldaley avatar Dec 16 '11 21:12 ldaley

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 avatar Dec 16 '11 21:12 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

basejump avatar Dec 16 '11 21:12 basejump