-
Notifications
You must be signed in to change notification settings - Fork 682
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
Could not load source ...: Incorrect format of 'source' message.. #4842
Comments
What is going on is that the paths in your PDB files are stamped with |
Actually, the PDBs are stamped with the equivalent of The debugger has to look in places like |
That isn't a problem. The remote debugger never looks at source files. So you want |
I tried to make things more clear: #4844 |
I appreciate that. It better explains what should be happening, and much of what is happening. Here's the weird thing: the PDBs are generated on the same machine as where So, I guess that my real issue is
This explicit experience directly contradicts your statement (referring to source files):
|
The basic problem is that the machine running the debugger does not have access to the repository nor does it have GUI access. Thus, builds run on the machine with VSCode, debugger runs on remote. |
I can't think of any reason why a |
Issue Description
This was first reported here. I did change the paths for privacy, but I may as well unmask that at this point.
Steps to Reproduce
Implement c# console app (net5). Create task
publishAll
that builds project, copiesbin/Debug/net5.0
folder to~/cromwell/bin
and workspace folder (except forobj
,bin
, and.git
) to~/cromwell/code
. Add following to launch.json underconfigurations
:Set breakpoint at line 96 in Deployer.cs file, select
.NET Core Launch (remote console)
configuration, hit green triangle.Expected Behavior
debugger stops at line 96 in Deployer.cs file, vscode shows Deployer.cs file around that line, breakpoint shows red in column to left of line numbers where it was red before launching.
Actual Behavior
\remote\sources\path\Deployer.cs
in bold+italics, with content:Could not load source \remote\sources\path\Deployer.cs: Incorrect format of 'source' message..
Breakpoints
list shows that there is at least one active breakpoint in\remote\sources\path\Deployer.cs
Note that vscode is running in Windows, and debugger is running in Linux.
Note also that the remote extensions do me no good because I need my code and my debugger at different locations (the source copy to remote is a concession to the fact that the debugger simply would refuse to honor breakpoints when it can't read the source file "locally").
If it helps. I had captured the following engine logging (trimmed to what looked most pertinent):
Logs
OmniSharp log
OmniSharp server started.
Path: c:\Users\v-blairmurri.vscode\extensions\ms-dotnettools.csharp-1.23.16.omnisharp\1.37.16\OmniSharp.exe
PID: 3124
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
info: OmniSharp.Services.DotNetCliService
Using the 'dotnet' on the PATH.
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Community 2019 16.11.31729.503 16.11.1 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
2: StandAlone 17.0.0 - "c:\Users\v-blairmurri.vscode\extensions\ms-dotnettools.csharp-1.23.16.omnisharp\1.37.16.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Community 2019 16.11.31729.503 16.11.1 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
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.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure\deploy-cromwell-on-azure.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure' on host 18472.
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure\deploy-cromwell-on-azure.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure\deploy-cromwell-on-azure.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\deploy-cromwell-on-azure\deploy-cromwell-on-azure.csproj'
info: OmniSharp.MSBuild.ProjectManager
Update project: deploy-cromwell-on-azure
info: OmniSharp.MSBuild.ProjectManager
Found referenced project outside root directory: c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\Common\Common.csproj
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\Common\Common.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\Common\Common.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\Common\Common.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\Users\v-blairmurri\source\repos\CromwellOnAzure\src\Common\Common.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Update project: Common
info: OmniSharp.OmniSharpWorkspace
Adding analyzer reference: C:\Program Files\dotnet\sdk\5.0.402\Sdks\Microsoft.NET.Sdk\analyzers\Microsoft.CodeAnalysis.CSharp.NetAnalyzers.dll
info: OmniSharp.OmniSharpWorkspace
Adding analyzer reference: C:\Program Files\dotnet\sdk\5.0.402\Sdks\Microsoft.NET.Sdk\analyzers\Microsoft.CodeAnalysis.NetAnalyzers.dll
Received response for /quickinfo but could not find request.
C# log
Environment information
VSCode version: 1.61.2
C# Extension: 1.23.16
Dotnet Information
.NET SDK (reflecting any global.json): Version: 5.0.402 Commit: e9d3381880Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.402\
Host (useful for support):
Version: 5.0.11
Commit: f431858f8b
.NET SDKs installed:
5.0.402 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: