jtilander / niftyplugins

Visual Studio productivity plugins
MIT License
40 stars 24 forks source link

NiftyPerforce exception on load #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install NiftyP4
2. Start Visual Studio 2010
3. Change any setting in NiftyP4 so that it writes out NiftyPerforce.xml
4. Notice that NiftyPerforce.xml is 0 bytes
5. Close VS
6. Open VS
7. Observe the attached error dialog

What is the expected output? What do you see instead?
The plugin doesn't throw an exception.

What version of the product are you using? On what operating system?
1.3.7
1.4.0
Windows 7

Please provide any additional information below.
I've tried copying another users version of NiftyPerforce.xml, but Nifty will 
crash regardless of the contents of the file.  It just has to be present.  It 
seems to work fine as long as I don't change any settings.

Original issue reported on code.google.com by bigsandw...@gmail.com on 14 Mar 2013 at 4:08

Attachments:

GoogleCodeExporter commented 9 years ago
Something else I noticed. It seems like Nifty is trying to load the XML file, 
failing, and then writing out an empty file.  It stomps the config file if I 
edit it manually and then try to load it by opening the config dialog.

Original comment by bigsandw...@gmail.com on 14 Mar 2013 at 4:28

GoogleCodeExporter commented 9 years ago
More info: this seems to have something to do with permissions.  I don't have 
this problem when running as VS as an administrator.

Original comment by bigsandw...@gmail.com on 14 Mar 2013 at 4:35

GoogleCodeExporter commented 9 years ago
Even more info: Disabling UAC seems to fix the problem.

Original comment by bigsandw...@gmail.com on 14 Mar 2013 at 7:36

jtilander commented 9 years ago

I'm going to close this as not valid anymore? I think you run into all sorts of problems if you run Visual Studio as a non administrator. Let me know if this still is an issue though.