Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99231

How to run a custom task in Cygwin shell with VSCode?

$
0
0

I am trying to set my development environment for an AEM project in VSCode. I want to create various tasks to automate the syncing, fot that I need to use repo, which only works in the cygwin shell.

The example in the repo documentation for the task definition is the following, but it's thought for mac.

{
  "label": "put file",
  "type": "shell",
  "command": "repo put -f ${file}",
  "problemMatcher": []
}

This is what I've been trying, it initializes the cygwin shell but doesn't seem to execute the command and it doesn't finish the task.

{
  "label": "put file",
  "type": "shell",
  "command": "repo put -f ${file}",
  "options": {
      "shell": {
          "executable": "C:\\cygwin64\\bin\\bash.exe",
          "args": ["/bin/xhere", "/bin/bash"]
       }
   },
   "problemMatcher": []
}

The output of the console

Can somebody help me? thanks!


Viewing all articles
Browse latest Browse all 99231

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>