-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Dotnet (.Net) with VSCode Locally doesn't work with default tasks.json
#10831
Comments
I'm also experiencing this, can confirm changing command path works. |
@kylos101 @aledbf @ghuntley Is it the same like #10122 I'm trying to reproduce and getting as well: I don't think there is something to change in IDE, it is rather template shoudl be changed or something wrong with dotnet setup in workspace images. cc @gitpod-io/engineering-workspace @gitpod-io/dcs |
I just came across this when searching for an issue I was experiencing with an unrelated project. In case this is any help, this is the issue that is causing the error: microsoft/vscode#106661. Unfortunately, it doesn't seem like it'll get fixed. You probably have a UPDATE: I ended up making a PR myself to fix this issue in VSCode: microsoft/vscode#158666 |
Just to update, microsoft/vscode#158666 has been merged. With the next vscode release this issue should be resolved. |
@tobil4sk It should be in VS Code insider on our side already. Select latest in https://gitpod.io/preferences and try. |
Closing this as @tobil4sk PR got merged upstream, you can test it by installing vscode-desktop insiders |
Bug description
When I use VSCode locally, the auto-generated Run & Debug doesn't work. I get the error:
The terminal process failed to launch: Path to shell executable "dotnet" is not a file or a symlink.
This happens even when using the https://github.com/gitpod-io/template-dotnet-core-cli-csharp template.
Steps to reproduce
Notice that this works fine the browser.
Workspace affected
No response
Expected behavior
The console app should run and debugger should attach in VSCode Local in the same way that it does when running VSCode in Browser.
NOTE: When you click "Run & Debug" button in VSCode (browser or local) it generates two files
.vscode/launch.json
and.vscode/tasks.json
. The files which are generated by VSCode browser and VSCode local are identical.Example repository
The issue is reproducible with the GitPod Dotnet Sample or any blank dotnet project such as one created with
dotnet new <template_name>
such asdotnet new console
.Here are two workarounds I was able to find but neither is ideal because you should be able to run
dotnet new
, open in vscode desktop, and immediately hit debug/run.These workarounds do not break vscode in browser.
Anything else?
No response
The text was updated successfully, but these errors were encountered: