ReSharper 5 beta bug: stalled solution-wide analysis on large file

I use LLBLGen to create our DAL and one of the files, FieldCreationClasses.cs contains around 13,000 lines and hundreds of classes. It's simple auto-generated classes containing static fields, that's it. In R# 4.5 this file was analyzed just fine. However, in R# 5 beta it's gets stuck on this file for a LONG time. In fact, I haven't seen it complete yet, and it's been around a hour on a good machine (quad core, 8GB RAM, etc).

When loading the file in the editor, it too will not analyze. I don't have a green box in the upper right of the editor window, rather a play button that stays there while one of my CPUs are pegged at 100%.

This is causing my solution-wide analysis to get stuck at around 50% which isn't helping me much finding other errors in the other half of my solution

3 comments
Comment actions Permalink

Hello Robert,

Could you please create a simple solution which is demonstrating performance
issue?
Thanks in advance!

--
Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I use LLBLGen to create our DAL and one of the files,
FieldCreationClasses.cs contains around 13,000 lines and hundreds of
classes. It's simple auto-generated classes containing static fields,
that's it. In R# 4.5 this file was analyzed just fine. However, in R#
5 beta it's gets stuck on this file for a LONG time. In fact, I
haven't seen it complete yet, and it's been around a hour on a good
machine (quad core, 8GB RAM, etc).

When loading the file in the editor, it too will not analyze. I don't
have a green box in the upper right of the editor window, rather a
play button that stays there while one of my CPUs are pegged at 100%.

This is causing my solution-wide analysis to get stuck at around 50%
which isn't helping me much finding other errors in the other half of
my solution

---
Original message URL:
http://www.jetbrains.net/devnet/message/5253326#5253326



0
Comment actions Permalink

A few interesting things:

  1. I can't replicate the problem easily by just moving the two files and one assembly needed to compile over to a simple test project.
    1. It only seems happens in my larger solutions with about a dozen or more projects.
    2. In a standalone project, it takes a while to analyze, but much more in the realm of what R# 4.5 too, perhaps 30 seconds or so.
    3. I'll continue to try to replicate this so I can send you something.
  2. Turning off solution-wide analysis from the properties window of the project containing the file does not seem to work. R# still tries to analyze the files affected in my DAL. This wouldn't be a bad workaround until this problem was fixed, but it doesn't seem to work.
  3. It'd be great if solution-wide analysis could utilize more than one processor! I notice it always pegs one of my CPUs, but with multi-core machines standard these days and more coming it'd be wonderful if analysis could utilize as many cores as I had! I'm not sure how parallel friendly the analysis is, but it's something to think about!


Do you have any other ideas on how I can communicate back to you what is happening? Is there some sort of logging I can enable?

0
Comment actions Permalink

Ah, I just realized it's not possible to turn off solution-wide analysis, only inspections. Ignore #2.

0

Please sign in to leave a comment.