commercialhaskell / stack-ide

Stack-based JSON interface to ide-backend
98 stars 23 forks source link

Aux.hs is an illegal filename on Windows #38

Closed garethrowlands closed 9 years ago

garethrowlands commented 9 years ago

Sadly, Aux.hs is an illegal filename on Windows. Please could you rename this file so Windows users can check out the source? This limitation is a hang over from the days of DOS (AUX:) but it still applies even to modern Windows.

Steps to reproduce:

  1. Get a command prompt on Windows (any version but I used Windows 8.1).
  2. git clone ...
  3. Checkout fails with error about Aux.hs. :-(

Workaround is easy: just call Aux.h's something else (but not Con.hs or any of the words listed here: http://blog.onetechnical.com/2006/11/16/forbidden-file-and-folder-names-on-windows/).

garethrowlands commented 9 years ago

I was able to get Aux.h's onto my disk (using UNC syntax, ....) but suspect ghc won't be able to write Aux.hi or Aux.o. I guess I'm the first person to try stack-ide on Windows?

garethrowlands commented 9 years ago

Ah. It depends on ide-backend-common, which depends on Unix. So I guess Windows support is right out. Where's the right place to report this? I couldn't find an ide-backend-common repo.

CRogers commented 9 years ago

ide-backend-common lives in fpco/ide-backend.

lukexi commented 9 years ago

Windows support is underway! https://github.com/fpco/ide-backend/issues/279 I'm super keen on it too, as I've been forced into Windows by VR work : )

mgsloan commented 9 years ago

Wow, that's pretty terrible, I didn't know about that filename restriction on windows. I've pushed a fix.