Move To Folder Refactoring Hangs [Build 3]

I have intalled Resharper 6.1 EAP Build 3 (as listed on the nightly downloads), and I'm attempting to use Refactor -> Move to move a XAML (and it's .cs) to another project in the solution.  Doing so starts the wizard as I would expect, then lists off a bunch of conflicts (that I expect at this point), but then hangs while "Generating using directives...".  I am unable to cancel the operation after this happens, and the only choice I have is to kill the devenv.exe process from Task Manager.  Here's a screenshot of whta I see:

MoveToFolder.png
I've not been able to verify if this problem is limited to the EAP as I don't have R# 6.0 running anywhere anymore.  I'm also not sure how to troubleshoot this problem, but I'm willing to provide as many details as I can to try and narrow it down.

I would also note that a lot of 'Conflicts' that it identifies are "flaky", for example in the screen shot the highlighted conflict is "Following usages of struct Void will be broken", the line of code it highlights is:

protected override void OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e)


With the cursor being placed on the "void".

Any ideas?

Message was edited by: Mark Warpool
13 comments
Comment actions Permalink

Hello Mark,

Could you please capture a snapshot of the period when ReSharper hangs (you
can find instructions at http://tinyurl.com/bqfkh34) and upload it to ftp://ftp.intellij.net/.uploads/?
Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have intalled Resharper 6.1 EAP Build 3 (as listed on the nightly
downloads), and I'm attempting to use Refactor -> Move to move a XAML
(and it's .cs) to another project in the solution.  Doing so starts
the wizard as I would expect, then lists off a bunch of conflicts
(that I expect at this point), but then hangs while "Generating using
directives...".  I am unable to cancel the operation after this
happens, and the only choice I have is to kill the devenv.exe process
from Task Manager.  Here's a screenshot of whta I see:

Image:MoveToFolder.png I've not been able to verify if this problem
is limited to the EAP as I don't have R# 6.0 running anywhere anymore.
I'm also not sure how to troubleshoot this problem, but I'm willing to
provide as many details as I can to try and narrow it down.

Any ideas?

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



0
Comment actions Permalink

Andrey,
I created the issue here: http://youtrack.jetbrains.net/issue/RSRP-280869?projectKey=RSRP&query=by%3A+me, I had updated to 6.1.4.67 but got the same result (at a slightly different point though).  Let me know if there is any additional information I can provide.

0
Comment actions Permalink

I'm running into this issue again, with the latest build (6.1.24.241).  I've also noticed that the refactor dialog shows me a lot of mistaken errors, specifically it's telling me that the destination requires additional references.  Many of the references are already present, and it also tells me that the project needs to add a reference to itself.

I should add that I'm moving files out of one project (a WPF .exe) into a different project (a WPF .dll).

0
Comment actions Permalink

Hello Mark
     Are you able to reproduce this behavior on a small sample solution? Could you please attach such sample here? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Andrey, unfortunately I cannot reproduce this in a smaller solution.  The particular solution this is happening in is quite large, currently over 20 projects.  And the issue presents itself when moving files from one project to another.  Is there any other information that I can provide that might help troubleshoot this?

0
Comment actions Permalink

Hello Mark
     Could you please take another snapshot of this problem (following the instructions in one of my previous replies)? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Hello Mark
     Could you please take another snapshot of this problem (following the instructions in one of my previous replies)? Thank you!


Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com
"Develop with pleasure!"

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

0
Comment actions Permalink

I can't run dotTrace anymore, my "Free evaluation not available".  I assume I've run out of time for the evaluation. :(

0
Comment actions Permalink

Hello Mark
     Please send an e-mail to andrew dot serebryansky at jetbrains dot com and I'll send you an evaluation extension for dotTrace. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Ok, I just uploaded another trace named: "R#-6.1.29.21-Refactor-Move.dtp.zip".  The first time I ran this trace, I let the operation run for about 30 minutes (wanting to see if it would eventually finish) at which point VS crashed and dotTrace stopped the profiling.  So I re-ran it and let it run for about 6-7 minutes wanting to give you as much of a trace as I could without letting it crash again.

There's a screen capture of what I see here: http://screencast.com/t/cgjpa0sV , if that helps at all.  Let me know if I can provide any more information.

0
Comment actions Permalink

I just attempted another refactor (a single file this time rather than a bunch) and it froze; I was able to cancel it and after VS became responsive again I received this exception: http://youtrack.jetbrains.net/issue/RSRP-286560

Maybe that will help shed some light on the problem.

Another interesting thing I just noticed:  Even though I cancelled the operation, the file actually move to where I was trying to move it.  All the refactoring appeared to have been successful as well.

Message was edited by: Mark Warpool

0
Comment actions Permalink

Hello Mark
     It looks like there are lots of exceptions occurring when you perform the refactoring which causes the freeze. Could you please perform the same operations that you did with dotTrace, but this time run Visual Studio (devenv.exe) with /ReSharper.LogLevel Verbose /ReSharper.LogFile "C:\log.txt" and attach the resulting log file here? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

So far, with build 30, I am unable to reproduce the problem.  I actually just move about 12 XAML files that I really didn't want to move (I was out of xaml files I wanted to move), and it worked perfectly.  Maybe it's fixed!!

0

Please sign in to leave a comment.