timoxley / adventure-map Goto Github PK
View Code? Open in Web Editor NEWSimple exercise loader & generators for substack/adventure.
License: MIT License
Simple exercise loader & generators for substack/adventure.
License: MIT License
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?
npm init -f
npm install --save adventure-map
adventure-map init
"exercises": { "Getting Started": "exercises/example" }
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)
Even when I run verify
or run
on some exercises. Haven't nailed down the cause, would appreciate help.
/tmp 22:21:47
$ clijs run index.js
/private/tmp
? We're about to populate the above directory with some files needed for the
exercises. If they've already been created then don't worry, they won't be
replaced. Continue? (Y/n)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.