History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-5954
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Andrew Serebryansky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

MoveType refactoring incorrectly removes last class in the namespace

Created: 05 Aug 06 02:24   Updated: 21 Feb 08 23:43
Component/s: Refactorings - Move Type
Fix Version/s: None
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive JetBrains.zip (72 kb)


Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=5954


 Description  « Hide
Here's the text of e-mail conversation

tried to reproduce the behaviour in a small test application, but the refactoring works correct there.
So it seems to be only a problem in more complex environments. Unfortunately i'm not allowed to give you the source of our project. So i can only tell you what i have done in detail.

We are developing a multi tier application with a WindowsForms client which communicates with the server via .NET-Remoting.
The soulution consists of three projects (Client, RemotingInterface and server). All projects references the dll of a library with utility functions for error handling. The complete application has around 4000 classes.

We had defined some exceptions in the RemotingInterface which i had to move to the library. First i used the MoveType refactoring to move the exceptions to the namcepace of the error handling utility funtions and then i removed the exception classes from the project and added them to the library project.

What i have noticed is, that the refactoring of the last class lasts extremely long (around 30 to 50 seconds instead of 3 to 5 seconds for the other classes). And the other thing i have found is that the problem is reproducable. I have checked out a recent version from our repository and tried the refactioring again with the same result.

I will attach my test application to this mail so that you can see the structure of our solution. Maybe this will help you a little bit.

Regards
Klaus

Support - Andrey Serebryansky wrote:
> Hello Klaus
> Could you please provide a sample solution, which demonstrates such
> behavior?
>
> Andrey Serebryansky
> Support Engineer
> JetBrains, Inc
> http://www.jetbrains.com
> "Develop with pleasure!"
>
> ----Original Message----
> From: Klaus Ludenscheidt klaus.luedenscheidt@gmx.de
> Sent: Wednesday, March 02, 2005 3:54 PM
> To: support@jetbrains.com
> Subject: [RS-Bug Report] MoveType refactoring
>
> Hello,
>
> i just used the MoveType refactoring to move all classes of a
> namespace into another namespaces. After moving the last class i got
> compile errors because there where still using references to this no more existing namespace.
>
> Regards
> Klaus Ludenscheidt
>
> –
> OS: Windows XP
> Resharper: 1.5
> Build: 160



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.