Is Cygwin still used in the software community to standardize developer environments?

I’ve noticed if you want to provide documentation on how to take certain steps in installing and developing on a software development stack, there are radically different steps depending on the coder’s operating system. Say, for example, you wanted to describe how to do something in PHP, you would have one user running WAMP on Windows, and another using Homebrew on Mac. Is the best way to make a universal environment Cygwin? I suppose the other option is to make use of a linux virtual machine, but depending on system performance, that could be a resource hog. Thanks for any input.

wrong git path with cygwin mintty via npm

I use cygwin with mintty on my windows 10 computer. I have git installed via cygwin. This is the error I get:

$   cordova plugin add  You have been opted out of telemetry. To change this, run: cordova telemetry on. Failed to fetch plugin via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: npm: Command failed with exit code 1 Error output: npm ERR! code 1 npm ERR! Command failed: C:\cygwin64\bin\git.EXE clone --mirror -q C:\Users\egune\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-51f64ba3\.git --config core.longpaths=true npm ERR! /cygdrive/c/Users/egune/AppData/Roaming/npm-cache/_cacache/tmp/git-clone-51f64ba3/C:\Users\egune\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-51f64ba3\.git: No such file or directory npm ERR! 

Cannot run ssh -X apps from remote machine through WSL or Cygwin (but local Xorg works)

I’m running…
Windows 10 Enterprise 1803
Ubuntu 18 (WSL app)
Cygwin 3.0.5(0.338/5/3)

I’ve installed the appropriate Xorg stuff in both Cygwin and WSL – and it works fine for the local machines.

I.e. In either WSL Ubuntu or Cygwin I can…

  1. Start an instance of VcXsrv using XLaunch annd accepting all the defaults.
  2. Export my display
  3. Start either a cygwin or WSL Ubuntu 18 terminal
  4. Run xclock


export DISPLAY=":0" xclock 

…and the GUI xclock app comes up no issues no issues.

However, it does NOT work if I ssh -X to another system. I.e.

ssh -X # Remote computer export DISPLAY="" xclock 

Notice that I DON’T get an error (such as Cannot open display. xclock THINKS it’s running just fine, and the display data is going somewhere just fine …BUT the xclock GUI appears noweher on my system.

Am I missing something? Do I need to set X-forwarding somewhere? xhost + has no effect.

Why does XWin Server from Cygwin not open?

I installed cygwins X Server to be able to X forward on Windows 10 as explained here. Now the installation completed and it finished without problems, but when I try to start the XWin Server as explained on the offical site a window opens shortly but immediately closes again. I tried to use the command C:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin" instead of using the shortcut but the same thing happens. A window opens briefly but no output in the console. What am I missing? I also tried to launch it with the XLaunch library but that also didn’t work.