Bug 13376 - Exception is thrown when cursor focus is in text editor area and Search>Find Previous link is clicked.
Summary: Exception is thrown when cursor focus is in text editor area and Search>Find ...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.10
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2013-07-22 08:49 UTC by Akhilesh kumar
Modified: 2013-10-21 07:33 UTC (History)
4 users (show)

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:

Description Akhilesh kumar 2013-07-22 08:49:59 UTC
Steps to reproduce:
1. Open XS.
2. Create or open any solution.
3. Open any .cs file and click in text editor area.
4. Now click Find Previous link under search.

Actual result:
In XS when cursor focus is in text editor area and Search>Find Previous link is clicked, it shows exception error.  This issue is observed on both mac and windows for XS.

Expected Result:
Exception error should not be shown and Find Previous option should remain disabled unless no 

Environment Details:
All mac and windows
XS 4.0.10 (build 7)
Mono 3.1.2

Screencast URL:

Exception error details:

Regression Status : Getting same error for stable XS 4.0.9 (build 12) and stable XS 4.0.8 (build 2) with Mono 2.10.12
Comment 1 Mike Krüger 2013-09-10 05:25:14 UTC
Comment 2 narayanp 2013-09-19 03:22:19 UTC
Today I have checked this issue with following builds:

All Mac and Windows
X.S 4.0.13(build 31)
X.Android 4.8.2-57

And we are experiencing same issue. This is the gist for the same: https://gist.github.com/saurabh360/5152417b95ce74587cea

Hence reopening this issue.
Comment 3 Mike Krüger 2013-09-19 03:54:01 UTC
4.0.13 doesn't contain the fix
Comment 4 PJ 2013-09-19 16:44:49 UTC
Mike, can you try to give an indication of the branch you fix bugs in, or the commit hash? It would be very helpful and avoid this kind of wasted time.
Comment 5 Mike Krüger 2013-09-20 01:00:58 UTC
I fix bugs in master.
Comment 6 Mike Krüger 2013-09-20 01:01:31 UTC
btw. we had this bug since - forever ? Therefore I wouldn't say it's a high priority one.
Comment 8 narayanp 2013-10-21 03:58:27 UTC
Today I have checked this issue with following builds:

All Windows and Mac
X.S 4.0.14(build 3)
X.Android 4.10.0
Mono 3.2.3

We are still getting exception after clicking on Search->Find Previous. This is the gist of the exception: https://gist.github.com/saurabh360/adff413f54e0a1374e8e

Hence, Reopening this issue.
Comment 9 Mike Krüger 2013-10-21 04:00:48 UTC
Works for me in md master (you can't even click find prev there)
Comment 10 narayanp 2013-10-21 07:33:54 UTC
I have checked it again on another builds:

All Mac and Windows
X.S 4.1.7(build 1537)
Mono 3.2.4
Xamarin.Android 4.10.1

Now we are getting 'Find Previous' command as disable under Search menu and when we search any text in text editor and then select Find previous command, it works properly. This is the screencast for the same: http://screencast.com/t/xaywYWXo1X

Changing the status to Verified.