ReSharper 8.2.1 not working - visual-studio-2013

I've recently tried to install ReSharper 8.2.1 on my new computer for Visual Studio 2013. The install process succeeds but when I open Visual studio, there is no ReSharper Tab at the top.
In Tools -> Options, ReSharper is there and i can click the Suspend Now button, but the Options.. button has no effect.
Is there something i'm missing? or a setting I have forgotten?

I had the exact same problem. I tried reinstalling it with admin privileges, repairing it, suspending and restarting it etc. but nothing seemed to work. I eventually deleted the %AppData%\JetBrains\ReSharper as stated by some people in the comments on this post, which finally fixed everything.
http://resharper-support.jetbrains.com/entries/21204867

I solved it updtating ReSharper.ExternalAnnotations to the last version like this answer mentions.
If you don't have it yet you can download it by going to
Resharper => Extension Manager => Updates => Resharper.ExternalAnnotations

I spent almost an entire day getting Resharper 9.2 working with VS 2013 Premium.
Followed the steps mentioned at http://resharper-support.jetbrains.com/hc/en-us/articles/206104038-ReSharper-is-not-available-in-Visual-Studio-after-installation without any success.
Finally what worked for me was to repair the VS 2013 setup.
(This is not relevant to the question posted as the question is for Resharper 8.1. However, I am posting this as someone might find it useful and may not end up wasting time like me!)

Related

'VSPackage' package did not load correctly

