perak / kitchen-examples

Meteor Kitchen examples
164 stars 115 forks source link

error parsing json #41

Open yavasura opened 8 years ago

yavasura commented 8 years ago

meteor-kitchen command works for the first time and generates the website the second time it givesthe error is it how it should be?

* Meteor Kitchen v0.9.65 * Source code generator for Meteor.js - www.meteorkitchen.com Copyright (c) Petar Korponai─ç petar.korponaic@gmail.com

Reading input file...

Error parsing JSON. Parsing stopped at line 338 char 4.

perak commented 8 years ago

Hi @vasvalis, it should not be like this, something is wrong. Looks like unput file cintains errors. Try any json validator to find errors in .json file. If it doesn't help, please give me precise steps on how to reproduce this. BTW, what OS, which meteor version and meteor kitchen version are you using?

yavasura commented 8 years ago

hi,

json is fine as it generates for the first time into the empty folder.

problem happens if i want it to regenerate on top of existing folder content.

for now i am deleting and regenerating everytime i change something, but it is not nice as mongo data gets lost.

perak commented 8 years ago

@vasvalis do you generate the app and then (without any changes to inout json file) generate again - and you got the error? Are you 100% sure json is not damaged? Can I reproduce the same? for example, if I generate example app and then run generator again, no errors for me, so can you give me detailed steps on how to reproduce? (and are you using linux, windows or macosx?)

yavasura commented 8 years ago

windows 10 laetest meteor and latest kitchen. json is not changed in between ...

yavasura commented 8 years ago

hi it looks like on windows .meteor-kitchen.json has file paths with \ and this is the problem. if i delete this file before regenerating the code everything works.