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

wintersmith build - crash on ubuntu 16.04 #321

Closed
antirek opened this issue Jan 13, 2017 · 10 comments
Closed

wintersmith build - crash on ubuntu 16.04 #321

antirek opened this issue Jan 13, 2017 · 10 comments

Comments

@antirek
Copy link

antirek commented Jan 13, 2017

install now and try build existing project - crash.
2017-01-13 12-28-38

ubuntu 16.04, nodejs 7.4.0

@jnordberg
Copy link
Owner

Can you post the output of wintersmith build -vv

@jnordberg jnordberg added 3.0 and removed 3.0 labels Jan 13, 2017
@antirek
Copy link
Author

antirek commented Jan 16, 2017

sergey@sergey-300E5C:~/Projects/mobilon_docs$ wintersmith build -vv
  building site
  verbose creating environment - work directory: /home/sergey/Projects/mobilon_docs
  using config file: /home/sergey/Projects/mobilon_docs/config.json
  verbose config: {"locals":{"url":"http://antirek.github.io/mobilon_docs/build","name":"Mobilon Docs","owner":"Someone","description":"Документация для пользователей, а также их родителей"},"require":{"moment":"moment","_":"underscore","typogr":"typogr"},"jade":{"pretty":true},"markdown":{"smartLists":true,"smartypants":true},"baseUrl":"/","contents":"./contents","ignore":[],"plugins":[],"templates":"./templates","views":null,"output":"./build","hostname":null,"port":8080,"_fileLimit":40,"_restartOnConfChange":true,"__filename":"/home/sergey/Projects/mobilon_docs/config.json","_cliopts":{"X":false,"verbose":true,"v":true,"quiet":false,"q":false,"version":false,"V":false,"help":false,"h":false,"c":"./config.json","C":null},"X":false,"verbose":true,"v":true,"quiet":false,"q":false,"version":false,"V":false,"help":false,"h":false,"c":"./config.json","C":null}
  verbose loading module 'moment' available in locals as 'moment'
  silly loading module: moment
/usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:837
        if (fn === null) throw new Error("Callback was already called.");
                         ^

Error: Callback was already called.
    at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:837:32
    at /usr/lib/node_modules/wintersmith/lib/core/utils.js:48:18
    at nextTask (/usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:5070:14)
    at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:5064:13
    at apply (/usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:21:25)
    at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:56:12
    at /usr/lib/node_modules/wintersmith/node_modules/async/dist/async.js:840:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:416:3)

@antirek
Copy link
Author

antirek commented Jan 16, 2017

Sorry, before use I must do 'npm install' for plugins.

@antirek antirek closed this as completed Jan 16, 2017
@jnordberg
Copy link
Owner

Thanks and nothing to apologise for! I actually think this might be a bug so I'm reopening this. The log should show that a module is missing not an obscure error about a callback being called twice when this happens.

@jnordberg jnordberg reopened this Jan 18, 2017
@adius
Copy link

adius commented Mar 12, 2017

I get this error when I use yarn instead of npm

@dagoss
Copy link

dagoss commented Jun 15, 2017

Same issue as @adius. I got this error when I used Yarn. Deleted the node_modules dir, ran npm install and everything worked fine. With yarn, I ended up with async 2.1.4; with npm, 2.1.5.

@jnordberg
Copy link
Owner

Should have better error reporting now. Tried to reproduce with yarn but worked fine for me. Feel free to open up another issue about it if the problem persists

@adius
Copy link

adius commented Jun 25, 2017

@jnordberg I'm still having this issue! With npm everything works fine ...

@jnordberg
Copy link
Owner

@adius create another issue with steps to reproduce and I'll have a look

@adius
Copy link

adius commented Jun 25, 2017

Sure. Here you go: #327

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

No branches or pull requests

4 participants