Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

VS2017, ncrunch 3.1 error
EricZimmerman
#1 Posted : Tuesday, December 6, 2016 4:41:44 PM(UTC)
Rank: Member

Groups: Registered
Joined: 12/6/2016(UTC)
Posts: 10
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
System.IO.IOException: The process cannot access the file 'C:\Users\eric\AppData\Local\NCrunch\MSBuildConfigVS2017.config' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at nCrunch.Common.IO.FilePath..()
at nCrunch.Compiler.GeneratedConfigFileResolver..ctor(String configFileContent, VisualStudioVersion vsVersion)

any suggestions?

this is a new install of 3.1 in the latest VS2017 RC
EricZimmerman
#2 Posted : Tuesday, December 6, 2016 6:21:40 PM(UTC)
Rank: Member

Groups: Registered
Joined: 12/6/2016(UTC)
Posts: 10
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
when i load the same project in VS 2015 (with 3.1 as well), everything works as expected
Remco
#3 Posted : Tuesday, December 6, 2016 10:24:00 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue.

There is a fix for this problem coming in v3.2 out later this week.

It should be possible to alleviate the problem by avoiding use of more than one instance of VS2017 at any one time.
EricZimmerman
#4 Posted : Tuesday, December 6, 2016 11:17:06 PM(UTC)
Rank: Member

Groups: Registered
Joined: 12/6/2016(UTC)
Posts: 10
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
I did have 2 open at the time. thanks! will watch for 3.2
1 user thanked EricZimmerman for this useful post.
Remco on 12/6/2016(UTC)
philliphaydon
#5 Posted : Wednesday, December 7, 2016 4:46:38 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2016(UTC)
Posts: 3
Location: Singapore

Thanks: 1 times
I donno if this is related but I have a single instance of VS 2015 open and i get:

The setting '' was not loaded from the NCrunch configuration file at 'C:\Users\phill\AppData\Roaming\NCrunch\globalconfig.crunch.v3.xml' because this setting has been declared in a scope where it is not applicable. Due to limitations in the engine, not all settings can be applied at all levels in the configuration system. If you are attempting to define this setting manually in XML, please inspect the configuration UI to see where it can be applied.

Its a clean install
Remco
#6 Posted : Wednesday, December 7, 2016 6:32:20 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Phillip,

This looks to be an unrelated problem. NCrunch tried to load a setting from its global configuration file that it didn't recognise, and dropped the value. This is a non-critical error. It's strange that it hasn't reported the name of the setting.

Have you seen this error more than once?
philliphaydon
#7 Posted : Wednesday, December 7, 2016 7:05:58 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2016(UTC)
Posts: 3
Location: Singapore

Thanks: 1 times
I think when I uninstalled V2, it left "globalconfig.crunch.xml", so what i did was close VS, removed globalconfig.crunch.xml and globalconfig.crunch.v3.xml, then restarted VS, it did the setup again and this time I'm not getting the error.

So it may just be a conflict between the two. Do you want me to email you the two global files so you can check them to see if there's a patch that's require incase others fall into the same issue?
Remco
#8 Posted : Wednesday, December 7, 2016 7:31:09 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
philliphaydon;9495 wrote:

So it may just be a conflict between the two. Do you want me to email you the two global files so you can check them to see if there's a patch that's require incase others fall into the same issue?


Absolutely. If you still have the files, I'd very much like to take a look. You can submit them through the contact form - https://www.ncrunch.net/support/contact.
Remco
#9 Posted : Thursday, December 8, 2016 5:03:53 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 960 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks for sending through these files. With them, I've managed to reproduce this problem. A fix is pending in the v3.2 release due later this week.

For reasons I can't really explain (but probably have much to do with the faulty wiring in my head), when NCrunch ported settings over from the old v2 config files, it erroneously transferred the global HiddenWarnings from the Tests Window into the 'HiddenComponentWarnings' setting in the new global config. Because 'HiddenComponentWarnings' is only applicable in project settings files, this caused the engine to later kick up an error letting you know something wasn't right.

The global hidden warnings were also being transferred into the settings file into a correct setting, however, so everything would have continued to function as normal. The error is just noise.
1 user thanked Remco for this useful post.
philliphaydon on 12/8/2016(UTC)
philliphaydon
#10 Posted : Thursday, December 8, 2016 6:04:15 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/7/2016(UTC)
Posts: 3
Location: Singapore

Thanks: 1 times
Awesome stuff.

Thanks <3
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.054 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download