Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on windows #5

Closed
EvgenyGusev opened this issue Dec 3, 2013 · 1 comment
Closed

Working on windows #5

EvgenyGusev opened this issue Dec 3, 2013 · 1 comment

Comments

@EvgenyGusev
Copy link

Hi. Maybe i'm doing something wrong, but aglio doesn`t work for me on Windows. Steps:

  1. Install via npm and run
npm install -g aglio

aglio  -i example.md -s

example.md - example file from https://raw.github.com/danielgtaylor/aglio/master/example.md
3. Go to http://localhost:3000
4. Server crashes and what i get in output:

Server started on http://localhost:3000/
Rendering example.md

http.js:783
    throw new TypeError('first argument must be a string or Buffer');

TypeError: first argument must be a string or Buffer
    at ServerResponse.OutgoingMessage.write (http.js:783:11)
    at ServerResponse.OutgoingMessage.end (http.js:964:16)
    at C:\Users\Admin\AppData\Roaming\npm\node_modules\aglio\lib\bin.js:89:22
    at C:\Users\Admin\AppData\Roaming\npm\node_modules\aglio\lib\main.js:68:16
    at Object.exports.render (C:\Users\Admin\AppData\Roaming\npm\node_modules\aglio\lib\main.js:64:24)
    at Server.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\aglio\lib\bin.js:84:22)
    at Server.EventEmitter.emit (events.js:98:17)
    at HTTPParser.parser.onIncoming (http.js:2056:12)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
    at Socket.socket.ondata (http.js:1946:22)

After removing all content i found that line that causes crash is

# Group Notes

So if i run aglio on empty file - everything works fine. But if i add line with Group - server crashes.
Also i have this error:

C:\Test>aglio  -i example.md -o -
>> {"code":1,"message":"parser exception has occured","location":[],"input":"# Group Notes"}

Maybe something with my enviroment? Windows Server 2008 R2, node 0.10.13

@danielgtaylor
Copy link
Owner

Looks like this is a duplicate of #3 - I've renamed that issue to make sure it mentions Windows now. Closing this as a duplicate, but feel free to leave comments and/or follow the other issue. It's actually an issue upstream in the API Blueprint parsing library (Protagonist/SnowCrash) and someone at Apiary is looking into fixing it. See #3 for the history and upstream issue link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants