Bug 35822 - Inconsistent Naming 'Fix' for Class name does not rename file
Summary: Inconsistent Naming 'Fix' for Class name does not rename file
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: Macintosh Mac OS
: Low normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2015-11-12 17:26 UTC by Galute
Modified: 2015-11-20 09:02 UTC (History)
3 users (show)

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

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 for Bug 35822 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Galute 2015-11-12 17:26:54 UTC
When a class is named for example my_class the Inconsistent Naming rule offers to 'fix' this and rename to MyClass.  If this fix offer is taken, the class is renamed but the file stays as being my_class.cs.  The file has to the be renamed separately to match the class name.

In contrast the Cmd + R rename option offers and (if the option is checked) renames the file as well as the class.

Xamarin Version 5.10 (Build 870) running on Mac OS X 10.11.1
Comment 1 Chris Hamons 2015-11-12 17:42:55 UTC
Xamarin.Mac is the mac specific bindings to Cocoa, not the general place for any Xamarin bug on the mac.

I'll move this to what I think is the right group.
Comment 2 Udham Singh 2015-11-20 09:02:56 UTC
I have checked this issue and able to reproduce the reported behaviour. Please refer the screencast : http://www.screencast.com/t/gYdmjGft3R

Ide Logs : https://gist.github.com/Udham1/ded0d81a408c92c70317

Environment Info : 

=== Xamarin Studio ===

Version 5.10 (build 871)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Apple Developer Tools ===

Xcode 7.1 (9079)
Build 7B91b

=== Build Information ===

Release ID: 510000871
Git revision: 4e9c5abb5ffdae12ba02ac49da83f8b2011dbb88
Build date: 2015-11-12 06:02:54-05
Xamarin addins: 55007ed0e56436f385d8e26394a45be563abc7e8
Build lane: monodevelop-lion-cycle6

=== Operating System ===

Mac OS X 10.10.5
Darwin Xamarin76s-Mac-mini.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64