Bug 28677 - Refactor: Create Method: Exception raised
Summary: Refactor: Create Method: Exception raised
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 5.8
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2015-04-02 04:22 UTC by canab
Modified: 2015-07-22 05:47 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 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 canab 2015-04-02 04:22:51 UTC
Crash details:

https://gist.github.com/canab/3924ad778af9b3b26b9d
Comment 1 Udham Singh 2015-04-02 04:54:07 UTC
We have tried to reproduce this issue but not able to reproduce this.

Could you please provide some test steps/screencast? So that we can reproduce this issue at our end. 

Also please include your complete build info and Ide log. You can get build info via 'Xamarin Studio > About Xamarin Studio > Show Details > Copy Information and paste it' and Ide logs via 'Help > Open Log Directory and get the latest Ide log'.

Thanks!
Comment 2 canab 2015-04-02 05:18:22 UTC
Sorry about the lack of info. It is probaply related to shared projects.
Steps to reproduce:

1. Create new solution with shared project:
File -> New -> Solution -> c# -> MobileApp -> Blank App (Xamarin.Forms Shared)

2. In shared project create Empty c# class "ClassA.cs";
3. Close editor tab with just created class;
4. In shared project create Empty c# class "ClassB.cs";
5. Write in constructor:
    var a = new ClassA();
    a.foo();
6. Show "quick fix" context menu at "foo" and select "Create Method"
7. It tries to opens a new tab but Exception is thrown.


AppLog:
https://gist.github.com/canab/f3ce670eb03a977af87e


Build info:
=== Xamarin Studio ===

Version 5.8.1 (build 8)
Installation UUID: 12888312-f7f9-4276-91ec-fae91acc8cd1
Runtime:
	Mono 3.12.1 ((detached/b63df7d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010002

=== Apple Developer Tools ===

Xcode 6.2 (6776)
Build 6C131e

=== Xamarin.Mac ===

Not Installed

=== Xamarin.iOS ===

Version: 8.8.1.9 (Business Edition)
Hash: 7e1f69e
Branch: 
Build date: 2015-03-12 15:35:49-0400

=== Xamarin.Android ===

Version: 4.20.1.0 (Business Edition)
Android SDK: /Users/air/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3 (API level 10)
		4.2 (API level 17)
		4.4 (API level 19)
		5.0 (API level 21)
Java SDK: /usr
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Build Information ===

Release ID: 508010008
Git revision: f8e52bf493869b6a320a95400553dc9ea8b7ef22
Build date: 2015-03-13 16:16:49-04
Xamarin addins: 84d611cc17567a68daad719327e90af06d2ae327

=== Operating System ===

Mac OS X 10.10.2
Darwin m42pro.local 14.1.0 Darwin Kernel Version 14.1.0
    Mon Dec 22 23:10:38 PST 2014
    root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64
Comment 3 Udham Singh 2015-04-06 11:56:21 UTC
Thanks for the info.

I have checked this issue with the help of test steps given in comment 2 and observed that after step 7 XS is getting crashed. Please refer the screencast : http://www.screencast.com/t/QwtZlvfa

XS Crash Log : https://gist.github.com/Udham1/b80129d15affcbb8eebd
Ide Log : https://gist.github.com/Udham1/4273a1503d518f2c567b

Environment Info : 

=== Xamarin Studio ===

Version 5.8.2 (build 7)
Installation UUID: ce927b2a-2c07-44c5-b186-09cfdafba6dc
Runtime:
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Android ===

Version: 4.20.1.0 (Business Edition)
Android SDK: /Users/xamarin76/Desktop/android-sdk-macosx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: 8.8.2.4 (Business Edition)
Hash: 981acb3
Branch: 
Build date: 2015-03-25 14:21:05-0400

=== Xamarin.Mac ===

Version: 2.0.0.141 (Business Edition)

=== Build Information ===

Release ID: 508020007
Git revision: 067ed06873402cf780f8a0899bb332c2a1c0af22
Build date: 2015-03-27 14:17:13-04
Xamarin addins: 02510c4990dee3475c282b3182d588975a63ff07

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin76s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 4 Mike Krüger 2015-05-20 01:55:21 UTC
Should be fixed in 6.0
Comment 5 canab 2015-07-22 05:41:31 UTC
Is there any release plan for 6.0?
This bug is to annoying for me.
Comment 6 Mike Krüger 2015-07-22 05:47:07 UTC
We're making a pre release. 6.0 unfortunately was delayed for some reasons.
But the pre release will be available soon - hopefully.