-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
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
Debugger licensing errors are not reported to the UI #3759
Comments
Can you grab a debugger log? Since you are on arch, I am going to guess that this is a problem with native dependencies, so I would probably suggest the full method. |
Sure thing! Here's the log: Log
I'm going to guess that this line:
is the one that we're looking for. |
The problem is that you are using the OSS version of Visual Studio Code. But the debugger is only licensed to be used with the official Microsoft version. I am not sure if the official Microsoft version is available for Arch. But you would need to use it is order to use the Microsoft debugger. There is also another problem that your version VS Code isn't showing the failure message that is being returned there. VS Code has broken error reporting before, so I am not sure if they just broke it again, or if you just have one of the older versions where this is broken. |
Ah— the open source build of VSCode is what ships in the Arch repos. To get the official version, you must get it from the AUR. I'll grab that version and report back. About the failure message: I'm using a version shipped by Arch from a week ago ( |
Thanks. 1.44.2 is the latest release, so that sounds good. I will try to dig in what is going wrong there. |
The official version from Microsoft, ( I'm not sure if I should close this, seeing as the error messages issue is still up in the air |
I opened VS Code issue 97110 for the error reporting problem. There however, is also an issue with the way vsdbg is generating this error. I will leave this bug open to track that. |
As I am new to vsCode and studying C# and feeling that I could also have this same issue? Question: As I am new to this, what does arch-pero and AUR mean? Could my problem be soved with this? pasted a question on my problem to stackOverflow: https://stackoverflow.com/questions/61709211/visual-studio-code-doesnt-stop-at-breakpoints-on-debugging |
@jansse78 You are on Windows 10, so this issue probably doesn't apply to you. Please open a new issue. In your new issue, please include a debugger log (instructions). |
Embarassed I have to admit that I just noticed that in the old laptop had 32bit SDK and this new one needed apparently 64bit. When installed 64bit it works. Sorry for confusing with this kind of basic stuff... :( |
#4091 resolves the issue with error reporting in vsdbg. |
Issue Description
When attempting to debug a program using step-debugging, VSCode will compile the program, but no code will execute.
Steps to Reproduce
Program.cs
, such as this:System.Console…
line.Expected Behavior
The debugger will allow me to step-debug code, and also will allow me to finish execution of code that has no errors.
Actual Behavior
The debugger does not allow me to step-debug code, and does not appear to execute any code.
Logs
OmniSharp log
Log
Starting OmniSharp server at 5/6/2020, 2:52:04 PM Target: /home/iron-e/Programming/Issues/Omnisharp/Debugger/Test.sln
OmniSharp server started with Mono 6.4.0.
Path: /home/iron-e/.vscode-oss/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/OmniSharp.exe
PID: 3567
Starting OmniSharp on arch 0.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
[warn]: OmniSharp.MSBuild.Discovery.Providers.MonoInstanceProvider
It looks like you have Mono 6.4.0 or greater installed but MSBuild could not be found.
Try installing MSBuild into Mono (e.g. 'sudo apt-get install msbuild') to enable better MSBuild support, or upgrade to latest Mono: https://www.mono-project.com/download/stable/.
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 16.4 - "/home/iron-e/.vscode-oss/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to '/home/iron-e/.vscode-oss/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 16.4 - "/home/iron-e/.vscode-oss/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin"
CscToolExe = csc.exe
MSBuildToolsPath = /home/iron-e/.vscode-oss/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin
CscToolPath = /home/iron-e/.vscode-oss/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild/Current/Bin/Roslyn
BypassFrameworkInstallChecks = true
MSBuildExtensionsPath = /home/iron-e/.vscode-oss/extensions/ms-dotnettools.csharp-1.21.18/.omnisharp/1.35.1/omnisharp/.msbuild
[fail]: OmniSharp.Services.AssemblyLoader
An error occurred when attempting to access '/home/iron-e/Programming/Issues/Omnisharp/Debugger/
/.omnisharp/Roslynator/src/Core/bin/Debug/netstandard2.0/Roslynator.Core.dll'./.omnisharp/Roslynator/src/Core/bin/Debug/netstandard2.0/Roslynator.Core.dll'.System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/iron-e/Programming/Issues/Omnisharp/Debugger/
at System.IO.Enumeration.FileSystemEnumerator
1[TResult].CreateDirectoryHandle (System.String path, System.Boolean ignoreNotFound) [0x00032] in <c4bddbfe864a4b8191bb818d6b204e9d>:0 at System.IO.Enumeration.FileSystemEnumerator
1[TResult]..ctor (System.String directory, System.IO.EnumerationOptions options) [0x00048] in :0at System.IO.Enumeration.FileSystemEnumerable
1+DelegateEnumerator[TResult]..ctor (System.IO.Enumeration.FileSystemEnumerable
1[TResult] enumerable) [0x00000] in :0at System.IO.Enumeration.FileSystemEnumerable
1[TResult]..ctor (System.String directory, System.IO.Enumeration.FileSystemEnumerable
1+FindTransform[TResult] transform, System.IO.EnumerationOptions options) [0x00042] in :0at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles (System.String directory, System.String expression, System.IO.EnumerationOptions options) [0x00014] in :0
at System.IO.Directory.InternalEnumeratePaths (System.String path, System.String searchPattern, System.IO.SearchTarget searchTarget, System.IO.EnumerationOptions options) [0x0003c] in :0
at System.IO.Directory.EnumerateFiles (System.String path, System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00000] in :0
at System.IO.Directory.EnumerateFiles (System.String path, System.String searchPattern) [0x00007] in :0
at OmniSharp.Services.AssemblyLoader.LoadAllFrom (System.String folderPath) [0x00015] in :0
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/home/iron-e/Programming/Issues/Omnisharp/Debugger'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in '/home/iron-e/Programming/Issues/Omnisharp/Debugger/Test.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/iron-e/Programming/Issues/Omnisharp/Debugger/Test/Test.csproj'
info: OmniSharp.MSBuild.ProjectManager
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/home/iron-e/Programming/Issues/Omnisharp/Debugger'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectManager
Loading project: /home/iron-e/Programming/Issues/Omnisharp/Debugger/Test/Test.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/home/iron-e/Programming/Issues/Omnisharp/Debugger' on host 3450.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/home/iron-e/Programming/Issues/Omnisharp/Debugger/Test/Test.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project '/home/iron-e/Programming/Issues/Omnisharp/Debugger/Test/Test.csproj'
info: OmniSharp.MSBuild.ProjectManager
info: OmniSharp.MSBuild.ProjectManager
info: OmniSharp.MSBuild.ProjectManager
info: OmniSharp.MSBuild.ProjectManager
Update project: Test
info: OmniSharp.MSBuild.ProjectManager
info: OmniSharp.Roslyn.CSharp.Services.Diagnostics.CSharpDiagnosticWorkerWithAnalyzers
Solution initialized -> queue all documents for code analysis. Initial document count: 3.
C# log
There is nothing in the log.
Environment information
VSCode version: 1.44.2
C# Extension: 1.21.18
Mono Information
OmniSharp using global mono :6.4.0Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.103 Commit: 6f74c4a1ddRuntime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/3.1.103/
Host (useful for support):
Version: 3.1.3
Commit: ed88943d24
.NET Core SDKs installed:
3.1.103 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: