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

Operation not permitted when running bash script from task #1162

Closed
egamma opened this issue Jan 31, 2017 · 10 comments
Closed

Operation not permitted when running bash script from task #1162

egamma opened this issue Jan 31, 2017 · 10 comments
Labels

Comments

@egamma
Copy link
Contributor

egamma commented Jan 31, 2017

From @spboyer on January 30, 2017 16:49

VSCode Version: Version 1.8.1
OS Version: macOS Sierra 10.12.2 (16C67)

Steps to Reproduce:

  1. clone repo https://github.com/spboyer/dockerdebugapp
  2. open debug pane and run
  3. Console outputs: "/bin/bash: ./dockerTask.sh: Operation not permitted"

Can run bash script from terminal with no problems without sudo.

Copied from original issue: microsoft/vscode#19586

@spboyer
Copy link

spboyer commented Jan 31, 2017

Steps

  1. Clone repo
  2. Deleted bin and obj
  3. dotnet restore -r debian.8-x64
  4. Open project in vscode
  5. Set breakpoint in Program.cs
  6. Open debug pan - click "play"
  7. Console outputs: "/bin/bash: ./dockerTask.sh: Operation not permitted"

Get error on one machine but not another, same version of VS Code and OS and C# extension.

@gregg-miskelly
Copy link
Contributor

This issue seems to be in the wrong repo. This should be in the repo of 'dockerTask.sh' I would assume.

@gregg-miskelly
Copy link
Contributor

This issue was moved to microsoft/generator-docker#131

@spboyer
Copy link

spboyer commented Jan 31, 2017

@gregg-miskelly please re-open

@gregg-miskelly
Copy link
Contributor

I am not at all sure that this is actually a problem with the C# extension. But I can reopen for now.

@DustinCampbell
Copy link
Member

@spboyer, could you explain why this would be an issue with the C# extension?

@spboyer
Copy link

spboyer commented Jan 31, 2017

@DustinCampbell - I can't, to be honest I believe that its an integrated shell issue. @egamma moved it here from vscode.

The following works in terminal OUTSIDE of shell, same error happens on integrated shell (see screenshot)
cd
/bin/bash -c "./dockerTask.sh startDebugging"

I'm ok closing this considering the above. It does not belong in the yo docker repo. I believe that it should go to vscode IMO.

cc:/ @egamma @chrisdias

@DustinCampbell
Copy link
Member

Got it, thanks! @egamma, @chrisdias, we don't think this is likely a C# extension issue. Could you take a look?

@egamma
Copy link
Contributor Author

egamma commented Feb 1, 2017

@DustinCampbell sorry for the wrong move. First assessment was that the message is from C# debugger adapter and not from VS Code.

@spboyer since you suspect it has to do with the integrated terminal. Can you change the launch configuration so that it uses an external console, To do so set externalConsole to true (see below).

"configurations": [
    {
        "name": ".NET Core Launch (console)",
        "type": "coreclr",
        "request": "launch",
        "preLaunchTask": "build",
        "program": "${workspaceRoot}\\bin\\Debug\\netcoreapp1.1\\hwapp.dll",
        "args": [],
        "cwd": "${workspaceRoot}",
        "externalConsole": false,   <======= true
        "stopAtEntry": false,
        "internalConsoleOptions": "openOnSessionStart"
    },

@egamma
Copy link
Contributor Author

egamma commented Feb 1, 2017

This issue was moved to microsoft/vscode#19664

@egamma egamma closed this as completed Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants