ReSharper 5.0 not working in VS 2010
Hello,
until today I have been using ReSharper 4.5 and VS 2008 Prof. I just wanted to upgrade to VS 2010, so I installed it parallel to VS 2008.
After that I updated ReSharper to version 5.0 and chose "Uninstall previous versions".
However, the ReSharper menu-item was not showing up in VS 2010 and ReSharper was not listed in the Extension Manger, too.
In VS 2008 it worked perfectly fine.
Wondering whether this might be a compatibility issue I uninstalled both ReSharper, VS 2008 and VS 2010 and then installed VS 2010 and ReSharper 5.0 again.
The problem still exists, however as you can see on the attached screenshot.
My system: Win7 Prof. 64bit German / VS 2010 Prof.
What am I doing wrong?
I know, this is not much information. Thus, let me know if you want to know something else.
Many thanks in advance!
Attachment(s):
ReSharper.JPG
Please sign in to leave a comment.
Hello
Is ReSharper listed among installed products under Help > About Visual Studio in Visual Studio 2010? Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thanks for your response!
> Is ReSharper listed among installed products under Help > About Visual Studio in Visual Studio 2010?
No, it's not listed.
Attachment(s):
Screen.JPG
Strange - I just installed GhostDoc (another VS addin) and when starting VS again, ReSharper asked for license information and works fine now.
I'm currently having the missing ReSharper issue in VS 2010 with the same symptoms you had (not in "About Microsoft Visual Studio" or the extensions manager). I have never had a previous version of ReSharper, but I did have it installed in the VS2008 version before I installer VS2010. When I noticed it wasn't there I checked the logs for Visual Studio startup and it says that the extension is loaded and then enabled, but I'm not able to see it or any of it's functionality. I have also completely uninstalled/repaired VS 2010 and have even tried a different version (Ultimate currently) with uninstalling and repairing Resharper.
In an old discussion for the beta version of VS there was a mention of an option in the Environment section under "Extension Manager" that fixed it, but I do not have this option (maybe not in the RTM version anymore).
Out of desperation I also installed GhostDoc to see if it helped in my case, but still nothing.
Is there anything else you can recommend?
Francisco
Attachment(s):
VS2010 extensions issue1.JPG
I see this issue as well. ReSharper just stopped appearing in Visual Studio. Uninstalling and reinstalling did not bring it back. Repairing did not bring it back. "devenv.exe /ResetSkipPkgs" did not bring it back.
I'm have installed:
Visual Studio 2010 Ultimate (RTM)
ReSharper 5.0.1659
dotTrace Performance 4.0.556
StyleCop 4.3.3.0
Windows 7 x64 (RTM)
Any ideas as to why it suddenly stopped loading, or how to get it back?
Ah yes, I forgot to mention that I have only the following installed:
Visual Studio 2010 Ultimate 10.0.30319.1
ReSharper 5.0.1659.36
in Windows 7 RTM 32-bit
I had previously also tried to install dotTrace 4.0.556.5, but again, it seemed to load and yet nothing appeared in VS.
I have ran devenv with the /setup switch as well as the /resetskippkgs switch, but those did not help either. Later tonight when I have time I will attempt another uninstallation of ReSharper, removal of ReSharper registry entries, repair of VS, and reinstallation of Resharper to see if that helps. Will update here if it begins working (although I doubt it).
Francisco
I have same issue.
My environment:
1. Windows 7 Corporate x64 with russian language pack.
2. VS 2010 Ultimate 10.0.30319.1
3. ReSharperSetup.5.0.1659.36
4. StyleCop 4.3.3.0
5. StyleCop for ReSharper 5.0.14714.1
My story:
I installed resharper and it worked fine one week or maybe more. But today it disapered from all menus(about, tools->options, extension manager).
I uninstalled VS and reshrper and installed again but resharper still unvisible.
In VS 2008 it is working without issues.
ReSharper inexplicably reappeared when I started VS 2010 today. I have no idea what changed. I'll update this thread if it disappears again.
Today, the menu is gone again.
However, ReSharper IntelliSense is still working and the ReSharper windows are there, but don't work.
ReSharper is not listed under installed products.
[OT] Is there any way to reopen a thread [/OT]
Attachment(s):
Resharper.jpg
Hello,
Could you please check if there is any info on the 0C6E6407-13FC-4878-869A-C8B4016C57FE
GUID in the logs of Visual Studio startup?
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
In my case, the only entries for Jetbrains that appear in the VS2010 startup log are:
C:\PROGRA~1\JETBRA~1\RESHAR~1\v5.0\Bin\ReSharperRegistry.vs10.0.PkgDef
C:\PROGRA~1\JETBRA~1\RESHAR~1\v5.0\Bin\ReSharperRegistry.vs10.0.PkgDef
VisualStudio
C:\Program Files\JetBrains\ReSharper\v5.0\Bin\
120
C:\Program Files\JetBrains\ReSharper\v5.0\Bin\
C:\Program Files\JetBrains\ReSharper\v5.0\Bin\JetBrains.Platform.ReSharper.VsIntegration.DevTen.dll
C:\Program Files\JetBrains\ReSharper\v5.0\Bin\JetBrains.ReSharper.VS.DevTen.dll
I see no mention of a GUID for anything related to Jetbrains. During my installations and repairs I have noticed that it is only the Jetbrains packages that are failing. More recently I have installed GhostDoc as well as StyleCop and those are functioning and loading as expected. I don't know if this will help, but below is a list of all the products that appear under the Installed products in the About dialog.
Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.0.30319 RTMRel
Installed Version: Ultimate
Microsoft Office Developer Tools 01019-532-2002102-70681
Microsoft Visual Basic 2010 01019-532-2002102-70681
Microsoft Visual C# 2010 01019-532-2002102-70681
Microsoft Visual C++ 2010 01019-532-2002102-70681
Microsoft Visual F# 2010 01019-532-2002102-70681
Microsoft Visual Studio 2010 Architecture and Modeling Tools 01019-532-2002102-70681
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.
Microsoft Visual Studio 2010 Code Analysis Spell Checker 01019-532-2002102-70681
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Microsoft Visual Studio 2010 Team Explorer 01019-532-2002102-70681
Microsoft Visual Web Developer 2010 01019-532-2002102-70681
Crystal Reports Templates for Microsoft Visual Studio 2010
GhostDoc 2.5.9166.0
Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB976272) KB976272 (Installed Silvelight 4 Tools, Jetbrains has always been broken though)
Microsoft StyleCop 4.3
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319
Thanks for your response,
Francisco
Yes, I have these entries:
F:\ReSharper 5\Bin\
F:\ReSharper 5\Bin\
F:\ReSharper 5\Bin\JetBrains.Platform.ReSharper.VsIntegration.DevTen.dll
F:\ReSharper 5\Bin\JetBrains.ReSharper.VS.DevTen.dll
In addition, I have one error:
And one warning:
I also get the following messages:
F:\Visual Studio 2010\\Common7\IDE\Extensions;F:\Visual Studio 2010\\Common7\IDE\CommonExtensions;F:\Visual Studio 2010\\Common7\IDE\devenv.admin.pkgdef
F:\Visual Studio 2010\\Common7\IDE\devenv.admin.pkgdef
The doublebackslash seems strange to me.
I tried starting VS as Admin - same errors.
I also get "Error checking App Path", but only if I don't start VS in admin mode. The CTM file warning I got a few times, but I can't remember if it went away in my case if I was in admin mode. When I deleted that file manually it allows VS to recreate it without a problem and the warning goes away for a while. The "devenv.admin.pkgdef" message I have read somewhere that it's normal since that file is not supposed to be there for most users. And regarding the double slash, I thought it was weird and took them out one time, but that didn't help either.
You could try to delete that CTM file to see if that helps you since your package is actually loading, whereas mine doesn't even try to load.
-Francisco
Hello,
This means that the package has been loaded OK, in which case it should be
visible under Help/About. Is it?
ReSharper could appear missing if it has been suspended, check under Tools/Options/ReSharper/General.
Could you please try tracking this down by running the ProcMon tool, filtering
for any failures? Would be nice to know the path/regkey attempt that was
denied access.
I do not know what the CTM file is about. Probably running Visual Studio
elevated could remove this warning.
These paths are defined in devenv.pkgdef as $macro$\subpath, which will yield
double backslashes in case the macro value ends in a backslash. Usually,
shouldn't be a problem. A missing devenv.admin.pkgdef is OK too.
The CTM warning as well?..
No ideas so far :( Possible things to check are the ReSharper Resume command
and ProcMon for E_ACCESSDENIED.
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
Hello,
"0C6E6407-13FC-4878-869A-C8B4016C57FE" stands for "JetBrains ReSharper Package",
so any entries mentioning this GUID are also related to JetBrains. Are there
any?
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
I do not see anything other than the lines from my other post even remotely related to JetBrains or ReSharper. Using ProcMon I was able to find that the Access Denied error was due to lack of permissions when accessing the VisualStudio\10.0 registry key while in user mode. The CTM file warning is due to lack of permissions for users in the "C:\ProgramData\Microsoft\VisualStudio\10.0\1033" folder. Neither of these errors should have any effect on the package issue, however.
I looked through the ProcMon for things that failed when loading "0C6E6407-13FC-4878-869A-C8B4016C57FE", "ReSharper", or "JetBrains", but was unable to come up with any logical cause for the failure.
After changing the permissions above as well as the ReSharper folder I ran /setup and /ResetSkipPkgs, but it still didn't work. At this point I'm not what the cause could be, but it probably has to do with the way the package is installed or called since it affects both of your programs that I attempted to install. I will try another Repair installation of Visual Studio and then a reinstall of ReSharper. Maybe it will be different now with the permissions changed.
YES!! I don't know whether changing those permisions is what did the trick, but I did a repair installation of Visual Studio 2010 and then a repair installation of ReSharper and it works now. This is the first time that the License screen has come up for me.
Just to reiterate, this is what I did prior to the repair installation (My OS is Win 7):
After doing that I then proceeded to do a repair installation of VS2010 and then a repair installation of ReSharper 5.0.1659.36.
I then opened Visual Studio and the License prompt finally came up. After finishing the initial setup everything seems to be working as expected.
Thanks for your help. I hope this experience helps someone else,
-Francisco
> This means that the package has been loaded OK, in which case it should be visible under Help/About. Is it?
No, it isn't.
> The CTM warning as well?
Yes.
However, there is no such file. If I create one (with no content) and then start VS it is deleted but not created again.
> ReSharper could appear missing if it has been suspended, check under Tools/Options/ReSharper/General.
There is no entry "ReSharper" under Tools-options.
> Could you please try tracking this down by running the ProcMon tool, filtering for any failures?
I get an "INVALID DEVICE REQUEST" during a "FileSystemControl" for "F:\ReSharper 5\Bin" (ReSharper is installed in F:\ReSharper 5") with "Control: FSCTL_LMR_QUERY_DEBUG_INFO".
Same error for "C:\Users", "C:\Users\[Username]", "C:\Users\[Username]\AppData" and "C:\Users\[Username]\AppData\Local".
And some "PATCH NOT FOUND" / "NAME NOT FOUND" for files like "F:\Visual Studio 2010\Common7\IDEJetBarins.ReSharper.VS.dll".
I attached the log with a filter for "devenv.exe" and everything but "SUCESS".
At the weekend I will try a second repair installation like Francisco Amador suggested.
EDIT: Added registry events, too.
Attachment(s):
Logfile.zip
Hello,
Hmm, at a glance I can see that you have ReSharper installed into a nonstandard
location — that is, onto another drive. I think this scenario has been checked
by QA, anyway I've just tried it myself and it worked OK. The other thing
is that Visual Studio is also installed into a nonstandard location, which
we haven't tested I'm sure. Just because it didn't seem to have any effect
on us, that's why.
What seems to be really strange is that ReSharper seems to be loading its
plugins — trying for plugins in its own Bin folder, looking and loading some
plugin from the per-user folder. These activities would only happen if the
package is loaded and the product is not suspended. Puzzles me a bit. Are
you sure this dump is from an unsuccessful run that had no R# running? In
the successful dump entries, was there any evidence of R# loading its plugins?
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
Hello,
Was it HKLM or HKCU?
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
The registry key that possibly needs editing is under HKLM.
"HKLM\Software\Microsoft\VisualStudio\10.0" originally provides only Read access to the Users group. I simply gave the Users group Full Control as to have the same permissions as the Administrator group for that Key. The "Current User" has full control by default to the VisualStudio key under the KHCU section.
So far I have not had any issues anymore. I was even able to install dotTrace without a problem this time. The installer must have only had Users rights when attempting to write something to that portion of the registry. As a side note, I noticed that there are no entries for JetBrains products in the HKLM VisualStudio\10.0 key, but they do appear in the HKLM VisualStudio\9.0 key. So it must have been installed just for the current user for the new Visual Studio. Therefore I'm not even sure if changing those permissions really did anything, it could have been just the folder permissions that made the difference. Is this by design, or is it installing in the wrong registry section?
-Francisco
> Are you sure this dump is from an unsuccessful run that had no R# running?
Well - as said before: ReSharper is only loaded partially:
The "solution analysis indicator" (that either grey, red or green circle in the statusbar) for example is shown an double-cliking it brings up the "Solution-Wide Analysis" popup. The Analyzation is even done (the circle gets green).
However, both the "Errors in Solution", the "File Structure" and the "To-do Explorer" stay empty (only white content - no toolbars inside).
In addition the markers for quick fixes etc. are shown but allow no interaction - clicking on the red light bulb for example freezes VS for some time (full CPU load on one core) but shows no effect besides (no popup opens). The ReSharper menu item isn't visible either.
What works almost fine, is ReSharper's intellisense.
> In the successful dump entries, was there any evidence of R# loading its plugins?
ReSharper plugins are loaded, as e.g. spelling mistakes are detected by Agent Smith plugin.
Hello,
Yes, HKCU writes are allowed for Users by default, while HKLM writes are
not. Which should be pretty OK for Visual Studio running ReSharper, and it
has been tested for sure.
Even though the installer does not technically need Administrator rights
(Power User is quite enough, or even a User with a few filesystem/Registry
ACL hacks), we'd require Elevation for now so that under WinNT 6.x the user
were prompted for elevation thru UAC. This is also denoted by a shield icon
on the key installer buttons (Install button, for instance). Have you seen
the elevation UAC prompt while installing dotTrace?
Also, the above means that the installer is still per-machine not per-user.
The main reason for that is that we have to modify some of the files under
the Visual Studio directory. Would be silly to request Administrator rights
while installing per-user anyway.
In VS8-9, many things are installed into Visual Studio Registry Hive under
HKLM. In VS10, we use MEF instead of Registry for writing editor integration
information (eg fonts'n'colors), but the rest still goes to the Registry.
However, in VS10 it is possible to use PkgDef files to virtually merge custom
data into VS HKLM hive without touching the actual Registry, and that's what
we would do (per-machine, anyway, as our PkgDef is planted into a per-machine
VS location). The old Registry way is still possible, but we opted for the
PkgDef thing to support VS experimental hives as, starting with VS10, full-blown
VS experimental hives are supported no more, and HKLM is the same for all
the hives.
This is why you see no writes into Visual Studio 10 HKLM (and HKCU is not
an option because of a per-machine install).
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
Hello,
Ah, sorry, mixed up the cases a bit.
From what I see it appears that the package and MEF are loaded, at least
partially, but then something gets broken inside ReSharper. Looking at the
exceptions could be of great help.
Now the options are:
• Download a dev build, which has additional checks and diagnostics, run
it, and submit the possble exceptions to the tracker (either submit under
a tracker account, or give me the IDs of the issues submitted). A dev build
has an odd revision number (in Major.Minor.Build.Revision), while production
builds have even revision numbers. There's a dev build corresponding to the
the RTM you have installed, but I do not know the download URL right now.
The most recent nightly on the Nightly Builds page ( http://confluence.jetbrains.net/display/ReSharper/ReSharper5.0Nightly+Builds
) will suffice.
- or -
• Turn on logging with the /ReSharper.LogFile Visual Studio command line
key (an optional parameter is the log file name, otherwise it goes to %TEMP%\JetLogs
under a unique name). There will be exceptions listed in the file. Should
you see any, post the file here as a ZIP attachment.
Hope we'll then be able to finally make it run :)
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
> Turn on logging with the /ReSharper.LogFile Visual Studio command line
There are indeed some exceptions. See the attachment.
I will try the nightly build at the weekend.
Attachment(s):
Log.zip
your link to the nightly seems to be broken
edit:
got it http://confluence.jetbrains.net/display/ReSharper/ReSharper+5.0+Nightly+Builds
Hello,
Thanks for the logs.
First of all, it really seems that the commands&menus of R# failed to integrate
into Visual Studio (same probably applies to Help/About, Tools/Options, etc).
The reason for that is unclear. Usually either the whole package is present
or it is missing altogether. Here we see that the package has been loaded
and activated, but its menus were not merged. The merge of menus happens
when "devenv /setup" is run (in VS10 case -- probably, on the first load
after installing any extension), so it could not be affected by any runtime
failures of the product. Most of the exceptions are related to the absence
of menus.
As for the Extension Manager, R# is an admin extension and is not listed
there.
All of the meaningful exceptions are on part of the CodeGears plugin for
ReSharper, which appears to be not compatible with the version of ReSharper
you are running. The plugin is calling the API that's not there anymore.
Alt+Enter problems could possibly be attributed to the same source (a 100%
cpu load usually means that exceptions are thrown, caught and processed in
multitude). Please check if it helps to remove all of the R# plugins.
Running
devenv /Setup
devenv /ResetSkipPkgs
could also be useful.
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
Hello,
That's how the message gets formatted on the Web %-/
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
> Please check if it helps to remove all of the R# plugins.
I just removed all plugins. ReSharper is still not working.
"devenv /Setup" and "devenv /ResetSkipPkgs" do not show any result, either.
//EDIT:
I just tried one more repair installation - the keyboard-scheme is applied but with the following error: