tmauldin / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

R# 5.1 Test runner on Gallio 3.3 not working with VS 2010 on Win7 x64 #859

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install Gallio 3.2 x64 
2.Update to Gallio 3.3 x64
3.Go to Resharper -> Options -> Unit Testing

What is the expected output? What do you see instead?
Expected to see Gallio listed as a test runner but see only nUnit and MSTest.

What version of the product are you using? On what operating system?
Gallio 3.3 build 442 x64
Windows 7 x64
ReSharper 5.1

Please provide any additional information below.

I have uninstalled both Gallio and Resharper and it hasn't made a difference.  
When I reinstalled Gallio the ReSharper files were list by the setup as taking 
up 0kb of space on my machine.  There is no Plugins folder in the ReSharper 
program folder like there is on the other machines.  I tried copying in the 
folder from the other machines but this didn't work either.

Original issue reported on code.google.com by R.P.Make...@gmail.com on 5 Oct 2011 at 3:30

GoogleCodeExporter commented 9 years ago
What's the path to the R# install?

What's the difference between the machines that work and don't? e.g. Win7 vs 
XP, x86 vs x64.

Original comment by grahamr...@gmail.com on 5 Oct 2011 at 3:42

GoogleCodeExporter commented 9 years ago
The path to the R# install is C:\Program Files 
(x86)\JetBrains\ReSharper\v5.1\Bin.  The machines that are working are all 
running ReSharper 5.1, Gallio 3.3 and Windows 7 x64.  I think my machine may be 
the only machine that had Gallio 3.2 installed on it but I don't think is 
significant as I don't remember any problems with the update.

Original comment by R.P.Make...@gmail.com on 5 Oct 2011 at 4:05

GoogleCodeExporter commented 9 years ago
Hmm. Could you please uninstall and then reinstall with verbose logging (and 
attach the log here)? 

msiexec /i GallioBundle-3.3.449.0-Setup-x64.msi /l*v .\install.log

Original comment by grahamr...@gmail.com on 5 Oct 2011 at 4:11

GoogleCodeExporter commented 9 years ago
Here is the log file.  I couldn't find the 449 build on the Gallio website so I 
used the the 442 build.  If you need me to use build 449 can you tell me where 
I could find it? 

Original comment by R.P.Make...@gmail.com on 5 Oct 2011 at 4:24

Attachments:

GoogleCodeExporter commented 9 years ago
The nightlies are here: http://ccnet.gallio.org/Distributables/

Sorry, I just made up a command line :)

Thanks, I'll have a look

Original comment by grahamr...@gmail.com on 5 Oct 2011 at 4:29

GoogleCodeExporter commented 9 years ago
It seems to have gone a bit mad, and tried to install the plugin to 
C:\ReSharper_V51_VS100\Plugins\Gallio\. Does that folder exist?

Do you have a reg key: HKLM\Software\JetBrains\ReSharper\v5.1\vs10.0\InstallDir 
(or HKCU)

I assume you're using VS2010?

Original comment by grahamr...@gmail.com on 5 Oct 2011 at 4:44

GoogleCodeExporter commented 9 years ago
Also, if that key exists, is it in the 64 bit hive?

Original comment by grahamr...@gmail.com on 5 Oct 2011 at 4:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
No problem, I'm on BST too :)

It might fix it, but you might find something else required is missing too. If 
it's not too much bother, I'd recommend re-installing R# first. And then 
checking if the reg key gets added.

Original comment by grahamr...@gmail.com on 6 Oct 2011 at 8:39

GoogleCodeExporter commented 9 years ago
Sorry for the delayed reply I work in the UK and had to leave the office.  The 
key doesn't exist in HKLM and 
HKEY_CURRENT_USER\Software\JetBrains\ReSharper\v5.1\vs10.0 exists in HKCU does 
exist but there is no InstallDir key. I am using VS2010

