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

TravisCI - Cannot generate documentation: Callback must be a function #261

Open
yochannah opened this issue Mar 1, 2019 · 0 comments
Open

Comments

@yochannah
Copy link

yochannah commented Mar 1, 2019

I'm getting this fun stacktrace when I run codo on travis, but the same config works fine on my machine, so I presume there's an environment-related issue here but I can't guess what it might be; any ideas?

$ codo --name "imjs"
Cannot generate documentation: Callback must be a function
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
  at maybeCallback (fs.js:129:9)
  at exists (fs.js:197:3)
  at module.exports.Codo.detectName (/home/travis/build/yochannah/imjs/node_modules/codo/src/codo.coffee:272:8)
  at /home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:3853:24
  at replenish (/home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:946:17)
  at /home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:950:9
  at eachOfLimit (/home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:975:24)
  at /home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:980:16
  at eachOf (/home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:1051:5)
  at _parallel (/home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:3852:5)
  at Object.parallelLimit [as parallel] (/home/travis/build/yochannah/imjs/node_modules/async/dist/async.js:3935:5)
  at Function.module.exports.Codo.run (/home/travis/build/yochannah/imjs/node_modules/codo/src/codo.coffee:69:13)
  at Object.<anonymous> (/home/travis/build/yochannah/imjs/node_modules/codo/bin/codo:2:28)
  at Object.<anonymous> (/home/travis/build/yochannah/imjs/node_modules/codo/bin/codo:4:4)
  at Module._compile (internal/modules/cjs/loader.js:689:30)
  at Object.exports.run (/home/travis/build/yochannah/imjs/node_modules/coffee-script/lib/coffee-script/coffee-script.js:119:23)
  at compileScript (/home/travis/build/yochannah/imjs/node_modules/coffee-script/lib/coffee-script/command.js:208:29)
  at compilePath (/home/travis/build/yochannah/imjs/node_modules/coffee-script/lib/coffee-script/command.js:161:14)
  at Object.exports.run (/home/travis/build/yochannah/imjs/node_modules/coffee-script/lib/coffee-script/command.js:96:21)
  at Object.<anonymous> (/home/travis/build/yochannah/imjs/node_modules/coffee-script/bin/coffee:7:41)
  at Module._compile (internal/modules/cjs/loader.js:689:30)
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
  at Module.load (internal/modules/cjs/loader.js:599:32)
  at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
  at Function.Module._load (internal/modules/cjs/loader.js:530:3)
  at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
  at startup (internal/bootstrap/node.js:283:19)
  at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
The command "codo --name "imjs"" exited with 1.

Link to build results: https://travis-ci.org/yochannah/imjs/jobs/500286141#L4059
Link to repo codoopts file: https://github.com/yochannah/imjs/blob/91bc39e33058607d9acc621894ed7a062f6ebd65/.codoopts

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

1 participant