Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

The tutorial doesn't seem to work on Windows 8 #52

Closed
ultraflynn opened this issue Jan 4, 2013 · 8 comments
Closed

The tutorial doesn't seem to work on Windows 8 #52

ultraflynn opened this issue Jan 4, 2013 · 8 comments

Comments

@ultraflynn
Copy link

I've been trying to use Punch on Windows 8 and have been running into problems going through the tutorial. I've tried the same thing on the latest version of Ubuntu and the tutorial works perfectly.

Before I start listing the issues I thought I'd asked whether this has been tested on Windows only because if it had it's clearly an issue with my environment.

@laktek
Copy link
Owner

laktek commented Jan 4, 2013

Personally, I haven't tested Punch on a Windows box. But installation should work as per these steps provided by others - https://github.com/laktek/punch/wiki/Installing-on-Windows

What are the issues you're experiencing?

@ultraflynn
Copy link
Author

Installation is fine. "npm install punch -g" does the trick perfectly. All dependencies are met and no errors during installation.

If you start the tutorial it works ok to begin with but when you get to step3 and add intro.markdown into the _index directory it stops working. The markdown file is not picked up and the JSON attribute gets used instead. That rather stalls the tutorial. As mentioned I tried the same thing on Ubuntu and the tutorial worked perfectly.

The other thing is that if you run "punch generate" the whole site stops working. The generated HTML is missing header and footer, and it doesn't look like the markdown is interpreted.

At the moment I would say that punch is unusable on Windows. Because I like punch I've switch development to Ubuntu for the time being but I would rather be on Windows 8 as it's on my laptop.

@laktek
Copy link
Owner

laktek commented Jan 6, 2013

I currently don't have access to a Windows box. I'll try to setup a Windows 8 virtual machine and check where the issue is.

Meanwhile, if you were able to track down the issue, please send a patch.

@ultraflynn
Copy link
Author

If I get time today I'll take a look.

@atomi
Copy link

atomi commented Mar 5, 2013

It would be helpful if you could give your thoughts on the cause, maybe include a link to the relevant code, in this case the area of code where delegation to markdown files takes place. Thanks.

Edit: My guess right now is that it's probably a simple windows path issue in the page_renderer.js but I haven't done any debugging.

@laktek
Copy link
Owner

laktek commented Apr 6, 2013

Can you guys try installing Punch version 0.5.22? I have made that release merging pull request #77, which supposedly solve the issues with parsing extended content directories.

@atomi
Copy link

atomi commented Apr 7, 2013

@laktek

Got this when creating a new site:

D:\Dropbox\Downloads\Environment\node-0.10.0x64\bin\node_modules\punch\lib\project_creator.js:39
                                        throw err;
                                              ^
Error: Command failed:
    at ChildProcess.exithandler (child_process.js:602:15)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:700:16)
    at Process.ChildProcess._handle.onexit (child_process.js:767:5)

But I went through the tutorial just fine.

@laktek
Copy link
Owner

laktek commented May 15, 2013

This issue is fixed from 0.5.24

@laktek laktek closed this as completed May 15, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants