bevry/staticsitegenerators-website

cannot run the site locally (error in build)

Closed this issue · 1 comments

I am trying to run your site locally using the directions provided in the readme. It blows up because the readFeed function returns null data, but the code expects an array, so it dies trying to loop over it.

it dies on this line: for entry in data

I am using macosx 10.9, node v0.10.22

Here is the relevant logs:

info: Fetching the latest static site generators
    → [2014-05-15 12:27:38.980] [/Users/misha/Projects/github/staticsitegenerators/docpad.js:71] [Object.docpadConfig.events.generateBefore]
debug: Feedr is parsing [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json]
    → [2014-05-15 12:27:39.107] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is reading [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json], checking exists
    → [2014-05-15 12:27:39.109] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is reading [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json], it doesn't exist
    → [2014-05-15 12:27:39.110] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is parsing [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json], read failed null
    → [2014-05-15 12:27:39.111] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is fetching [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] to [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a], requesting
    → [2014-05-15 12:27:39.112] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is fetching [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] to [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a], requested
    → [2014-05-15 12:27:39.495] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
oups  reports that were configured in the POM.'
debug: Feedr is fetching [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] to [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a], error { rawMessage: 'Unexpected characters near "s reports that were configured in the POM.\'".',
  parsedLine: 818,
  snippet: 'description: \'The Site Plugin is used to generate a site for the project. The generated site also includes the project\\\'s reports that were configured in the POM.\'',
  parsedFile: null,
  message: 'Unexpected characters near "s reports that were configured in the POM.\'" at line 818 (near "description: \'The Site Plugin is used to generate a site for the project. The generated site also includes the project\\\'s reports that were configured in the POM.\'").' }
    → [2014-05-15 12:27:39.515] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is remembering [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] from cache
    → [2014-05-15 12:27:39.517] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is parsing [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json]
    → [2014-05-15 12:27:39.520] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is reading [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json], checking exists
    → [2014-05-15 12:27:39.521] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is reading [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json], it doesn't exist
    → [2014-05-15 12:27:39.522] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is parsing [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a-meta.json], read failed null
    → [2014-05-15 12:27:39.523] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is reading [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a], checking exists
    → [2014-05-15 12:27:39.523] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
debug: Feedr is reading [https://raw.github.com/jaspervdj/static-site-generator-comparison/master/list.yaml] on [/var/folders/8d/0q90swkx2h747_xck3v890t80000gn/T/bed27392c38ccff6d0ffaa9c6da1b31a], it doesn't exist
    → [2014-05-15 12:27:39.524] [/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:41] [Feedr.log]
error: Something went wrong with the action
    → [2014-05-15 12:27:39.526] [/Users/misha/Projects/github/staticsitegenerators/node_modules/docpad/out/lib/interfaces/console.js:107] [ConsoleInterface.destroyWithError]
error: An error occured:
TypeError: Cannot read property 'length' of null
    at /Users/misha/Projects/github/staticsitegenerators/docpad.js:81:35
    at TaskGroup.<anonymous> (/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:292:18)
    at TaskGroup.g (events.js:175:14)
    at TaskGroup.EventEmitter.emit (events.js:98:17)
    at TaskGroup.complete (/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/node_modules/taskgroup/out/lib/taskgroup.js:586:14)
    at TaskGroup.itemCompletionCallback (/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/node_modules/taskgroup/out/lib/taskgroup.js:377:17)
    at TaskGroup.EventEmitter.emit (events.js:98:17)
    at Task.<anonymous> (/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/node_modules/taskgroup/out/lib/taskgroup.js:435:26)
    at Task.EventEmitter.emit (events.js:117:20)
    at Task.completionCallback (/Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/node_modules/taskgroup/out/lib/taskgroup.js:142:19)
    at /Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:306:22
    at /Users/misha/Projects/github/staticsitegenerators/node_modules/feedr/out/lib/feedr.js:221:20
    at Object.cb [as oncomplete] (fs.js:168:19)
    → [2014-05-15 12:27:39.529] [/Users/misha/Projects/github/staticsitegenerators/node_modules/docpad/out/lib/docpad.js:2019] [DocPad.error]
debug: Emitting the event: notify
    → [2014-05-15 12:27:39.531] [/Users/misha/Projects/github/staticsitegenerators/node_modules/docpad/out/lib/docpad.js:1184] [DocPad.emitSerial]
debug: Emitted the event: notify
    → [2014-05-15 12:27:39.536] [/Users/misha/Projects/github/staticsitegenerators/node_modules/docpad/out/lib/docpad.js:1189] [TaskGroup.<anonymous>]
info: Shutting down... cya next time!

Yeah the YAML file was broken. Fixed now. Thanks for letting me know :)