-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yuidoc using grunt-contrib-yuidoc FAILS: has no method 'parsedir' #242
Comments
alatar@ogo:~/proj/srs-proto$ node --version the packages: "dependencies": { |
this probably belongs to grunt-contrib-yuidoc repo. |
Just tested it again, here are debugging screenshots, on v0.3.50 Step 2. Pressed "Contunue" and second breakpoint triggered. Look at "this" watch: it is an Array! Step 3. Removed breakpoints, pressed "Contunue" and got same error. Removed node_modules/yuidocjs and reinstalled from "yuidocjs": "Crotery/yuidoc#v0.3.50.1". With this pull request compile succeeded. |
We can use yuidoc by bash.
But we cannot use it under grunt using grunt-contrib-yuidoc. We've tried to fix the error by ourselves, it seems it is problem with wrong "this".
var self = this removed the error, but compiled docs are empty.
the grunt config:
yuidoc: {
compile: {
name: '<%= pkg.name %>',
description: '<%= pkg.description %>',
version: '<%= pkg.version %>',
url: '<%= pkg.homepage %>',
options: {
paths: 'node_modules/',
outdir: 'doc',
}
}
}
the log:
Running "yuidoc:compile" (yuidoc) task
[D] Task source: /home/alatar/proj/srs-proto/node_modules/grunt-contrib-yuidoc/tasks/yuidoc.js
Verifying property yuidoc.compile exists in config...OK
File: [no files]
warn: (loader): isCSSLoaded was skipped for app-transitions-css
warn: (loader): isCSSLoaded was skipped for cssbase
warn: (loader): isCSSLoaded was skipped for cssbase-context
warn: (loader): isCSSLoaded was skipped for cssbutton
warn: (loader): isCSSLoaded was skipped for cssfonts
warn: (loader): isCSSLoaded was skipped for cssfonts-context
warn: (loader): isCSSLoaded was skipped for cssgrids
warn: (loader): isCSSLoaded was skipped for cssgrids-base
warn: (loader): isCSSLoaded was skipped for cssgrids-responsive
warn: (loader): isCSSLoaded was skipped for cssgrids-units
warn: (loader): isCSSLoaded was skipped for cssnormalize
warn: (loader): isCSSLoaded was skipped for cssnormalize-context
warn: (loader): isCSSLoaded was skipped for cssreset
warn: (loader): isCSSLoaded was skipped for cssreset-context
info: (yui): Using loader to expand dependencies
info: (yui): Modules missing: utils,oop,attribute-core,event-custom-base,event-custom-complex,attribute-observable,attribute-extras,attribute-base,base-core,base-observable,base-base,json-stringify,docparser,yuidoc,parallel,handlebars-base,handlebars-compiler,doc-builder,docview,files,help,options,server,project, 24
info: (yui): Using Loader
info: (loader): public insert() , utils,oop,attribute-core,event-custom-base,event-custom-complex,attribute-observable,attribute-extras,attribute-base,base-core,base-observable,base-base,json-stringify,docparser,yuidoc,parallel,handlebars-base,handlebars-compiler,doc-builder,docview,files,help,options,server,project
info: (loader): private _insert() , yui_3_14_1_1_1404199891164_1
info: (loader): Loading JS modules
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/utils.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/utils.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/oop/oop-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/oop/oop-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-core/attribute-core-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-core/attribute-core-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/event-custom-base/event-custom-base-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/event-custom-base/event-custom-base-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/event-custom-complex/event-custom-complex-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/event-custom-complex/event-custom-complex-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-observable/attribute-observable-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-observable/attribute-observable-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-extras/attribute-extras-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-extras/attribute-extras-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-base/attribute-base-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/attribute-base/attribute-base-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/base-core/base-core-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/base-core/base-core-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/base-observable/base-observable-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/base-observable/base-observable-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/base-base/base-base-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/base-base/base-base-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/json-stringify/json-stringify-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/json-stringify/json-stringify-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/docparser.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/docparser.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/yuidoc.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/yuidoc.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/parallel/parallel-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/parallel/parallel-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/handlebars-base/handlebars-base-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/handlebars-base/handlebars-base-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/handlebars-compiler/handlebars-compiler-debug.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/handlebars-compiler/handlebars-compiler-debug.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/builder.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/builder.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/docview.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/docview.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/files.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/files.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/help.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/help.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/options.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/options.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/server.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/server.js
info: (get): URL: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/project.js
info: (get): After Load: /home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/project.js
info: (loader): Loader actions complete!
info: (loader): Firing final Loader callback!
info: (loader): loader finishing: success, yui_3_14_1_1_1404199891164_1, utils,yui-base,oop,attribute-core,event-custom-base,event-custom-complex,attribute-observable,attribute-extras,attribute-base,base-core,base-observable,base-base,json-stringify,docparser,yuidoc,parallel,handlebars-base,handlebars-compiler,doc-builder,docview,files,help,options,server,project
Options: quiet, paths="node_modules/", outdir="doc/yui"
Warning: Object node_modules/ has no method 'parsedir' Use --force to continue.
TypeError: Object node_modules/ has no method 'parsedir'
at Array. (/home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/yuidoc.js:145:22)
at arrayEach (/home/alatar/proj/srs-proto/node_modules/sugar/release/sugar-full.development.js:1174:20)
at Array.extend.each (/home/alatar/proj/srs-proto/node_modules/sugar/release/sugar-full.development.js:2133:7)
at dispatch (/home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/oop/oop-debug.js:45:26)
at Y.each (/home/alatar/proj/srs-proto/node_modules/yuidocjs/node_modules/yui/oop/oop-debug.js:238:12)
at Object.Y.YUIDoc.walk (/home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/yuidoc.js:144:15)
at Object.Y.YUIDoc.run (/home/alatar/proj/srs-proto/node_modules/yuidocjs/lib/yuidoc.js:391:18)
at Object. (/home/alatar/proj/srs-proto/node_modules/grunt-contrib-yuidoc/tasks/yuidoc.js:57:38)
at Object. (/home/alatar/proj/srs-proto/node_modules/grunt/lib/grunt/task.js:264:15)
at Object.thisTask.fn (/home/alatar/proj/srs-proto/node_modules/grunt/lib/grunt/task.js:82:16)
Aborted due to warnings.
The text was updated successfully, but these errors were encountered: