{"action":"created","issue":{"url":"https://api.github.com/repos/thlorenz/replpad/issues/25","repository_url":"https://api.github.com/repos/thlorenz/replpad","labels_url":"https://api.github.com/repos/thlorenz/replpad/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/thlorenz/replpad/issues/25/comments","events_url":"https://api.github.com/repos/thlorenz/replpad/issues/25/events","html_url":"https://github.com/thlorenz/replpad/pull/25","id":124849684,"number":25,"title":"dox on https","user":{"login":"jbolila","id":728044,"avatar_url":"https://avatars.githubusercontent.com/u/728044?v=3","gravatar_id":"","url":"https://api.github.com/users/jbolila","html_url":"https://github.com/jbolila","followers_url":"https://api.github.com/users/jbolila/followers","following_url":"https://api.github.com/users/jbolila/following{/other_user}","gists_url":"https://api.github.com/users/jbolila/gists{/gist_id}","starred_url":"https://api.github.com/users/jbolila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbolila/subscriptions","organizations_url":"https://api.github.com/users/jbolila/orgs","repos_url":"https://api.github.com/users/jbolila/repos","events_url":"https://api.github.com/users/jbolila/events{/privacy}","received_events_url":"https://api.github.com/users/jbolila/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T22:03:53Z","updated_at":"2016-03-23T20:48:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thlorenz/replpad/pulls/25","html_url":"https://github.com/thlorenz/replpad/pull/25","diff_url":"https://github.com/thlorenz/replpad/pull/25.diff","patch_url":"https://github.com/thlorenz/replpad/pull/25.patch"},"body":"Tested on 0.12, 4.2.4 and 5.3.0. One test `test/lib/findexquire.js` is failing, nothing related with this changes."},"comment":{"url":"https://api.github.com/repos/thlorenz/replpad/issues/comments/200538186","html_url":"https://github.com/thlorenz/replpad/pull/25#issuecomment-200538186","issue_url":"https://api.github.com/repos/thlorenz/replpad/issues/25","id":200538186,"user":{"login":"thlorenz","id":192891,"avatar_url":"https://avatars.githubusercontent.com/u/192891?v=3","gravatar_id":"","url":"https://api.github.com/users/thlorenz","html_url":"https://github.com/thlorenz","followers_url":"https://api.github.com/users/thlorenz/followers","following_url":"https://api.github.com/users/thlorenz/following{/other_user}","gists_url":"https://api.github.com/users/thlorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/thlorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thlorenz/subscriptions","organizations_url":"https://api.github.com/users/thlorenz/orgs","repos_url":"https://api.github.com/users/thlorenz/repos","events_url":"https://api.github.com/users/thlorenz/events{/privacy}","received_events_url":"https://api.github.com/users/thlorenz/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T20:48:13Z","updated_at":"2016-03-23T20:48:13Z","body":"Got a bunch of failing tests:\r\n\r\n```\r\n\r\n> replpad@0.14.0 test /Volumes/d/dev/js/projects/replpad\r\n> if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi\r\n\r\n\r\n> replpad@0.14.0 test-all /Volumes/d/dev/js/projects/replpad\r\n> npm run test-main && npm run test-0.8 && npm run test-0.10\r\n\r\n\r\n> replpad@0.14.0 test-main /Volumes/d/dev/js/projects/replpad\r\n> tap test/\r\n\r\nok test/complete-append.js ............................ 21/21\r\nok test/fixtures/foo.js ................................. 1/1\r\nok test/fixtures/function-with-jsdoc.js ................. 1/1\r\nok test/fixtures/function-without-comment.js ............ 1/1\r\nok test/fixtures/same-function-with-jsdoc.js ............ 1/1\r\nok test/fixtures/same-function-without-comment.js ....... 1/1\r\nok test/lib/builtins/src.js ........................... 11/11\r\nnot ok test/lib/dox/core/retrieve.js .................... 0/1\r\n    Command: \"/usr/local/bin/nsolid retrieve.js\"\r\n    TAP version 13\r\n    not ok 1 test/lib/dox/core/retrieve.js\r\n      ---\r\n        exit:    1\r\n        stderr:  |\r\n          /Volumes/d/dev/js/projects/replpad/test/lib/dox/core/retrieve.js:13\r\n              t.equal(doc.modules[0].name, 'fs', 'returns doc for file module')\r\n                         ^\r\n          \r\n          TypeError: Cannot read property 'modules' of undefined\r\n              at /Volumes/d/dev/js/projects/replpad/test/lib/dox/core/retrieve.js:13:16\r\n              at Request._callback (/Volumes/d/dev/js/projects/replpad/lib/dox/core/retrieve.js:16:40)\r\n              at Request.self.callback (/Volumes/d/dev/js/projects/replpad/node_modules/request/main.js:122:22)\r\n              at emitTwo (events.js:87:13)\r\n              at Request.emit (events.js:172:7)\r\n              at Request.<anonymous> (/Volumes/d/dev/js/projects/replpad/node_modules/request/main.js:661:16)\r\n              at emitOne (events.js:82:20)\r\n              at Request.emit (events.js:169:7)\r\n              at IncomingMessage.<anonymous> (/Volumes/d/dev/js/projects/replpad/node_modules/request/main.js:623:14)\r\n              at emitNone (events.js:72:20)\r\n        command: \"/usr/local/bin/nsolid retrieve.js\"\r\n      ...\r\n    \r\n    1..1\r\n    # tests 1\r\n    # fail  1\r\n    \r\nnot ok test/lib/dox/pack/get-packinfo.js ................ 8/9\r\n    Command: \"/usr/local/bin/nsolid get-packinfo.js\"\r\n    TAP version 13\r\n    ok 1 no error\r\n    ok 2 browseable github url\r\n    not ok 3 readme filename\r\n      ---\r\n        file:   fs.js\r\n        line:   220\r\n        column: 19\r\n        stack:  \r\n          - |\r\n            getCaller (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-assert.js:418:17)\r\n          - |\r\n            assert (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-assert.js:21:16)\r\n          - |\r\n            Function.equal (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-assert.js:162:10)\r\n          - |\r\n            Test._testAssert [as equal] (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-test.js:87:16)\r\n          - |\r\n            /Volumes/d/dev/js/projects/replpad/test/lib/dox/pack/get-packinfo.js:19:7\r\n          - |\r\n            /Volumes/d/dev/js/projects/replpad/test/lib/dox/pack/get-packinfo.js:11:5\r\n          - |\r\n            /Volumes/d/dev/js/projects/replpad/node_modules/find-parent-dir/index.js:16:26\r\n          - |\r\n            FSReqWrap.cb [as oncomplete] (fs.js:220:19)\r\n        found:  |\r\n          # cardinal [![Build Status](https://secure.travis-ci.org/thlorenz/cardinal.png)](http://travis-ci.org/thlorenz/cardinal)\r\n          \r\n          [![NPM](https://nodei.co/npm/cardinal.png?downloads=true&stars=true)](https://nodei.co/npm/cardinal/)\r\n          \r\n          **car·di·nal** *(kärdn-l, kärdnl)* - crested thick-billed North American finch having bright red plumage in the male.\r\n          \r\n          ![screenshot](https://github.com/thlorenz/cardinal/raw/master/assets/screen-shot.png)\r\n          \r\n          ## Features\r\n          \r\n          - highlights JavaScript code with ANSI colors to improve terminal output\r\n          - theming support, see [custom color themes](https://github.com/thlorenz/cardinal/tree/master/themes)\r\n          - optionally print line numbers\r\n          - API and command line interface (`cdl`)\r\n          - `.cardinalrc` config to customize settings\r\n          - supports UNIX pipes\r\n          \r\n          ***\r\n          \r\n          **Table of Contents**  *generated with [DocToc](http://doctoc.herokuapp.com/)*\r\n          \r\n          - [Installation](#installation)\r\n            - [As library](#as-library)\r\n            - [As Commandline Tool](#as-commandline-tool)\r\n          - [Commandline](#commandline)\r\n            - [Highlight a file](#highlight-a-file)\r\n            - [As part of a UNIX pipe](#as-part-of-a-unix-pipe)\r\n            - [Theme](#theme)\r\n          - [API](#api)\r\n            - [*highlight(code[, opts])*](#highlightcode-opts)\r\n            - [*highlightFileSync(fullPath[, opts])*](#highlightfilesyncfullpath-opts)\r\n            - [*highlightFile(fullPath[, opts], callback)*](#highlightfilefullpath-opts-callback)\r\n            - [opts](#opts)\r\n          - [Examples ([*browse*](https://github.com/thlorenz/cardinal/tree/master/examples))](#examples-[browse]https://githubcom/thlorenz/cardinal/tree/master/examples)\r\n          \r\n          \r\n          ## Installation\r\n          \r\n          ### As library\r\n          \r\n              npm install cardinal\r\n          \r\n          ### As Commandline Tool\r\n          \r\n              [sudo] npm install -g cardinal\r\n          \r\n          **Note:** \r\n          \r\n          When installed globally, cardinal exposes itself as the `cdl` command.\r\n          \r\n          ## Commandline\r\n          \r\n          ### Highlight a file\r\n          \r\n              cdl <file.js> [options]\r\n          \r\n          **options**:\r\n            - `--nonum`: turns off line number printing (relevant if it is turned on inside `~/.cardinalrc`\r\n          \r\n          ### As part of a UNIX pipe\r\n          \r\n              cat file.js | grep console | cdl\r\n          \r\n          **Note:**\r\n          \r\n          Not all code lines may be parsable JavaScript. In these cases the line is printed to the terminal without\r\n          highlighting it.\r\n          \r\n          ### Theme\r\n          \r\n          The default theme will be used for highlighting.\r\n          \r\n          To use a different theme, include a `.cardinalrc` file in your `HOME` directory.\r\n          \r\n          This is a JSON file of the following form:\r\n          \r\n          ```json\r\n          {\r\n            \"theme\": \"hide-semicolons\",\r\n            \"linenos\": true|false\r\n          }\r\n          ```\r\n          \r\n          - `theme` can be the name of any of the [built-in themes](https://github.com/thlorenz/cardinal/tree/master/themes) or the\r\n          full path to a custom theme anywhere on your computer.\r\n          - linenos toggles line number printing\r\n          \r\n          ## API\r\n          \r\n          ### *highlight(code[, opts])*\r\n          \r\n          - returns the highlighted version of the passed code ({String}) or throws an error if it was not able to parse it\r\n          - opts (see below)\r\n          \r\n          ### *highlightFileSync(fullPath[, opts])*\r\n          \r\n          - returns the highlighted version of the file whose fullPath ({String}) was passed or throws an error if it was not able\r\n            to parse it\r\n          - opts (see below)\r\n          \r\n          ### *highlightFile(fullPath[, opts], callback)*\r\n          \r\n          - calls back with the highlighted version of the file whose fullPath ({String}) was passed or with an error if it was not able\r\n            to parse it\r\n          - opts (see below)\r\n          - `callback` ({Function}) has the following signature: `function (err, highlighted) { .. }`\r\n          \r\n          ### opts\r\n          \r\n          opts is an {Object} with the following properties:\r\n          \r\n          - `theme` {Object} is used to optionally override the theme used to highlight\r\n          - `linenos` {Boolean} if `true` line numbers are included in the highlighted code\r\n          - `firstline` {Integer} sets line number of the first line when line numbers are printed\r\n          - `json` {Boolean} if `true` highlights JSON in addition to JavaScript (`true` by default if file extension is `.json`)\r\n          \r\n          ## Examples ([*browse*](https://github.com/thlorenz/cardinal/tree/master/examples))\r\n          \r\n          - [sample .cardinalrc](https://github.com/thlorenz/cardinal/blob/master/examples/.cardinalrc)\r\n          - [highlighting a code snippet](https://github.com/thlorenz/cardinal/blob/master/examples/highlight-string.js) via\r\n            ***highlight()***\r\n          - [file that highlights itself](https://github.com/thlorenz/cardinal/blob/master/examples/highlight-self.js) via\r\n            ***highlightFile()*** including line numbers\r\n          - [file that highlights itself hiding all\r\n            semicolons](https://github.com/thlorenz/cardinal/blob/master/examples/highlight-self-hide-semicolons.js) via\r\n            ***highlightFileSync()***\r\n          \r\n          \r\n          \r\n          \r\n          [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/thlorenz/cardinal/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\r\n        wanted: README.md\r\n        diff:   |\r\n          FOUND:  # cardinal [![Build Status](https://secu\r\n          WANTED: README.md\r\n                  ^ (at position = 0)\r\n      ...\r\n    ok 4 readme string\r\n    ok 5 no error\r\n    ok 6 homepage\r\n    ok 7 browseable github url\r\n    ok 8 readme string\r\n    ok 9 test/lib/dox/pack/get-packinfo.js\r\n    \r\n    1..9\r\n    # tests 9\r\n    # pass  8\r\n    # fail  1\r\n    \r\nnot ok test/lib/findexquire.js .......................... 6/7\r\n    Command: \"/usr/local/bin/nsolid findexquire.js\"\r\n    TAP version 13\r\n    ok 1 does not find escodegen.generate right away\r\n    ok 2 finds escodegen.generate after first pass\r\n    ok 3 does not find sourcemap.SourceMapConsumer yet\r\n    not ok 4 finds sourcemap.SourceMapConsumer after second pass\r\n      ---\r\n        file:   /Volumes/d/dev/js/projects/replpad/test/lib/findexquire.js\r\n        line:   36\r\n        column: 7\r\n        stack:  \r\n          - |\r\n            getCaller (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-assert.js:418:17)\r\n          - |\r\n            assert (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-assert.js:21:16)\r\n          - |\r\n            Function.equal (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-assert.js:162:10)\r\n          - |\r\n            Test._testAssert [as equal] (/Volumes/d/dev/js/projects/replpad/node_modules/tap/lib/tap-test.js:87:16)\r\n          - |\r\n            EventEmitter.onsecondpass (/Volumes/d/dev/js/projects/replpad/test/lib/findexquire.js:36:7)\r\n          - |\r\n            emitOne (events.js:77:13)\r\n          - |\r\n            EventEmitter.emit (events.js:169:7)\r\n          - |\r\n            /Volumes/d/dev/js/projects/replpad/lib/findexquire.js:82:18\r\n          - |\r\n            /Volumes/d/dev/js/projects/replpad/lib/findexquire.js:35:5\r\n          - |\r\n            ChildProcess.handleMessage (/Volumes/d/dev/js/projects/replpad/node_modules/findex/lib/fork.js:30:5)\r\n        found:  2\r\n        wanted: 1\r\n      ...\r\n    ok 5 correctly resolves installed module\r\n    ok 6 correclty resolves relative module\r\n    ok 7 test/lib/findexquire.js\r\n    \r\n    1..7\r\n    # tests 7\r\n    # pass  6\r\n    # fail  1\r\n    \r\ntotal ................................................. 51/54\r\n\r\nnot ok\r\n```\r\n\r\nI agree that findexquire is most likely unrelated, but the other two seem to be.\r\nCould you please have a look?\r\nThanks"}}