Skip to content

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

Description

@yochannah

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions