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

Notification

Icon
Error

There are projects in this solution that have not been reported as loaded by the IDE during NCrunch
johnn
#1 Posted : Thursday, September 26, 2019 10:42:51 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/26/2019(UTC)
Posts: 4
Location: Sweden

Setting up a new computer I've been unable to run any tests since things won't build

Quote:
There are projects in this solution that have not been reported as loaded by the IDE during NCrunch initialisation. It is possible that these projects are of an unusual type and NCrunch has been unable to correctly detect them, or they may be 'unloaded' in Visual Studio.

If these projects are not required for your NCrunch session, it is recommended that you ignore them using the NCrunch 'Ignore this component completely' configuration setting.

The following projects exist in this solution but could not be resolved by NCrunch during initialisation:


This is in Visual Studio Enterprise 2019 16.2.5
NCrunch 3.31.0.3

A colleague also recently got a new system, which basically the same setup, and does not have this problem.

Would appreciate some hints as how to debug it
Remco
#2 Posted : Thursday, September 26, 2019 11:38:10 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this issue.

My first guess would be that you have projects in this solution that need something to be installed on your machine, which isn't there right now. This message is basically a catch-all for a situation where NCrunch sees that projects are inside the VS solution file, but VS isn't reporting them.

What kind of projects are listed? Do you get the same result if you create a new solution with these kind of projects included in it? Do the project types appear in the list of available projects for creation?
johnn
#3 Posted : Friday, September 27, 2019 11:22:51 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/26/2019(UTC)
Posts: 4
Location: Sweden

Everything builds ok from VS, and tests are working in the Resharper test-runner. So I don't see any obvious dependency missing.

It's mostly typical csharp projects, about 50 of them, one or two service fabric projects, that has been configured to be ignored by ncrunch.

I have another solution sharing some, but not all, of the projects. Same issue in both.

An interesting thing is that there is only a single project listed as not resolved, and according to the visual studio build order it's the first project to build in both solutions.

Creating a new sln, with only this project
I.e.
Code:
 dotnet new sln
 dotnet sln add ..\the project\


Exhibits the same issue.

But I did notice another thing checking the processing queue, I also got this error
Quote:
[13:11:42.855-LocalBuildTask-69] ERROR (Internal): System.Exception: Code file C:\somefile.cs has no content to compile
at nCrunch.Core.BuildManagement.BuildEnvironment.()
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridAddress clientAddress)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.LocalProcessingTask.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.ProcessingQueue..()


The file in question seem to cause some utf-8 vs. iso-8859-1, confusion having an invalid utf-8 character in a comment. Looks like it could be a bit a work to get that sorted though, will get back to you after fixing this.

johnn
#4 Posted : Friday, September 27, 2019 3:20:32 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/26/2019(UTC)
Posts: 4
Location: Sweden

Yes, after removing the offending ISO-8859-1 characters ncrunch is happily building again
Remco
#5 Posted : Friday, September 27, 2019 11:54:01 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
johnn;13910 wrote:
Yes, after removing the offending ISO-8859-1 characters ncrunch is happily building again


Nice work in figuring this out. It's interesting that this showed up on your machine but not on other ones.

Is there any chance I could get a copy of the problematic file so that I can introduce a fix for this? Note that any file that reproduces the issue is fine (if you want to build a new one or strip it down for IP reasons). You can submit it via the NCrunch contact form.
johnn
#6 Posted : Saturday, September 28, 2019 11:20:30 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/26/2019(UTC)
Posts: 4
Location: Sweden

Sent you a zip.

For reference, the file looked like this
Code:

// Invalid UTF-8: �
using System;

namespace NCrunchRepro
{
    public class Class1
    {
    }
}


The invalid character there is just é in ISO-8859-1

The reason I was the only one seeing it is probably related to how I installed and configured git, and the order in which I did that relative to cloning the repository.
Remco
#7 Posted : Saturday, September 28, 2019 10:31:13 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
johnn;13913 wrote:
Sent you a zip.


Fantastic, thank you! Hopefully we can fix this in such a way that no one else needs to experience this problem (even if the file isn't right).
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.046 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download