We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet --info output:
dotnet --info
.NET Core SDK (reflecting any global.json): Version: 2.1.300-preview2-008530 Commit: 822ae6d43a Runtime Environment: OS Name: Mac OS X OS Version: 10.13 OS Platform: Darwin RID: osx.10.13-x64 Base Path: /usr/local/share/dotnet/sdk/2.1.300-preview2-008530/ Host (useful for support): Version: 2.1.0-rc1 Commit: eb9bc92051 .NET Core SDKs installed: 2.1.4 [/usr/local/share/dotnet/sdk] 2.1.300-preview1-008174 [/usr/local/share/dotnet/sdk] 2.1.300-preview2-008530 [/usr/local/share/dotnet/sdk] 2.1.300-rc1-008673 [/usr/local/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.0-preview1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.0-preview2-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.0-rc1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.0-preview1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.0-preview2-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.0-rc1-final [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.0-preview1-26216-03 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.0-preview2-26406-04 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.0-rc1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App
VS Code version:
1.23.1 d0182c3417d225529c6d5ad24b7572815d0de9ac x64
C# Extension version:
ms-vscode.csharp-1.15.1
Create Hello.csx and put this content
Hello.csx
using System; Console.WriteLine("Hello, world!");
Auto completion working correctly
No auto completion, syntax checker also not working
Starting OmniSharp server at 5/12/2018, 4:37:26 PM Target: /Users/wk/Source/Hello OmniSharp server started Path: /Users/wk/.vscode/extensions/ms-vscode.csharp-1.15.1/.omnisharp/1.30.0/run PID: 2808 [info]: OmniSharp.Stdio.Host Starting OmniSharp on MacOS 10.13.3 (x64) [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator Located 1 MSBuild instance(s) 1: StandAlone 15.0 - "/Users/wk/.vscode/extensions/ms-vscode.csharp-1.15.1/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin" [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator MSBUILD_EXE_PATH environment variable set to '/Users/wk/.vscode/extensions/ms-vscode.csharp-1.15.1/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin/MSBuild.dll' [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator Registered MSBuild instance: StandAlone 15.0 - "/Users/wk/.vscode/extensions/ms-vscode.csharp-1.15.1/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin" MSBuildExtensionsPath = /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild BypassFrameworkInstallChecks = true CscToolPath = /Users/wk/.vscode/extensions/ms-vscode.csharp-1.15.1/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin/Roslyn CscToolExe = csc.exe MSBuildToolsPath = /Users/wk/.vscode/extensions/ms-vscode.csharp-1.15.1/.omnisharp/1.30.0/omnisharp/msbuild/15.0/Bin TargetFrameworkRootPath = /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild-frameworks [info]: OmniSharp.Cake.CakeProjectSystem Detecting Cake files in '/Users/wk/Source/Hello'. [info]: OmniSharp.Cake.CakeProjectSystem Could not find any Cake files [info]: OmniSharp.DotNet.DotNetProjectSystem Initializing in /Users/wk/Source/Hello [info]: OmniSharp.DotNet.DotNetProjectSystem Auto package restore: False [info]: OmniSharp.DotNet.DotNetProjectSystem Update workspace context [info]: OmniSharp.DotNet.DotNetProjectSystem Resolving projects references [info]: OmniSharp.MSBuild.ProjectSystem No solution files found in '/Users/wk/Source/Hello' [info]: OmniSharp.Script.ScriptProjectSystem Detecting CSX files in '/Users/wk/Source/Hello'. [info]: OmniSharp.Script.ScriptProjectSystem Found 1 CSX files. [info]: OmniSharp.Script.ScriptProjectSystem Searching for compilation dependencies with the fallback framework of 'net46'. [info]: OmniSharp.Script.ScriptProjectSystem Unable to find dependency context for CSX files. Will default to non-context usage (Desktop CLR scripts). [fail]: OmniSharp.Stdio.Host The project system 'OmniSharp.Script.ScriptProjectSystem' threw exception during initialization. System.InvalidOperationException: Cannot find reference assembly 'Microsoft.CodeAnalysis.CSharp.dll' file for package Microsoft.CodeAnalysis.CSharp.Reference at Microsoft.Extensions.DependencyModel.Resolution.ReferenceAssemblyPathResolver.TryResolveAssemblyPaths (Microsoft.Extensions.DependencyModel.CompilationLibrary library, System.Collections.Generic.List`1[T] assemblies) [0x00046] in <43391b1e7c3f430bb096ac6ec60bb276>:0 at Microsoft.Extensions.DependencyModel.Resolution.CompositeCompilationAssemblyResolver.TryResolveAssemblyPaths (Microsoft.Extensions.DependencyModel.CompilationLibrary library, System.Collections.Generic.List`1[T] assemblies) [0x0000f] in <43391b1e7c3f430bb096ac6ec60bb276>:0 at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths (Microsoft.Extensions.DependencyModel.Resolution.ICompilationAssemblyResolver resolver, System.Collections.Generic.List`1[T] assemblies) [0x00000] in <43391b1e7c3f430bb096ac6ec60bb276>:0 at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths () [0x0000c] in <43391b1e7c3f430bb096ac6ec60bb276>:0 at OmniSharp.Script.ScriptProjectSystem+<>c.<Initalize>b__22_3 (Microsoft.Extensions.DependencyModel.CompilationLibrary x) [0x00000] in <639a01402a864f1c988790c921d4193f>:0 at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00051] in <b29fa38c592649ee8d566c045a7d9307>:0 at OmniSharp.Script.ScriptProjectSystem.Initalize (Microsoft.Extensions.Configuration.IConfiguration configuration) [0x0023c] in <639a01402a864f1c988790c921d4193f>:0 at OmniSharp.WorkspaceInitializer.Initialize (System.IServiceProvider serviceProvider, System.Composition.Hosting.CompositionHost compositionHost, Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Extensions.Logging.ILogger logger) [0x00079] in <a906f848854547a083bd348961e348e4>:0 [info]: OmniSharp.Stdio.Host Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider [info]: OmniSharp.Stdio.Host Configuration finished. [info]: OmniSharp.Stdio.Host Omnisharp server running using Stdio at location '/Users/wk/Source/Hello' on host 2781.
The text was updated successfully, but these errors were encountered:
You are probably being hit by this OmniSharp/omnisharp-roslyn#1184 Try installing the latest beta https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.15.2-beta1
Alternatively in VS Code settings
"omnisharp.path":"latest"
Sorry, something went wrong.
Thanks @seesharper Installing v1.15.2-beta1 fixed the problem
Great! Thanks for verifying @wk-j.
No branches or pull requests
Environment data
dotnet --info
output:VS Code version:
C# Extension version:
Steps to reproduce
Create
Hello.csx
and put this contentExpected behavior
Auto completion working correctly
Actual behavior
No auto completion, syntax checker also not working
Log
The text was updated successfully, but these errors were encountered: