104

Today my Find Results feature of Visual Studio 2012 stopped working. The Find Results windows displays summary information, but not the actual lines matched. This is all my Find Results window displays:

Find all "mytext", Subfolders, Find Results 1, Entire Solution, ""
  Matching lines: 40    Matching files: 10    Total files searched: 1129

I have tried all of the fixes this Microsoft forums poster has tried:

http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/1a02f076-29f7-46d1-879a-f8ae6d6abe95

His solution was to reformat and re-install. The Microsoft MSDN Forum Assistant's answer is awesome:

"Glad to know that you will not not be botherd by this weird problem ."

Has anyone found an actual solution to this problem?

Stephan Schielke
  • 2,744
  • 7
  • 34
  • 40
Max Barfuss
  • 1,432
  • 2
  • 9
  • 14
  • 1
    Can you please select Max's response as the answer for this? Looks like it is working out great for everyone. – Tombala Oct 29 '13 at 16:18

8 Answers8

262

Check registry fixes in this thread. That helped me.

To make sure it won't disappear I'm copying the solution from Martin Rosselle here:

Please check if the following registry key is ok. Fixing this solved the issue for me.

  • Copy the text below and save it as .reg file.
  • Go to regedit.exe and import saved .reg file or simply open the file with Registry Editor and click yes when prompted to continue.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}]
@="PSFactoryBuffer"

[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
@="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\TextMgrP.dll"
"ThreadingModel"="Both"
tgarcia
  • 675
  • 9
  • 21
Max
  • 19,654
  • 13
  • 84
  • 122
  • 30
    This fixed the issue for me: specifically, the Path was missing in the second reg entry. As soon as I put it in, it started working without even restarting VS. – Greg Gum Jul 22 '13 at 16:26
  • 3
    The same for me (windows 8, VS 2012). `textMgrP.dll` missing in the default value. – jl. Aug 20 '13 at 12:48
  • 5
    Perfect. Changed value of registery HKEY_CLASSES_ROOT\Wow6432Node\CLSID{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32 from empty to C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll – om471987 Sep 10 '13 at 21:41
  • Fixed. Still I wonder how come it worked and then it stopped... Extension? – panpawel Oct 28 '13 at 12:23
  • I had to restart VS, but this solution worked. The default key (path to dll) was completely missing. – Hugo Logmans Dec 13 '13 at 09:01
  • 4
    Worked for me, no restart of VS (windows 8, VS 2012 ult) – ccook Feb 02 '14 at 02:44
  • 14
    Works on VS2013 Ult as well – Jochen van Wylick Feb 28 '14 at 15:54
  • 1
    This started for me after installing the ResourceManager extension – Oliver Apr 25 '14 at 11:06
  • This worked for me also running Windows 7 and Visual Studio 2013. Important to note that this only worked with the double back slashes in the second registry key. – Jared Beach Aug 25 '14 at 16:31
  • 1
    It works! in my case the default value of [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32] was empty – vcRobe Feb 13 '15 at 15:54
  • Solved my 'not showing results' find in files. The default value (the path) was missing. TNX! – Jeroen van Langen Apr 10 '15 at 07:56
  • It worked. verified. Just copy the text and save as a reg file and run it. – Ike Sep 14 '15 at 21:31
  • I had the same issue with VS 2013.4 on Windows 7 and this fixed it. Awesome! – Teorist Sep 15 '15 at 15:32
  • 1
    VS 2015 Community here, fixed only by changing the second register entry. Started working right away :) – podvlada Dec 10 '15 at 15:17
  • I suspect this broke on my PC after installing Delphi 2009. I thought it only changed PATH environment variable, but clear it broke more than I expected. – DJ van Wyk Jan 06 '16 at 08:20
  • Woah, that is random. This fixed it for me as well. I'm using Visual Studio Enterprise 2015. Earlier this week I installed Visual C++ 2008 whilst blindly following a tutorial during my attempt at compiling a certain PHP extension on Windows. I wouldn't be surprised if that somehow managed to break this registry key. (The path to 'TextMgrP.dll' was missing; it was blank) – Rob Wijkstra Jan 29 '16 at 12:46
  • Can confirm a fix on VS2015 Enterprise. – LSU.Net Mar 03 '16 at 22:33
  • FYI, the only thing I changed prior to search not working was attempting an install of a Windows SDK (to get an MSI debugging tool). It failed, I rolled it back, and apparently it trashed this registry setting. This fix worked great, though. – mwigdahl May 02 '16 at 18:00
  • Did not work for me with VS Community 2015. I ended up expanding the "Result options" portion of "find in files" when searching and chose to send the results to "Find results 2 window", which does still show up for me properly. – offthat Dec 28 '16 at 02:51
  • 2
    re-registering TextMgrP.dll with regsvr32.exe worked for me (make sure you are running the command prompt with admin rights) . Easier then creating a reg file. – Dmitry Streblechenko Mar 10 '17 at 20:45
  • om471987 and the solution provided corrected the issue. – Tom Jul 05 '17 at 19:20
  • 1
    Fixed Visual Studio 2015 - Professional. Thanks! – cjo30080 Oct 24 '17 at 22:36
  • (sad face) this didn't work for me in VS2017. Looks like I will be running a repair over the weekend. – Casey Crookston Apr 13 '18 at 17:19
  • 2
    This just worked in March 2021 on Visual Studio 2019 (16.8.6)... So thanks! :) – bambams Mar 04 '21 at 02:46
6

I was able to solve this by running:

Devenv.exe /ResetSettings

from the visual studio command prompt, then running a repair on my visual studio installation.

Still a lengthy fix for such a simple problem, but not quite a reformat.

Max Barfuss
  • 1,432
  • 2
  • 9
  • 14
3

See here: Visual studio search turned out to be a simple shortcut issue, Cntrl+Shift+F instead of Cntrl+F

vineet
  • 13,832
  • 10
  • 56
  • 76
Afshin Ghazi
  • 2,784
  • 4
  • 23
  • 37
1

This is a known bug in VS that has been around since 2005. Click on the 'find results' box and click ctrl+break a few times.

If that doesn't work for you, there are a few other key combinations that should - take a look here:

No search results in visual studio

Andrew dh
  • 881
  • 9
  • 19
1

I had a similar problem, I can resolve this issue by removing *\.*'; from the file types input

"Find and Replace" window (Ctrl+Shift+F)

Ctrl+Shift+F

Ajith
  • 343
  • 2
  • 23
0

I was only able to correct this issue by repairing my Visual Studio installation.

0

This issue was resolved for me after I restarted Visual Studio (2013 in my case). So make sure you try that before you dig into any of the more complicated solutions.

Godsmith
  • 2,492
  • 30
  • 26
0

I had an almost similar problem where the find results window stopped showing the matching lines in code. It did show the files however. The solution was unchecking the "Display file names only" checkbox in the "Find and Replace" window (Ctrl+Shift+F), which I had checked accidentally.

DiligentKarma
  • 5,198
  • 1
  • 30
  • 33