Edit: Was going to delete this comment since I'd already tried setting the key 
which didn't have any effect but since you replied to it I'll put it back in 
again so that context isn't lost.

Original comment by R.P.Make...@gmail.com on 6 Oct 2011 at 8:48

GoogleCodeExporter commented 9 years ago
Re-installed R# but it hasn't added the install dir key = /.

Original comment by R.P.Make...@gmail.com on 6 Oct 2011 at 8:58

GoogleCodeExporter commented 9 years ago
Is there anything under the WOW6432node?

Original comment by grahamr...@gmail.com on 6 Oct 2011 at 9:12

GoogleCodeExporter commented 9 years ago
Yes, sorry this 64 bit registry stuff is a bit new to me.

There is a 
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JetBrains\ReSharper\v5.1\vs10.0\Installe
rDir set to C:\Program Files (x86)\JetBrains\ReSharper\v5.1\\Bin

The double backslash is not a typo by the way it is that way in the registry.

Original comment by R.P.Make...@gmail.com on 6 Oct 2011 at 9:21

GoogleCodeExporter commented 9 years ago
Btw, as long as you've got Gallio installed, you can xcopy the R# plugin. 

Just download the zip edition of whatever version of Gallio you're using, and 
copy Gallio.ReSharperRunnerXX.dll to either <R#InstallDir>\Bin\Plugins or 
%appdata%\JetBrains\ReSharper\vX.0\vs10.0\Plugins.

Original comment by grahamr...@gmail.com on 6 Oct 2011 at 9:24

GoogleCodeExporter commented 9 years ago
Interesting, when I xcopied the plugin and started visual studio 2010 I got an 
error message that said

The plugin Gallio.ReSharperRunner51 could not be loaded from "C:\Program Files 
(x86)\JetBrains\ReSharper\v5.1\Bin\Plugins\Gallio.ReSharperRunner51.dll".

Could not load file or assembly 'file:///C:\Program Files 
(x86)\JetBrains\ReSharper\v5.1\Bin\Plugins\Gallio.ReSharperRunner51.dll' or one 
of its dependencies.  Operation is not supported (Exception from HRESULT: 
0x80131515) An attempt was to made to load an assembly from a network location 
which would have caused the assembly to be sandboxed in previous versions of 
the .NET framework.  This release of the .NET framework does not enable CAS 
policy by default, so this load may be dangerous.  If this load is not intended 
to sandbox the assembly, please enable the loadFromRemoteSources switch.  See 
http://go.microsoft.com/fwlink/?LinkId=155569 from more information.

Not sure what to make of this, will try and find out what causes the message.

Original comment by R.P.Make...@gmail.com on 6 Oct 2011 at 9:44

GoogleCodeExporter commented 9 years ago
A quick search has revealed this might be caused by the fact the plugin was 
copied from a network location. 
(http://blogs.msdn.com/b/drew/archive/2009/12/24/xunit-and-td-net-fixing-the-att
empt-was-made-to-load-an-assembly-from-a-network-location-problem.aspx) I am 
trying to find out how to turn the security off on these files and hopefully 
that will solve the problem.

Original comment by R.P.Make...@gmail.com on 6 Oct 2011 at 9:48

GoogleCodeExporter commented 9 years ago
Right finally got it all working again.  I couldn't un-set the 'Unblock' option 
from the file properties so I tried extracting the zip file and copying it from 
there rather than copying it straight out of the zip file directly.  This seems 
to have solved the problem and the ReSharper test runner plugin is working 
again.

Thank you very much for your assitance : ).

Original comment by R.P.Make...@gmail.com on 6 Oct 2011 at 9:55

GoogleCodeExporter commented 9 years ago
Cool. I'll see if I can make the installer fall back to the 32 bit compat 
registry if the install dir isn't set.

We support R# 6 now too btw :)

Original comment by grahamr...@gmail.com on 6 Oct 2011 at 10:06