Cannot edit checked out file (TFS) in Visual Studio 2013

后端 未结 6 1314
说谎
说谎 2020-12-25 10:25

Since I changed my windows password I can no longer type into a checked out file in Visual Studio 2013! Where before I just needed to start typing and it would check out the

相关标签:
6条回答
  • 2020-12-25 10:36

    I suspended Resharper and restarted Visual Studio 2013. Once I reopened it the problem was gone. Resuming Resharper caused the problem to emerge again.

    The solution is quite large so maybe that is it. Before putting Resharper into suspend mode I tried switching off code analysis thinking the workload is just too great, but that didn't help. The suspend did though. I hope this helps anyone else with the same issue.

    All I have to do now is to figure out how to get Resharper back in the game without the problem coming back. We rely on Resharper as it is an wonderful tool. Since the solution has many projects in it, I am going to try create a smaller solution with my web project and just reference the other projects as assemblies. Maybe that will help

    Update: Clearing the resharper cache as suggested by Alexander resolved the original issue.

    0 讨论(0)
  • 2020-12-25 10:39

    I'd like to add Alexander's comment as answer, since it helped me exactly to solve the issue:


    Clean R# (ReSharper) caches by deleting all folders (and files) from the path

    C:\Users\{User Name}\AppData\Local\JetBrains\ReSharper\v8.2\SolutionCaches\

    and then reopen the solution.


    Note: (Thanks to Antak for providing this info!)

    You can paste

    %userprofile%\AppData\Local\JetBrains\ReSharper\v8.2\SolutionCaches

    into file explorer's path textbox (open it via Win+E, or use Win+R and paste the path into the command window), this will resolve the physical path into your user's directory automatically.

    0 讨论(0)
  • 2020-12-25 10:47

    I too had this problem with the latest version of ReSharper (9.0.0.0), but clearing the cache as stated above did not work. I actually had to go into my ReSharper options (ReSharper -> Options -> General) and click the "Clear Caches" button. Once I did this and restarted VS everything is working again.

    0 讨论(0)
  • 2020-12-25 10:47

    Try: /safemode
    I had a similar problem where I could not edit most of my files, but I could edit *.ps1 files.
    I don't have TFS, I do have resharper and other plugins.
    What worked for me was:

    • Start visual studio in safe mode: C:\..\IDE>devenv /safemode
    • Close VS.
    • Start VS normally.

    That probably has the same effect as suspending and resuming resharper, but I'm not sure which plugin could be causing the problem. If you are having trouble this is something you could try.

    0 讨论(0)
  • 2020-12-25 10:50

    This happened to me. All my JavaScript files went "dead." By "dead" i mean that all the normal VS intellisense coloring/functionality was gone; js files were un-editable, although Resharper was still working sort of; all other non-js files seems to be normal. In addition to Resharper, I had also previously installed Web Essentials and was using both tools.

    First, I cleared the R# caches as mentioned above by Alexander. After restarting VS, this DID NOT work. JS files still dead.

    Then i disabled Web Essentials. Then I restarted. THIS WORKED.

    I then re-enabled Web Essentials, restarted again, and all seems to be OK. Am crossing my fingers....

    0 讨论(0)
  • 2020-12-25 10:57

    I hit the refresh(restart) and it solved a similiar problems so maybe you better try that before an IDE restar. ctrl shift F5

    0 讨论(0)
提交回复
热议问题