-
Notifications
You must be signed in to change notification settings - Fork 676
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 commands Permission Denied #4556
Comments
@superman-lopez So this failure is occuring when VS Code is executing the build task defined in your .vscode/tasks.json. Could you try changing the "type" of the build task from "process" to "shell" and trying again on the latest VS Code? |
@JoeRobich thanks, after changing the type to "shell" the debugger starts without issue. When I have the C# extension recreate the tasks.json, the default type in the new file is also "process". |
I also currently experiencing this issue. Making @JoeRobich 's suggested change from "process" -> "shell" allows the debugger to work as expected. Regenerating the Error Message> Executing task: dotnet build /home/riley/RiderProjects/ConsoleApp7/ConsoleApp7/ConsoleApp7.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary <
execvp(3) failed.: Permission denied
The terminal process "dotnet 'build', '/home/riley/RiderProjects/ConsoleApp7/ConsoleApp7/ConsoleApp7.csproj', '/property:GenerateFullPaths=true', '/consoleloggerparameters:NoSummary'" failed to launch (exit code: 1). Running the same command from the command line works fine. I'm assuming that's why changing the task type to C# Extension generated tasks.json build section...
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/ConsoleApp7/ConsoleApp7.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
... Vscode "About" infoVersion: 1.60.2 Extension Info
Dotnet Info.NET v5.0.401 |
@gregg-miskelly Do you know of any reason we couldn't update our asset generation to use |
I am not an expert on this, but I would say:
|
I just started a brand new project, and still the same issue comes up for me. |
In macOS Monterrey it is also happening. It is fixed using |
In the vscode project below issue was posted:
Issue Type: Bug
When debugging a dotnet core 3.1 project through vscode I get the following error. I've checked that the project files have the correct permissions, have tried running vscode with sudo, and reinstalled vscode without fixing this issue.
Rolling back to the previous version [of vs code] fixed the issue, so this appears to be caused by the latest update.
microsoft/vscode#123324
vscode developers suggest this issue is caused by C# extension, however the issue can resolved by downgrading vscode. Not sure how
execvp
is triggered, but this may be a cross project issue.The text was updated successfully, but these errors were encountered: