vscode-remote-workspace icon indicating copy to clipboard operation
vscode-remote-workspace copied to clipboard

Running vscode tasks: cwd parameter not working "chdir(2) failed.: No such file or directory"

Open freifrauvonbleifrei opened this issue 7 years ago • 6 comments

I can not run the usual vscode tasks over sftp even if they operate in the workspace root:

"options": {
                "cwd": "${workspaceRoot}"
            },

(in .vscode/tasks.json) and even if the cwd is not given.

I always get

chdir(2) failed.: No such file or directory
The terminal process terminated with exit code: 1

Is this a known issue or does it work for others?

freifrauvonbleifrei avatar Aug 31 '18 09:08 freifrauvonbleifrei

I have same issue, latest vscode, mac os 10.14 Mojave

JustFly1984 avatar Nov 04 '18 20:11 JustFly1984

+1

Restry avatar Nov 15 '18 03:11 Restry

+1

Annihilater avatar Nov 15 '18 08:11 Annihilater

+1

I got the same issue with the latest version of Mac OS (Mojave 10.14)

willigarneau avatar Nov 20 '18 13:11 willigarneau

That's because tasks are executed locally. To add this feature (please), extension.remote.workspace.executeRemoteCommmand needs to accept arguments, which currently doesn't (I think?).

Task:

    {
        "label": "check",
        "type": "process",
        "problemMatcher": [],
        "linux":   { "command": "uname -a" },
        "windows": { "command": "hostname" }
    }

Output (remote is linux, locale is windows):

> Executing task in folder nagios: C:\Windows\system32\hostname.exe  <

The terminal process terminated with exit code: 2

Terminal will be reused by tasks, press any key to close it.

If it accepted arguments, this could be a working solution:

    {
        "label": "check",
        "type": "shell",
        "command": "${command:extension.remote.workspace.executeRemoteCommmand}",
        "problemMatcher": [],
        "args": ["hostname"]
    }

ironbishop avatar Jan 24 '19 14:01 ironbishop

I can't start internal terminal, it closes immediately with this error.

xmine64 avatar Apr 30 '19 11:04 xmine64