简体   繁体   中英

Visual Studio 2013 Search Solution Explorer fails to find files

So, I was using Visual Studio 2013, it crashed, and when I restarted it the Search Solution Explorer had stopped functioning correctly:

  • It fails to find any file if you type in the exact file name
  • It fails to find any static files eg HTML, CSS, JavaScript, etc.
  • It fails to find any configuration files eg Web.config

It seems to still find some files on a partial match, but not all files that you'd expect it to match eg if I search for Account I'd expect it to find AccountController.cs and AccountControllerTest.cs but it only finds the latter.

Some further info:

  • If I start VS 2013 in safe mode Search Solution Explorer works fine without any problems
  • If I manually disable or uninstall the extensions I'm using and start VS normally, the problem with Search Solution Explorer reappears

Has anyone come across anything similar to this, or got any suggestions of what to try to get Search Solution Explorer working again?

Update

I've had some joy running devenv /ResetSkipPkgs and devenv /ResetSettings . After a I ran those command Search Solution Explorer started working again, and works most of the time now. It still fails occasionally. Sometimes restarting Visual Studio will get it working again, but sometimes it just plain refuses to find certain files that are there.

Update 2

I installed Visual Studio 2013 Update 2, and Search Solution Explorer ran without any problems for just over a week before this problem reappeared. Restarting Visual Studio got Search Solution Explorer working again.

I was able to narrow this down to the extensions I was using, "Productivity Power Tools 2013" seems to break the search feature for me in IIS, so I've disabled it for now. I'm getting a full set of results when searching now.

I came to this conclusion by uninstalling all of my extensions and reinstalling them one by one until the problem reappeared.

A coworker also had some success with this solution, launching DevEnv.exe with /ResetSkipPkgs

http://msdn.microsoft.com/en-us/library/ms241276.aspx

Update

The problem returned for me after about 30 minutes, no specific cause noted. It was nice while it lasted. Removing all extensions gets me the same behavior as OP, only running in safe mode appears to work.

Deleting the .suo file also seems to fix the problem for a while, and then it comes back. I'm about to resort to a reinstall of vs2012 just to get this search feature back.

请在重新安装所有内容之前尝试安装VS2013 update 2 CTP ,看看它是否修复了该错误:

Weird that it works in Safe Mode, or that you manage to fix by removing extensiosn and it then re-appears...

but if some of your projects are in solution folders, then there is a known bug, fixed but not released yet apparently:

http://connect.microsoft.com/VisualStudio/feedback/details/801836/solution-explorer-doesnt-search-files-projects-inside-solution-folders

I have the same issue and confirmed it related to VS2013 Update 2 RC. Uninstall it will fixed this issue.
Wait for GM version of VS 2013 update 2.

I still had this issue both prior to and after installing VS update 3. I should note that it went away after I installed that for a while, and then came back. I suspect (but cannot confirm) that the broken behavior's return coincided with a lockup of my system which necessitated a reboot...

Anyway, I had the Productivity Power Tools installed, and after reading the answers here wondered if it might be complicit, and so I went to disable it and noticed it had a pending update. I went ahead and updated the add-on, and that resolved the issue for me (again). We'll see if it stays fixed.

This may caused by other extensions you have installed in your visual studio. I have some issue, found out Telerik JustTrace caused this issue.

Running devenv /ResetSkipPkgs will fix the problem but, as noted, it will return. For a permanent solution, add this parameter to the target in the exe's properties:

"C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\devenv.exe" -ResetSkipPkgs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM