Open jgr3go opened 9 years ago
I found a fix for this. Create a file called 'fcntl.py' and put it in the py/phl/ directory. Paste this code in the file:
def fcntl(fd, op, arg=0):
return 0
def ioctl(fd, op, arg=0, mutable_flag=True):
if mutable_flag:
return 0
else:
return ""
def flock(fd, op):
return
def lockf(fd, operation, length=0, start=0, whence=0):
return
Maybe we should split out the platform-dependent bits of phlsys_fs
into their own module, perhaps called phlsys_fsunix
or similar. That way we would still get errors if we try to use unimplemented functionality, arcyon probably doesn't need to use phlsys_fsunix
and would then work on Windows.
When trying to run arcyon on a Windows environment, you get the error:
It seems that fcntl is used to get file lock permissions, but no fcntl module exists for Windows. It's worth noting that arcanist uses the EDITOR config variable to get blocking sessions (PhutilInteractiveEditor.php) so it is possible, just not with the fcntl module.
Worth noting, I have no idea if this is the only code that's not Windows compatible, so this request may be more than just what I've listed here.