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

Notification

Icon
Error

netcoreapp 2.0 problems
mjnorman
#1 Posted : Tuesday, October 10, 2017 6:02:09 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/10/2017(UTC)
Posts: 2
Location: United States of America

Hello first time Ncrunch user here. I am attempting to use Ncrunch with VS2017 and windows 10. I am seeing this error when my test project is set to netcore 2.0.

An error occurred while analysing this project after it was built: NCrunch encountered an unexpected error occurred while building an environment to analyse an assembly: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(ProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.TestManagement.TestRunnerProcess..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.TestManagement.TestRunnerProcess.(Nullable`1 , FilePath , GridClientId , CustomEnvironmentVariable[] )
at nCrunch.Core.TestManagement.TestRunnerProcess..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.Processing.AnalysisTaskLogic.DoProcessTaskAndReturnSuccessFlag()


If I change the test project to instead target netcore 1.0 the problem goes away as far as Ncrunch is concerned, but the issue becomes referencing a 2.0 project from a 1.0 version. Any suggestions?
Remco
#2 Posted : Tuesday, October 10, 2017 10:40:12 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi, thanks for sharing this problem and for sending through your bug report.

This is happening because NCrunch's .NET Core process is failing to initialise. The process explodes before any of the error handling can be established, so we don't know why its failed.

Do you see this for all your .NET Core 2.0 test projects? What happens if you create a new one with a blank template?

Something to try is running dotnet.exe against the NCrunch task runner DLL as it exists in your NCrunch workspace. This might give a more informative error. Try the following:

1. Run NCrunch so that it fails/explodes
2. On the project involved, right click on this in the NCrunch Tests Window, go to Advanced->Browse to workspace
3. Find the bin\debug directory or the place where your assemblies have been output from the build system, open a command prompt there
4. run "C:\Program Files\dotnet\dotnet.exe" nCrunch.TaskRunner.DotNetCore.20.x64.dll
mjnorman
#3 Posted : Tuesday, October 10, 2017 10:42:32 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/10/2017(UTC)
Posts: 2
Location: United States of America

I'm not exactly sure why or how it got fixed, but when I changed the test project to netcoreapp1.0 then back to 2.0 and clean/rebuild, all is now working. I haven't seen the issue since!
Remco
#4 Posted : Tuesday, October 10, 2017 10:46:44 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
mjnorman;11352 wrote:
I'm not exactly sure why or how it got fixed, but when I changed the test project to netcoreapp1.0 then back to 2.0 and clean/rebuild, all is now working. I haven't seen the issue since!


Thanks for confirming it's solved. It may have been something internal in .NET Core itself, or perhaps a transient desync issue. If it does happen again, I'd be interested to know if the above steps give you any useful information.
Der-Albert.com
#5 Posted : Monday, December 11, 2017 10:35:05 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 209

Thanks: 11 times
Was thanked: 55 time(s) in 51 post(s)
Btw. NCrunch 3.12 survived the Upgrade to .NET Core SDK 2.1.2 ;) (and several previews of that)
Remco
#6 Posted : Monday, December 11, 2017 9:22:58 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Der-Albert.com;11627 wrote:
Btw. NCrunch 3.12 survived the Upgrade to .NET Core SDK 2.1.2 ;) (and several previews of that)


Good!!! Maybe we're getting more future proof here :)
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.044 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download