[bug] csx files containing more than one #load command are ignored, and have no intellisense
See original GitHub issueexample: create a main.csx with these contents:
#load Teacher.csx
#load Student.csx
Console.WriteLine("hello");
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] No solution files found in ‘c:\FTP Samples\New folder’ [INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in ‘c:\FTP Samples\New folder’. [INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Found 3 CSX files. [ERROR:OmniSharp.ScriptCs.ScriptCsProjectSystem] c:\FTP Samples\New folder\main.csx will be ignored due to the following error: System.InvalidOperationException: This submission already references another submission project. at Microsoft.CodeAnalysis.Solution.CheckNotSecondSubmissionReference(ProjectId projectId, ProjectId toProjectId) at Microsoft.CodeAnalysis.Solution.AddProjectReference(ProjectId projectId, ProjectReference projectReference) at Microsoft.CodeAnalysis.Workspace.OnProjectReferenceAdded(ProjectId projectId, ProjectReference projectReference) at OmniSharp.ScriptCs.ScriptCsProjectSystem.Initalize(IConfiguration configuration) [INFORMATION:OmniSharp.Startup] Solution has finished loading
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Looking into the code of ScriptCs ProjectSystem, the problem here seems a little bit bigger: the current csx support seems to be pretty basic. I am trying to extend it to consider all .csx files in all folders and properly go through the whole hierarchy of #load references.
Will post here if I can get a properly working build together.
Fixed by #578