The failure occurs before getting even the starting source's analysis. It persists until changing the language or its version.
[2026-01-05] [22:49:32.412 +01:00] [ERR] Analysis failed
System.ArgumentException: SyntaxTree is not part of the compilation, so it cannot be removed (Parameter 'oldTree')
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.ReplaceSyntaxTree(SyntaxTree oldTree, SyntaxTree newTree)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CommonReplaceSyntaxTree(SyntaxTree oldTree, SyntaxTree newTree)
at Microsoft.CodeAnalysis.Compilation.ReplaceSyntaxTree(SyntaxTree oldTree, SyntaxTree newTree)
at Syndiesis.Core.BaseSingleTreeCompilationSource`2.AddOrReplaceSyntaxTree(TCompilation compilation, SyntaxTree previousTree, SyntaxTree newTree) in E:\repos\Syndiesis\Syndiesis\Core\BaseSingleTreeCompilationSource.cs:line 131
at Syndiesis.Core.BaseSingleTreeCompilationSource`2.SetSource(String source, CancellationToken cancellationToken) in E:\repos\Syndiesis\Syndiesis\Core\BaseSingleTreeCompilationSource.cs:line 118
at Syndiesis.Core.HybridSingleTreeCompilationSource.SetSourceAutomaticDetection(String source, CancellationToken cancellationToken) in E:\repos\Syndiesis\Syndiesis\Core\HybridSingleTreeCompilationSource.cs:line 95
at Syndiesis.Core.HybridSingleTreeCompilationSource.SetSource(String source, CancellationToken cancellationToken) in E:\repos\Syndiesis\Syndiesis\Core\HybridSingleTreeCompilationSource.cs:line 57
at Syndiesis.Core.BaseAnalysisExecution.Execute(String source, CancellationToken token) in E:\repos\Syndiesis\Syndiesis\Core\BaseAnalysisExecution.cs:line 33
at Syndiesis.Core.AnalysisPipelineHandler.PerformAnalysis() in E:\repos\Syndiesis\Syndiesis\Core\AnalysisPipelineHandler.cs:line 86
Summary
Analysis and all dependent features fail from the start of the program
Details
The failure occurs before getting even the starting source's analysis. It persists until changing the language or its version.
Logs