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

SSH: Build task fails on Windows Remotes: ${__process__} does not exist #82994

Closed
xJonathanLEI opened this issue Oct 21, 2019 · 6 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug tasks Task system issues verified Verification succeeded
Milestone

Comments

@xJonathanLEI
Copy link

  • VSCode Version: 1.40.0-insider (user setup)
  • OS Version: Windows_NT x64 10.0.18362

Steps to Reproduce:

  1. Establish a Remote Development session to a Windows host

  2. Create a new .NET Core project with (I happen to do C# development):

     dotnet new console -o Reproduce
    
  3. Open the project folder just created in the Remote Development session

  4. Create file .vscode/tasks.json with the following content (the auto-generated stuff):

     {
         "version": "2.0.0",
         "tasks": [
             {
                 "label": "build",
                 "command": "dotnet",
                 "type": "process",
                 "args": [
                     "build",
                     "${workspaceFolder}/Reproduce.csproj",
                     "/property:GenerateFullPaths=true",
                     "/consoleloggerparameters:NoSummary"
                 ],
                 "problemMatcher": "$msCompile"
             }
         ]
     }
    
  5. Run the build task

Expected Result:

The build task succeeds as it would natively on the Windows host.

Actual Result:

The build task fails with the following output:

> Executing task: ${__process__} build MY_PATH_TO_PROJECT/Reproduce.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary <

The terminal shell path "${__process__}" does not exist

Does this issue occur when all extensions are disabled?: N/A

@vscodebot
Copy link

vscodebot bot commented Oct 21, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@xJonathanLEI
Copy link
Author

Maybe not a duplicate of any of those :)

@xJonathanLEI
Copy link
Author

Workaround: Change "type":"process" to "type":"shell"

@alexr00 alexr00 self-assigned this Oct 21, 2019
@alexr00 alexr00 added tasks Task system issues bug Issue identified by VS Code Team member as probable bug labels Oct 21, 2019
@alexr00 alexr00 changed the title Build task fails on Windows Remotes: ${__process__} does not exist SSH: Build task fails on Windows Remotes: ${__process__} does not exist Oct 22, 2019
@alexr00 alexr00 added this to the October 2019 milestone Oct 22, 2019
alexr00 added a commit that referenced this issue Oct 23, 2019
@alexr00
Copy link
Member

alexr00 commented Oct 24, 2019

It looks like the fix I made worked. Can folks who were seeing the issue try again with the latest insiders and confirm?

@alexr00 alexr00 closed this as completed Oct 24, 2019
@xJonathanLEI
Copy link
Author

It looks like the fix I made worked. Can folks who were seeing the issue try again with the latest insiders and confirm?

I can confirm the bug has been fixed in the latest insider build :)

@alexr00 alexr00 added the verified Verification succeeded label Oct 25, 2019
@alexr00
Copy link
Member

alexr00 commented Oct 25, 2019

Thank you for verifying!

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug tasks Task system issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants