Say you want to call patscc or patsopt from a non cygwin environment in Windows. I am trying to do this with IntelliJ. Currently, I get the following command and result:
Starting process 'command 'C:\cygwin64\home\brand_000\ATS-Postiats/bin/patscc''. Working directory: C:\cygwin64\home\brand_000\BIBCalc Command: C:\cygwin64\home\brand_000\ATS-Postiats/bin/patscc -D_GNU_SOURCE -DATS_MEMALLOC_LIBC -fPIC -IC:\cygwin64\home\brand_000\ATS-Postiats -IC:\cygwin64\home\brand_000\ATS-Postiats/ccomp/runtime -IIATS C:\cygwin64\home\brand_000\ATS-Postiats-contrib/contrib -c Calculator_controller.dats
Successfully started process 'command 'C:\cygwin64\home\brand_000\ATS-Postiats/bin/patscc''
fopen: No such file or directory
exit(ATS): [fopen("/home/brand_000/BIBCalc/C:\cygwin64\home\brand_000\ATS-Postiats/prelude/params.hats", "r")] failed
Is there anything obviously (or not so obviously) wrong with how patscc is being called that is making it prepend the CWD to search paths internal to patscc (or patsopt)?