extreme slowness/unusable with certain ruby syntax
I have a 300 line or so file full of statements like this:
rule(:function_declaration) do`function`.as(:st) >> sp >> ident.as(:name) >> sp? >> `(` >> sp? >> (formal_parameter_list >> sp?).maybe.as(:args) >> `)` >> sp? >> `{` >> sp? >> function_body.as(:body) >> sp? >> `}`endThis completely bogs down Rubymine after a very short time span, to the point where doing pretty much anything takes 4-5 seconds.Chris
请先登录再写评论。
I've just created such file and I don't notice slowness (RubyMine 3.2 beta). Could you capture a CPU snapshot (see instructions at http://devnet.jetbrains.net/docs/DOC-1144) ?
It seems to take a few minutes of use to show up, it doesn't happen by just opening the file you need to make some edits. But it's very consistent after a few minutes of editing it goes south. Happens at work and home, and these are higher end boxes core I7, 12gb ram, 10k rpm drives. I'll do a cpu snapshot later when I get home.
Chris
My file is still opened. My file consist of that 3 lines copied about 100 times. Probably I need more complicated example. I've check RubyMine 3.1.1 and RubyMine 3.2 Beta, looks ok.
I don't think, it's e special problem with this syntax.
In my bigger application with "normal" ruby code, the IDE is hanging, too (in all three 3.2 EAP versions).
I uploaded a cpu snapshot and sent a mail to support - and now I have to go back to 3.1.1 :-(
Chris,
Which OS do you use?
I'm on windows 7 prof. Didn't get a chance last night to get the cpu dump got home late.
Chris
Ok, we are still waiting for it =)
Hi neogrande,
Oleg checked your snapshot seems you need to wait until our 4.0 EAPs with rewritten code insight engine.