I'm having this error pop up once I start Visual Studio professional 2013 with update 3.
I don't know whats going on and also when I created a web form and try to put items from the toolbox into a table in my code it doesn't let me. the items are dim and can't select them any more. before I would make a table and try to add Labels, textbox, etc and it wasn't a problem.
Visual Studio 2013 Update 4
Tools -> Extensions and Updates
Disabled "Release Management for Visual Studio 2013 v2.1".
That worked for me.
I got the same issue today, but the error message should be giving you some guidance.
Take a look at mine, it tells me to check the "ActivityLog.xml" for more information.
After looking at the entry my error showed me that it ocured the evening before around 5:30pm and I know I was installing the Visual Studio 2013 Update 4 at this time. So it seems I had a problem with my Update installation.
(Sorry maybe someone can school me on how to properly load an image for viewing)
So I realized my problem was an install issue I created, yours might be an add-on or something similar that you just updated your Visual Studio with that corrupted your VS.
So a little more researching and asking some buddies at work and we tried doing this step in another SO article, which should have the same effect of fixing our package loading problem also.
the Provider package did not load.
After running the steps listed there my Visual Studio started up without any obvious issue.
Hope this helps.
Open ActivityLog.xml in a viewer (I've used Microsoft Edge) and you'll find the error. VSPackage is the "Developer Analytics Tools" extension for me.
The error is gone after uninstalling that package. You can obtain the package and attempt to reinstall from the Developer Analytics Tools page in the Visual Studio Gallery.
I uninstalled and reinstalled Visual Studio and the problem went away for a little bit. It eventually came back complaining about different packages.
Then I noticed my home directory was encrypted. I decrypted the directory and the problem went away.
If it is not an encryption issue, I'd try just uninstalling and reinstalling VS 2013.
Message could be shown in case of "Path" environment variable longer than 2048 characters. In that case, system doesn't work proply with system paths like %windir%.
If it's your case, shorten "Path" environment variable and everything works again.

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

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 file in the background, now it won't even allow me to type into the file after I manually check the file out, from the solution explorer! It's as if VS 2013 is ignoring the keyboard on the project under source control. It's fine for other projects even project's under source control!
I think I remember seeing this before with older versions of Visual Studio and resolved it with a "Go online" option but I can't see that option in VS 2013, or the project is not "off line" so the option is not available.
This is obviously related to the TFS setting on the project but I simply cannot get past it. I am blocked and would appreciate any suggestions.
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.
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.
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....
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.
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.
I hit the refresh(restart) and it solved a similiar problems so maybe you better try that before an IDE restar. ctrl shift F5

Visual studio 2013 pending changes window not comments field

I am using Visual Studio 2013 together with TFS 2012 since a few weeks. Until yesterday I always had the Comments Textbox in the "Pending Changes Window". Now it has dissapeared and I can not find a way to get it back. This is a serious problem since it is mandatory to give comments to every checkin.
Can anybody tell me how to get the comments textbox back.
Can you post a screenshot of your Pending Changes window? It should be right here:
I recently had to struggle through this issue myself and found there is very little information out there on how to resolve it.
For my situation, what finally fixed the issue was removing the 2012 version of TFS Power Tools and upgrading to the 2013 version. There are several members of my team who are using the combination of TFS Power Tools 2012 and VS 2013 with no issues, I'm the only one who saw this.
I suspect that this was not a power tools issue as much as it was a problem with VS caching some TFS data locally. I tried a number of options to clear caches in both VS and TFS and nothing worked until I did this uninstall/reinstall.
Regardless, after the TFS power tools upgrade and a reboot, the Comment box was back. Hope that helps!
EDIT: I should also point out that not only was my "Comments" section missing, I also had no "Policy Warnings" section which we require on certain projects of our TFS.
I had exactly the same issue right after installing NCrunch 2.4.
Uninstalling it brought my comment box back.
Having the same issue. Vanished today. Have not installed anything for weeks. I had 3 Visual Studio 2013 up at the same time. 2 was bugged, 1 was not. I closed the 2 buggy ones, and then the working one hoping that last one would save its settings last. Did not work. Now I have no way of adding comments. I can check in anything without the policy blocking me like it normally does when I do not enter a comment.
UPDATE: A simple reboot of the client solved it. The Comment is back!

Visual studio closes when debugging (after install update 2)

I just installed the visual studio update 2 on two computers and now when I try to debug my program, the visual studio closes!!
It doesn't show any exception, just closes.
What should I do? I tried to reinstall the visual studio and install again but I got the same problem.
According to Marc Paine (Visual Studio Debugger QA Lead):
You are using the Visual Web Devleoper version of VS, correct? If so, we have a known bug in this CTP only affecting VWD. You can copy symsvr.dll from any other install of VS (other express versions or pro) into the common7\ide directory for VWD. That should fix the problem. We have fixed this problem already and it should be avialable in the next CTP.
Unfortunately it doesn't worked for me... so I tell it in the support forum but Microsoft just marked my feedback as closed and didn't answer me anymore...
So unfortunately my solution was formatting my computer.
It's a CTP right now, which isn't really supposed to be stable; on the contrary - it has experimental features. So it shouldn't really surprise you that it crashes. Gather as much data as possible and send it to Microsoft; hopefully they'll fix it.

Visual Studio removes line break on start

I have the problem that Visual Studio (or maybe Resharper?) removes line breaks when I try to start my application. This happens in a way that when I press F5 or click on the run button with the mouse that a line break at the line where the cursor was the last time will be removed which is extremely annoying.
I have not tried so many things yet because I really don't know where to start. I never experienced this problem before and was always working with the same setup:
Visual Studio 2010
Resharper 6.1.1
Other plugins I use but which were installed after the problem (so I think they should not be related to the problem):
AnkhSvn
TeamCity
Example:
Before:
public void test(){
int x = 5;
}
After running the solution:
public void test(){
int x = 5;}
Edit: This issue seems to be related to Resharper - so hopefully they will be able to fix this issue as I never had this with any previous versions. (http://devnet.jetbrains.net/message/5456038#5456038).
This is a problem with Dexexpress Dim#ster patch. If you delete licenses.licx and compile in the source code. Not happend. The problem is when you open a form and licenses.licx is created again. Is you uninstall the patch this dissapear. But I dont understand why deactivating Resharper the problem gone too. But without patch and resharper + devexpress trial working fine.
The problem is the patch.
I'd do this before reinstalling:
Uninstall All plugins
Type devenv.exe /resetsettings
Now try and use your code as described without plugins. Slowly add back your plugins if its ok and check after each is installed if the problem manifests itself. if not it was some setting in one and its now gone, if it comes back after one is installed you have a good thing to look at.
Just blatting the environment means you'll never find out whats causing it, which would annoy me :)
Have a look at ReSharper's Braces-settings: http://www.jetbrains.com/resharper/features/code_formatting.html#Code_Style_Configuration_and_Sharing (1st screenshot). Try changing those settings according to your needs.
If you're a member of a team, maybe someone else enabled sharing of "code style settings". See the previous link for that, 2nd screenshot.
Does it also occur when you just build the project?
In the build options try doing clean project, then open close the program. After this do a rebuild project. Also make sure the project is in debug mode for testing =)!
Delete the settings resharper in solution. Helped me.
I know that this question is a little bit old. But this may help anyone who encountered the same error with resharper and devexpress controls. I've tried all the above instructions, but the nothing works. BTW I'm using visual studio 2017 with resharper 2017.2.2 and devexpress 17.2.3
This what works for me.
Open build&run window in resharper. Click Resharper>Windows>Build&Run to open the the window then select "Enable 'Resharper Build'. Open any file in text editor and move the cursor at the end of any line of codes or on any empty line and try to build the project to see if it works.
Hope this will help.
At this point I would suggest uninstalling and reinstalling VS. Then add ReSharper and any of your extensions one at a time.
I had the same problem. I use this prebuilt-event script
break>$(ProjectDir)\Properties\licenses.licx
I have ReSharper 10.0.2, VS2013, DevExpress Components and VisualSVN.

Resources