This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Freezes with IDEA when trying to edit ~700 line file

4 replies
Ken McDonald
Joined: 2011-02-13,
User offline. Last seen 42 years 45 weeks ago.
I've run into a nasty problem trying to deal with a Lift file of about 700 lines; when I try to do a simple edit (copy a line of the form "def foo ="string"") and paste it a few lines up, IDEA freezes. This is consistent, and happens whether or not the "Scala type-aware highlighting" feature is enabled. Even turning off all Scala Inspections hasn't helped. I've encountered occasional freezes in IDEA before, but never with the consistency. Anyone have suggestions as to other things to try?
Thanks,Ken
Ken McDonald
Joined: 2011-02-13,
User offline. Last seen 42 years 45 weeks ago.
Re: Freezes with IDEA when trying to edit ~700 line file

It appears the problem _may_ be due to IDEA running XML inspections on XML embedded in the Scala file. I turned of XML inspection, and haven't had a freeze in about ten minutes--whereas before, the first attempted edit of the file would freeze IDEA.

Johannes Rudolph 2
Joined: 2010-02-12,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: Freezes with IDEA when trying to edit ~700 line file

Hey Ken,

there's probably more than one source of locks and hangs in IDEA. As a
first measure you can increase the delay after which IDEA is starting
to calculate things after your changes, e.g. with the "Autoreparse
delay" or "Autopopup completion in", I searched in the Settings for
"ms" (milliseconds) to find those settings.

If you want to report those hangs to jetbrains, here's how to do:

http://devnet.jetbrains.net/docs/DOC-260

Johannes

On Tue, Jul 26, 2011 at 12:53 AM, Ken McDonald wrote:
> It appears the problem _may_ be due to IDEA running XML inspections on XML
> embedded in the Scala file. I turned of XML inspection, and haven't had a
> freeze in about ten minutes--whereas before, the first attempted edit of the
> file would freeze IDEA.

Ken McDonald
Joined: 2011-02-13,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: Freezes with IDEA when trying to edit ~700 line file
Thanks Johannes, I reported it. I've had one or two freezes since I turned off the XML inspections, but nothing like I was having.
Ken
Igor Inas
Joined: 2011-01-28,
User offline. Last seen 1 year 18 weeks ago.
Re: Re: Freezes with IDEA when trying to edit ~700 line file
I also reported hanging IDEA once. Back than I learned, that IDEA can detect frozen IDE automatically and starts writing thread dumps to ${idea.system.path}/log/threadDumps-yyyyMMdd-somesuffix

On Tue, Jul 26, 2011 at 10:12 AM, Johannes Rudolph <johannes [dot] rudolph [at] googlemail [dot] com> wrote:
Hey Ken,

there's probably more than one source of locks and hangs in IDEA. As a
first measure you can increase the delay after which IDEA is starting
to calculate things after your changes, e.g. with the "Autoreparse
delay" or "Autopopup completion in", I searched in the Settings for
"ms" (milliseconds) to find those settings.

If you want to report those hangs to jetbrains, here's how to do:

http://devnet.jetbrains.net/docs/DOC-260

Johannes

On Tue, Jul 26, 2011 at 12:53 AM, Ken McDonald <ykkenmcd [at] gmail [dot] com> wrote:
> It appears the problem _may_ be due to IDEA running XML inspections on XML
> embedded in the Scala file. I turned of XML inspection, and haven't had a
> freeze in about ten minutes--whereas before, the first attempted edit of the
> file would freeze IDEA.



--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland