question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] csx files containing more than one #load command are ignored, and have no intellisense

See original GitHub issue

example: 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:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gaborvcommented, Jun 2, 2016

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.

0reactions
filipwcommented, Nov 16, 2016

Fixed by #578

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellisense is gone (again) · Issue #6024 · dotnet/vscode- ...
I don't see anything terribly relevant like I normally would in the logs when autoupdate breaks something (like roslyn load error, omnisharp ...
Read more >
Intellisense for csx in VisualStudio 2015
I am new in programming cs scripts (csx files). But I have the problem that I do not have any intellisense. How can...
Read more >
[Solved] Problems with OmniSharp and Visual Studio Code
After the update, OmniSharp fails to validate the Unity project files and the editor refuses to initialize IntelliSense. Is this a bug or...
Read more >
Setting up VSCode to use with the dbt CLI - Show and Tell
The goal of this section is to ensure that the right version of Python and dbt are always available right away when you...
Read more >
dotnet-script
Run C# scripts from the .NET CLI, define NuGet packages inline and edit/debug them in VS Code - all of that with full...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found