Bug 24490 - "Find in Files..." shows annoying error when no solution open
Summary: "Find in Files..." shows annoying error when no solution open
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Management ()
Version: 5.7
Hardware: Macintosh Mac OS
: Low enhancement
Target Milestone: (C7)
Assignee: Mike Krüger
URL:
: 28867 ()
Depends on:
Blocks:
 
Reported: 2014-11-13 06:40 UTC by Hylke Bons
Modified: 2016-05-18 05:58 UTC (History)
5 users (show)

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


Attachments
Finf in Files dialog with error (103.63 KB, image/png)
2014-11-13 06:40 UTC, Hylke Bons
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:
VERIFIED FIXED

Description Hylke Bons 2014-11-13 06:40:58 UTC
Created attachment 8716 [details]
Finf in Files dialog with error

Having an error appear when no Solution/Project open is annoying and "punishing" anyone who is trying to search.
A possible solution would be to disable all entry points to this dialog when no Solution/Project is open
Comment 1 Rajneesh Kumar 2014-11-14 03:00:43 UTC
I have checked this issue and able to reproduce the reported behavior.  To reproduce his issue I have followed the steps mentioned below:

1. Open Xamarin Studio.
2. Go to Main Menu=>Search=>Find In Files... 
3. A window will appear with titled "Find In Files"
4. Write something in Find: textbox and click "Find" button
5. Observed that, you will see popup with annoying error "Currently there is no open solution".

As user say that "Find in Files..." and "Replace in Files..." should be disable when no solution is open in Xamarin Studio, I am marking this issue as an enhancement and confirmed.

Screencast:  http://www.screencast.com/t/2llPLcPgNp

Environment Info:

=== Xamarin Studio ===

Version 5.5.3 (build 6)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

=== Xamarin.Android ===

Version: 4.18.1 (Business Edition)
Android SDK: /Users/MM/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		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)
		4.5    (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)

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.4.0.16 (Business Edition)
Hash: 80e9ff7
Branch: 
Build date: 2014-10-22 15:09:12-0400

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Build Information ===

Release ID: 505030006
Git revision: fbe3e9453daf6a3bb9a9709ed22bec35f7c9056b
Build date: 2014-10-23 13:08:38-04
Xamarin addins: e44add2b39de4dd57c0742bb2e620dfad84c64c6

=== Operating System ===

Mac OS X 10.9.5
Darwin MacMini.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 2 Lluis Sanchez 2014-11-17 10:41:54 UTC
The dialog can work without a solution being open, since you can search on arbitrary directories. The problem is that the "look in" option is set to "Whole solution". That option should not be available when no solution is open.
Comment 3 Hylke Bons 2014-11-17 12:40:14 UTC
That would be an other acceptable solution. :)
Comment 4 Hylke Bons 2014-11-21 05:36:28 UTC
In addition to that, we probably want to make "Directories" the default scope selection? None of the others are useful and should be greyed out.
Comment 5 xamarin-release-manager 2015-12-11 10:57:46 UTC
Fixed in version 6.0.0.2478 (master)

Author: Mike Kr??ger
Commit: 95f90833e69edeea9683577f3ef79af3d5c4f887 (mono/monodevelop)
Comment 6 Rajneesh Kumar 2015-12-11 17:44:09 UTC
I have checked this issue with the following build:
XamarinStudio-6.0.0.2478_95f90833e69edeea9683577f3ef79af3d5c4f887

Now I observed that "Whole solution" option is not available when no solution is open, however user can search on arbitrary directories successfully. please refer the screencast: http://www.screencast.com/t/w9iKjXvA

This issue has been fixed hence I am closing this issue.

Thanks..!


Environment Info:

=== Xamarin Studio ===

Version 6.0 (build 2478)
Installation UUID: 229ec167-a154-47bf-bb8b-10fe36c1ad41
Runtime:
	Mono 4.2.1 (explicit/39edf24)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010124

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.1 (9079)
Build 7B91b

=== Xamarin.iOS ===

Version: 9.4.1.0 (Business Edition)
Hash: dab1554
Branch: master
Build date: 2015-12-08 23:32:56-0500

=== Xamarin.Android ===

Version: 6.0.0.34 (Business Edition)
Android SDK: /Users/360_macmini/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3  (API level 15)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		6.0    (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.1
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.4.0.109 (Business Edition)

=== Build Information ===

Release ID: 600002478
Git revision: 95f90833e69edeea9683577f3ef79af3d5c4f887
Build date: 2015-12-11 06:12:33-05
Xamarin addins: f42115c647f89ea4109000ec840b10d0ed702a2d
Build lane: monodevelop-lion-master

=== Operating System ===

Mac OS X 10.11.2
Darwin 360-MACMINIs-Mac-mini.local 15.2.0 Darwin Kernel Version 15.2.0
    Fri Nov 13 19:56:56 PST 2015
    root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
Comment 8 Marius Ungureanu 2015-12-18 02:32:45 UTC
*** Bug 28867 has been marked as a duplicate of this bug. ***