paiq / blackcoffee

CoffeeScript + hygienic macros
MIT License
105 stars 9 forks source link

Repl breaks #17

Closed randallb closed 10 years ago

randallb commented 10 years ago

Just installed blackcoffee to start playing with macros... but when i try to launch the repl I get this error.

coffee> /Users/randall/.nvm/v0.11.13/lib/node_modules/blackcoffee/lib/coffee-script/repl.js:47
      initialPrompt: repl.prompt.replace(/^[^> ]*/, function(x) {
                                 ^
TypeError: undefined is not a function
  at addMultilineHandler (/Users/randall/.nvm/v0.11.13/lib/node_modules/blackcoffee/lib/coffee-script/repl.js:47:34)
  at Object.module.exports.start (/Users/randall/.nvm/v0.11.13/lib/node_modules/blackcoffee/lib/coffee-script/repl.js:154:7)
  at Object.exports.run (/Users/randall/.nvm/v0.11.13/lib/node_modules/blackcoffee/lib/coffee-script/command.js:79:32)
  at Object.<anonymous> (/Users/randall/.nvm/v0.11.13/lib/node_modules/blackcoffee/bin/coffee:7:41)
  at Module._compile (module.js:449:26)
  at Object.Module._extensions..js (module.js:467:10)
  at Module.load (module.js:349:32)
  at Function.Module._load (module.js:305:12)
  at Function.Module.runMain (module.js:490:10)
  at startup (node.js:124:16)
  at node.js:807:3
randallb commented 10 years ago

The issue is with node 0.11.x, not blackcoffee.

MaxPleaner commented 7 years ago

I'm getting TypeError: repl.prompt.replace is not a function with Node 7.9.0