Skip to content
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

Opening project does not download C# debugger automatically #1433

Closed
douglasstarnes opened this issue Apr 26, 2017 · 6 comments
Closed

Opening project does not download C# debugger automatically #1433

douglasstarnes opened this issue Apr 26, 2017 · 6 comments

Comments

@douglasstarnes
Copy link

Environment data

dotnet --info output:
.NET Command Line Tools (1.0.3)

Product Information:
Version: 1.0.3
Commit SHA-1 hash: 37224c9917

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.3
VS Code version:
1.11.2
C# Extension version:
1.9.0

Steps to reproduce

Open a new .NET Core project folder

Expected behavior

Visual Studio Code should prompt to download the debugger, add debugging resources, and restore dependencies.

Actual behavior

Nothing.

In addition I can try to run the command manually in the Command Palette but I get the error:

command 'csharp.downloadDebugger' not found

However, it downloads the debugger (only the first time) and then adds the debugging resource and restores the dependencies successfully. Without the error and extra step of manually running the command, it works. I've reinstalled the C# extension and tried both the stable and insider versions of VS Code. It's the same in both of them.

@gregg-miskelly
Copy link
Contributor

@douglasstarnes Currently there is nothing the C# extension can reasonably do to download on project open. We have been asking the VS Code team to provide support for this. When VS Code supports this, we are tracking the C# extension side of the work in #1150.

But I am not sure why the downloadDebugger command doesn't work. That sounds like we may be doing something wrong.

@DustinCampbell
Copy link
Member

@gregg-miskelly: The issue of commands not loading the extension was also mentioned in #1375.

@douglasstarnes
Copy link
Author

@gregg-miskelly In previous version of vscode the prompts came up automatically on opening a project folder. The user still had to confirm the prompt to start the download(s). They didn't start without confirming the prompt. But the issue I am having is that there is no prompt and trying to run commands manually gives the error.

@DustinCampbell
Copy link
Member

@douglasstarnes: It did come up previously, but only if you have a C# file open. In the project.json days, the download would start because of the presence of a well-known file name: 'project.json'. There isn't yet a way in VS Code to load the extension for a file with wildcards (e.g. *.csproj, *.sln, *.cs).

@DustinCampbell
Copy link
Member

DustinCampbell commented Apr 26, 2017

Seems like this is a duplicate of #1150. @douglasstarnes, do you agree?

@douglasstarnes
Copy link
Author

@DustinCampbell Ok, I understand. Opening a C# file triggers the prompt to download the debugging assets and restore dependencies. I'm going to close this now. Thanks for the help! /cc @gregg-miskelly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants