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

Notification

Icon
Error

Removed project in Rider still shows in test window
Peter Osterdahl
#1 Posted : Thursday, February 5, 2026 2:41:01 PM(UTC)
Rank: Member

Groups: Registered
Joined: 1/13/2025(UTC)
Posts: 25
Location: Sweden

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
I updated my solution and somebody had removed a project.
The project builds fine in Rider but fails in the test window.
I've tried to
  • press the Reset button in the test window
  • disable/enable ncrunch from the menu
  • restart Rider


It seemes the cache isn't cleared properly.

Cheers
Peter
Remco
#2 Posted : Thursday, February 5, 2026 11:01:32 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 1020 times
Was thanked: 1369 time(s) in 1270 post(s)
Hi Peter,

Did clearing the cache resolve the issue?
Peter Osterdahl
#3 Posted : Friday, February 6, 2026 7:52:37 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/13/2025(UTC)
Posts: 25
Location: Sweden

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Is there anyway to clear the cache programmatically or do I have to erase it from disk?
Peter Osterdahl
#4 Posted : Friday, February 6, 2026 9:02:11 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/13/2025(UTC)
Posts: 25
Location: Sweden

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
disabled ncrunch - > Removed Fuse.crunchsolution.cache -> Enabled -> Didn't solve the issue.
disabled ncrunch - > Removed Fuse.executiontimes.cache -> Enabled -> Didn't solve the issue.
disabled ncrunch - > Removed everything in Workspace base path -> Enabled -> Solved the issue.
Remco
#5 Posted : Saturday, February 7, 2026 12:38:24 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 1020 times
Was thanked: 1369 time(s) in 1270 post(s)
Resetting the engine causes the workspaces to be purged, with new ones created as the projects start getting built. So I don't think it was removing the workspaces that actually solved this.

I think this might actually be something in the source code itself that eventually reset itself, perhaps one of the MSBuild dependency cache files. If you see this again, I'd be interested in knowing whether doing an MSBuild clean then a reset of NCrunch makes it go away.
Peter Osterdahl
#6 Posted : Saturday, February 7, 2026 10:11:14 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/13/2025(UTC)
Posts: 25
Location: Sweden

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
I’ll try that when it happens.
1 user thanked Peter Osterdahl for this useful post.
Remco on 2/8/2026(UTC)
Peter Osterdahl
#7 Posted : Monday, February 9, 2026 8:52:47 AM(UTC)
Rank: Member

Groups: Registered
Joined: 1/13/2025(UTC)
Posts: 25
Location: Sweden

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Ok so I did this.
In Rider, created a solution with 2 test projects
Ran the tests. all ok
Renamed project 2 to project 3 . This made project 3 appear in the test window but project 2 still show with the error:

System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\missingProject\project2'.
at System.Environment.set_CurrentDirectoryCore(String value)
at nCrunch.Compiler.ComponentAnalysisContext.prepareAnalysisContext()
at nCrunch.Compiler.ComponentAnalysisContext..ctor(ComponentLoadParameters loadParameters, IBuildableProject buildableProject, DirectoryPath baseIntermediateOutputPath, DirectoryPath msBuildDirectory)
at nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(ComponentLoadParameters parameters)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.processCallMethodMessage(CallMethodMessage callMethodMessage)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data)
at nCrunch.TaskRunner.Ipc.RemoteProxyCommunicator.readMessage(Byte[] returnedData)
at nCrunch.TaskRunner.Ipc.RemoteProxyCommunicator.Invoke(String methodName, Object[] args)
at nCrunch.Compiler.RemoteBuildRunnerProxy.AnalyseComponentBuild(ComponentLoadParameters parameters)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.<>c__DisplayClass4_0.<AnalyseComponentBuildInExternalProcess>b__0(IRemoteBuildRunner remoteBuildRunner)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.executeTaskUsingExternalProcess(Action`1 task, EffectiveProcessorArchitecture processorArchitecture, GridClientId client, BuildSystemParameters buildSystemParameters, IList`1 customEnvironmentVariables, Nullable`1 taskId, GridClientDescription clientDescription, DotNetCoreSdkVersion dotNetCoreSdkVersion)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(ComponentLoadParameters parameters, IList`1 customEnvironmentVariables)
at nCrunch.Client.ComponentLoader.SnapshotComponentLoader.analyseComponentBuild(EffectiveProcessorArchitecture buildProcessorArchitecture, String targetFrameworkForMSBuild)
at nCrunch.Client.ComponentLoader.SnapshotComponentLoader.CreateComponentFromXml(FilePath projectFilePath, ParsedBuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, IDEVersion ideVersion, BuildEngineId buildEngineId, ComponentUniqueName componentName, TaskSettings componentTaskSettings, Exception parseException, String targetFrameworkForMsbuild, String visibleTargetFramework)

From Rider I did a clean, this also rebuit the project.
I pressed the "restart ncrunch" button in test explorer, missing project still showing
Disabled and enabled ncrunch no effect
restart ncrunch no effect
restarted rider, project gone.

Hope this helps
Der-Albert.com
#8 Posted : Monday, February 9, 2026 4:27:42 PM(UTC)
Rank: Advanced Member

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

Thanks: 15 times
Was thanked: 58 time(s) in 54 post(s)
Can also confirm this, sometimes NCrunch messes up. Has not the current changes, or projects. Rebuild/Restart from NCrunch does not help; also, disabling and re-enabling NCrunch does not help.
Have to Close Rider and restart. Then it is fine.
Remco
#9 Posted : Monday, February 9, 2026 11:29:22 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 1020 times
Was thanked: 1369 time(s) in 1270 post(s)
Excellent, thanks! This is useful. I suspect there is something going on in our renaming tracking that causes misalignment. Because the project list is held inside the IDE and not in the engine, a reset of NCrunch won't solve it but a restart of the IDE will. I'll take a closer look and see what I can do.
1 user thanked Remco for this useful post.
Peter Osterdahl on 2/10/2026(UTC)
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