gemini-testing / gemini-gui

GUI for gemini
MIT License
69 stars 18 forks source link

Wrap path.resolve into function to fix losing argument #52

Closed Nitive closed 8 years ago

Nitive commented 8 years ago

Передача опции --config вызывает ошибку. Не вполне понятно, почему, path.resolve, судя по исходникам, не завязана на this.

$ ./node_modules/.bin/gemini-gui --config .gemini-bs.yml test modules/**/__tests__/**/*-gemini.js
path.js:8
    throw new TypeError('Path must be a string. Received ' +
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:8:11)
    at posix.resolve (path.js:426:5)
    at Command.<anonymous> (/Users/nitive/Work/cian-manager/frontend/node_modules/gemini-gui/node_modules/commander/index.js:395:35)
    at emitOne (events.js:77:13)
    at Command.emit (events.js:169:7)
    at Command.parseOptions (/Users/nitive/Work/cian-manager/frontend/node_modules/gemini-gui/node_modules/commander/index.js:690:14)
    at Command.parse (/Users/nitive/Work/cian-manager/frontend/node_modules/gemini-gui/node_modules/commander/index.js:455:21)
    at Object.exports.run (/Users/nitive/Work/cian-manager/frontend/node_modules/gemini-gui/lib/cli.js:19:10)
    at Object.<anonymous> (/Users/nitive/Work/cian-manager/frontend/node_modules/gemini-gui/bin/gemini-gui:3:23)
    at Module._compile (module.js:409:26)

node v4.4.2 npm v2.15.0

j0tunn commented 8 years ago

closing in favor of https://github.com/gemini-testing/gemini-gui/pull/56