Skip to content

Analysis failure upon startup #141

@Rekkonnect

Description

@Rekkonnect

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

[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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions