Git Product home page Git Product logo

adventure-map's People

Contributors

davidmason avatar timoxley avatar weilu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adventure-map's Issues

Generated adventures print a stacktrace at the end of problem printout

I am getting an exception from the initial boilerplate code that adventure-map generates. It looks like it is triggered from a few levels down the dependency tree.

I am using Fedora 20, so I suspect it may be a platform-specific issue. Can someone have a go at reproducing this on a different OS?

To reproduce:

  1. run npm init -f
  2. run npm install --save adventure-map
  3. run adventure-map init
  4. add name+path pair to package.json: "exercises": { "Getting Started": "exercises/example" }
  5. run ./index.js
  6. select "Getting Started" and press Enter

Generates the following output


    ES5-WORKSHOP                                                       
    ------------                                                       
    Getting Started                                                    
    -----------------                                                  
    HELP                                                               
    EXIT                                                               



Lengthy introduction of concepts up here.

-------------------------------------------------------------------------------

# Task

Concise description of task.

## Example

    // example of usage

## Arguments

  * arg1: Description including data type

## Conditions

  * Do and
  * Do not

## Hints

  * Remember to give hints

## Resources

  * http://google.com

/home/damason/src/davidmason/es5-workshop


tty.js:65
  this._handle.setRawMode(flag);
               ^
TypeError: Cannot call method 'setRawMode' of null
    at ReadStream.setRawMode (tty.js:65:16)
    at Interface._setRawMode (readline.js:165:23)
    at new Interface (readline.js:126:10)
    at Object.exports.createInterface (readline.js:39:10)
    at Object.Interface.createInterface (/home/damason/src/davidmason/es5-workshop/node_modules/adventure-map/node_modules/inquirer/node_modules/readline2/index.js:38:21)
    at PromptUI.UI (/home/damason/src/davidmason/es5-workshop/node_modules/adventure-map/node_modules/inquirer/lib/ui/baseUI.js:23:40)
    at new PromptUI (/home/damason/src/davidmason/es5-workshop/node_modules/adventure-map/node_modules/inquirer/lib/ui/prompt.js:26:8)
    at Object.inquirer.prompt (/home/damason/src/davidmason/es5-workshop/node_modules/adventure-map/node_modules/inquirer/lib/inquirer.js:39:16)
    at setup (/home/damason/src/davidmason/es5-workshop/node_modules/adventure-map/index.js:66:14)
    at null._onTimeout (/home/damason/src/davidmason/es5-workshop/node_modules/adventure-map/index.js:43:9)

stdout does not close after help, exit or instruction output

This meas the user has to press Enter to get back to the command line.

This is an inadvertent effect of #5. I have not yet found a good way to override the autoclose behaviour for separate commands so that autoclose can be prevented just when instructions are printed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.