Bug 6246 - Refactor...Rename leaves code appearing in red
Summary: Refactor...Rename leaves code appearing in red
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-07-23 21:00 UTC by Tom Opgenorth
Modified: 2012-07-24 09:57 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Renamed the class from UpdatedSnipeMessage to SnipeUpdated (35.20 KB, image/png)
2012-07-23 21:00 UTC, Tom Opgenorth
Details
The is not an error, the class does exist and the project does compile. (40.52 KB, image/png)
2012-07-23 21:01 UTC, Tom Opgenorth
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Tom Opgenorth 2012-07-23 21:00:13 UTC
Created attachment 2248 [details]
Renamed the class from UpdatedSnipeMessage to SnipeUpdated

When I rename a file in MonoDevelop, the syntax highlight for the class is in red, leading me to believe that I have a compile error in my code when in fact I do not.

Steps to duplicate
1. Open a .CS file
2. Find a place where an object is being new'd up.
3. Use the Refactor...Rename to change the name of the class.

MonoDevelop will go ahead and perform the refactoring, however the class shows up in the text editor in Red, leading the developer to believe that there is an error.  Hovering the cursor over the class also brings up a pop-up with an error.


See attached. In the screenshot I renamed my class from UpdatedSnipeMessage to SnipeUpdated. The project compiles and runs fine. Closing the window for the class RunSnipe.CS and then opening it up again does not fix the problem.
Comment 1 Tom Opgenorth 2012-07-23 21:01:23 UTC
Created attachment 2249 [details]
The is not an error, the class does exist and the project does compile.
Comment 2 Mike Krüger 2012-07-24 04:39:41 UTC
Already fixed in monodevelop master.
(btw. which exact version did you use 3.0.3 ?)
Comment 3 Tom Opgenorth 2012-07-24 09:57:42 UTC
Was using 3.0.3.4.  Thanks.