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

Notification

Icon
Error

NCrunchCacheStoragePath error
Stipe
#1 Posted : Tuesday, July 10, 2018 9:50:02 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/10/2018(UTC)
Posts: 3

NCrunch Console Tool starting from the version v3.17.0.2 gives me this error:

ERROR: The NCrunchCacheStoragePath must be set when using the console tool. NCrunch needs to store its cache outside of the solution directory to function properly.

which results in
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path ...\TestResultsInNUnitFormat.xml.

Any hints?

Thanks,
Stipe
michaelkroes
#2 Posted : Tuesday, July 10, 2018 9:53:23 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 33
Location: Netherlands

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Since version 3.15 the NCrunchCacheStoragePath option needs to be set. You can do this from the CLI parameters or in the referenced configuration. This
option always should be set when using the console tool under a CI system for the console tool to function
properly between different runs.
Stipe
#3 Posted : Tuesday, July 10, 2018 9:57:22 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/10/2018(UTC)
Posts: 3

I have this option set in the ncrunch solution configuration. Is there any other way I need to set this? What changed in 3.15 because before we didn't have the issue?
michaelkroes
#4 Posted : Tuesday, July 10, 2018 10:01:58 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 33
Location: Netherlands

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Thanks for coming back so quickly. Would you mind trying to set the configuration from the CLI or the configuration file that is supplied to the console tool? I would like to make sure that that solves the problem.

In version 3.15 we added a check at the start of the console tool that checks if this option is set, we did this because not setting this could give a lot of unintended side effects (like broken impact detection).
michaelkroes
#5 Posted : Tuesday, July 10, 2018 11:15:01 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 33
Location: Netherlands

Thanks: 14 times
Was thanked: 3 time(s) in 3 post(s)
Hi,

We had a closer look at this. We've found an issue with this and we will fix this. As a work around specifying the setting via the command line should work.

Thanks for bringing this to our attention!
Stipe
#6 Posted : Tuesday, July 10, 2018 11:16:15 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/10/2018(UTC)
Posts: 3

Ok, thank you for the quick response.
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.028 seconds.