Couscous icon indicating copy to clipboard operation
Couscous copied to clipboard

Windows compatibility issue

Open pedra opened this issue 9 years ago • 12 comments

My english is bad! :) This not running in Windows 10 - see a image! capturar

pedra avatar Nov 24 '15 21:11 pedra

Hi, could you have a look at the content of the G:\www\couscous/./generated folder? It should contain HTML files, and more specifically a index.html. I think Windows support was fixed in #115, but maybe something is still missing… I'm wondering if the forward slashes (/ instead of \) can create an issue.

mnapoli avatar Nov 24 '15 21:11 mnapoli

Ok. I'll test it! Thank you.

pedra avatar Nov 24 '15 22:11 pedra

My Windows (w10) accepts both "" to "/". I tested directly on a PHP script. I believe that this is another problem related to the internal PHP server.

I will copy the GitHub (clone) and test here on my machine.

Sorry for my English... (google translate :P)

pedra avatar Nov 24 '15 23:11 pedra

No problem. Please list what's inside the directory I mentioned: is there an index.html? Try copying those generated file into a web server, or try running php -S 127.0.0.1:8000 into that folder manually.

mnapoli avatar Nov 24 '15 23:11 mnapoli

image No file index.html !!

pedra avatar Nov 25 '15 00:11 pedra

Darn, that indeed sounds like a Windows compatibility issue. I can't really help much on my end :/

mnapoli avatar Nov 25 '15 23:11 mnapoli

Ok! Windows :(

pedra avatar Nov 27 '15 18:11 pedra

I'll jump in, as I've worked with Windows problems. @pedra What's does the directory with the source files look like? I guess for you it would be G:\www\couscous.

cyberbit avatar Nov 28 '15 03:11 cyberbit

My folder looks after command: "php couscous.phar preview" (attached - rename ".pdf" -> ".zip") couscous.pdf

pedra avatar Dec 02 '15 00:12 pedra

@pedra can you tell us if this is still relevant with latest master?

wysow avatar Mar 15 '16 08:03 wysow

Hi, I don't know whether this would help. I still met this problem when i started try Couscous today.

I tried to add the sources code from CouscousPHP/Template-Light into my project root directory. image

And in http://localhost:8000 "vendor/bin/couscous preview worked just like the screenshot showed. So i guessed it maybe was the fetching problem or something? Sorry, i'm not familiar with this. I'm using it on Windows 10; and yes, this issue is still the problem.

iola-lin avatar Nov 12 '16 07:11 iola-lin

I'm using Couscous on W10 without any problem.

theme files shouldn't be in root directory - look at my example http://screencloud.net/v/AicXt - and in couscouse.yml:

template:
    directory: theme
    # Name of the index file (default is "README.md")
    index: index.md```

palmiak avatar Aug 03 '17 17:08 palmiak