Skip to content
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

Closed
Crotery opened this issue Jul 1, 2014 · 3 comments
Closed

yuidoc using grunt-contrib-yuidoc FAILS: has no method 'parsedir' #242

Crotery opened this issue Jul 1, 2014 · 3 comments

Comments

@Crotery
Copy link

Crotery commented Jul 1, 2014

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.

@Crotery
Copy link
Author

Crotery commented Jul 1, 2014

alatar@ogo:~/proj/srs-proto$ node --version
v0.10.28

the packages:

"dependencies": {
"amdefine": "^0.1.0",
"biguint-format": "^0.2.1",
"bluebird": "^2.1.3",
"bower": "^1.3.2",
"chance": "^0.5.5",
"db-migrate": "Crotery/node-db-migrate#v0.6.4.1",
"express": "~3.3.4",
"express-jwt": "790/express-jwt#b1bc15ae5fba295685613afb5b606f117da87ffa",
"flake-idgen": "^0.1.3",
"grunt": "^0.4.4",
"grunt-autoprefixer": "^0.7.2",
"grunt-cli": "^0.1.13",
"grunt-concurrent": "^0.5.0",
"grunt-contrib-compass": "^0.7.2",
"grunt-db-migrate": "^0.2.0",
"grunt-doctor-md": "^0.1.1",
"grunt-ts": "Crotery/grunt-ts",
"jsonwebtoken": "^0.4.0",
"load-grunt-tasks": "^0.4.0",
"mongoose": "^3.8.8",
"nor-pg": "^0.1.8",
"pbkdf2-sha256": "^1.0.1",
"pg": "^3.3.0",
"postmark": "^0.2.5",
"q": "^1.0.1",
"q-io": "^1.11.2",
"requirejs": "^2.1.11",
"shorthash": "0.0.2",
"source-map-support": "^0.2.6",
"sugar": "^1.4.1",
"time-grunt": "^0.3.1",
"typescript": "^1.0.1",
"urlencode": "^0.2.0",
"yuidocjs": "^0.3.50"
},
"engines": {
"node": "0.10.x",
"npm": "1.3.x"
},

@caridy
Copy link
Member

caridy commented Aug 4, 2014

this probably belongs to grunt-contrib-yuidoc repo.

@caridy caridy closed this as completed Aug 4, 2014
@Crotery
Copy link
Author

Crotery commented Aug 5, 2014

Just tested it again, here are debugging screenshots, on v0.3.50
The process:
Step 1. Added two breakpoints, started debug, first one triggered. Look at "this" watch - it is ok:

selection_032

Step 2. Pressed "Contunue" and second breakpoint triggered. Look at "this" watch: it is an Array!

selection_033

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants