GithubHelp home page GithubHelp logo

Comments (13)

AndrewGuenther avatar AndrewGuenther commented on July 22, 2024

Can you provide a bit more context? Would you mine sharing what your gulpfile and jsdoc config look like?

from gulp-jsdoc3.

MandeepKalkhanda avatar MandeepKalkhanda commented on July 22, 2024

@AndrewGuenther

I am using the simplest gulp task given in npm package help.
Below is the gulp file.

return gulp.src([${sourceDir}/js/modules/**/*.js], {read: false})
.pipe(plugins.jsdoc3(cb));

Not using jsDoc config.

from gulp-jsdoc3.

AndrewGuenther avatar AndrewGuenther commented on July 22, 2024

Do you get this error consistently? Is there any other error output?

This means that JSDoc itself is failing somewhere, so I'm surprised that there isn't any other output.

from gulp-jsdoc3.

MandeepKalkhanda avatar MandeepKalkhanda commented on July 22, 2024

@AndrewGuenther

Yes I am getting this consistently there is some output error but that some to be related to Commenting of the method.

Below is the one.
[01:59:40] ERROR: Unable to parse a tag's type expression for source file ...file_path
setScalingValue - Setter for scaling.": Expected "|" but "-" found.M.{

from gulp-jsdoc3.

AndrewGuenther avatar AndrewGuenther commented on July 22, 2024

Ah, that means there is a syntax error in your JSDoc syntax.

from gulp-jsdoc3.

MandeepKalkhanda avatar MandeepKalkhanda commented on July 22, 2024

@AndrewGuenther

Even after removing all syntax errors, exception is thrown.

[02:06:38] Error: task completion callback called too many times
at finish (..\node_modules
orchestrator\lib\runTask.js:15:10)
at cb (..\orch
estrator\lib\runTask.js:29:3)
at tryCatcher (..\node_modu
les\bluebird\js\release\util.js:16:23)
at Promise.successAdapter [as _fulfillmentHandler0] (..\node_modules\bluebird\js\release\nodeify.js:22:30)
at Promise._settlePromise (..\node_modules\bluebird\js\release\promise.js:564:21)
at Promise._settlePromise0 (..\node_modules\bluebird\js\release\promise.js:612:10)
at Promise._settlePromises (..\node_modules\bluebird\js\release\promise.js:691:18)
at Async._drainQueue (..\no
de_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (..\n
ode_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (..\node_modules\bluebird\js\release\async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)

from gulp-jsdoc3.

AndrewGuenther avatar AndrewGuenther commented on July 22, 2024

What is the callback you're passing in in your gulpfile? You're not using gulp.dest anywhere are you?

@mlucool, you got any ideas on this one?

from gulp-jsdoc3.

MandeepKalkhanda avatar MandeepKalkhanda commented on July 22, 2024

function generateDocs(cb) {
return gulp.src([${sourceDir}/js/modules/**/*.js], {read: false})
.pipe(plugins.jsdoc3(cb));
}

gulp.task('docs.generate', generateDocs);

this is the complete gulp task file I am using. Out is generated in docs/gen folder.

from gulp-jsdoc3.

mlucool avatar mlucool commented on July 22, 2024

Nothing screams out. Can you try to reproduce with something you can share? Or maybe share the output of running it with the environment variable: DEBUG='gulp-jsdoc3'

from gulp-jsdoc3.

MandeepKalkhanda avatar MandeepKalkhanda commented on July 22, 2024

[22:02:53] Starting 'docs.generate'...
gulp-jsdoc3 Config:
{
"tags": {
"allowUnknownTags": true
},
"opts": {
"destination": "./docs/gen"
},
"plugins": [
"plugins/markdown"
],
"templates": {
"cleverLinks": false,
"monospaceLinks": false,
"default": {
"outputSourceFiles": true
},
"path": "ink-docstrap",
"theme": "cerulean",
"navType": "vertical",
"linenums": true,
"dateFormat": "MMMM Do YYYY, h:mm:ss a"
}
} +0ms
gulp-jsdoc3 Documenting files: list of project js files... +62ms
[22:02:53] Finished 'docs.generate' after 176 ms
gulp-jsdoc3 ..\node_modules\j
sdoc\jsdoc.js -c ..\AppData\Local\Temp\tmp-4680prNmyCQ321gH.tmp -t
..\node_modules\ink-docstrap\t
emplate +31ms
[22:03:00] Documented 138 files!
[22:03:00] 'docs.generate' errored after 6.67 s
[22:03:00] Error: task completion callback called too many times
at finish (...\node_modules
orchestrator\lib\runTask.js:15:10)
at cb (...\node_modules\orch
estrator\lib\runTask.js:29:3)
at tryCatcher (...\node_modu
les\bluebird\js\release\util.js:16:23)
at Promise.successAdapter [as _fulfillmentHandler0] (...\node_modules\bluebird\js\release\nodeify.js:22:30)
at Promise._settlePromise (...\node_modules\bluebird\js\release\promise.js:564:21)
at Promise._settlePromise0 (...\node_modules\bluebird\js\release\promise.js:612:10)
at Promise._settlePromises (..\node_modules\bluebird\js\release\promise.js:691:18)
at Async._drainQueue (...\no
de_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (...\n
ode_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (...\node_modules\bluebird\js\release\async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)

...>

Output with DEBUG.

from gulp-jsdoc3.

mlucool avatar mlucool commented on July 22, 2024

This means the cb you pass in is getting called more than once. From the snippit you gave, it seems that nothing you are doing would cause this.

Can you edit node_modules/gulp-jsdoc3/dist/gulp-jsdoc.js: as follows:

            debug('Documenting files: ' + jsdocConfigClone.source.include.join(' '));
            _fs2.default.writeFile(tmpobj.name, JSON.stringify(jsdocConfigClone), 'utf8', function (err) {
+            debug(JSON.stringify(jsdocConfigClone))

Then rerun with debug and use the output with the above command that was printed:

 ..\node_modules\jsdoc\jsdoc.js -c ..\AppData\Local\Temp\tmp-4680prNmyCQ321gH.tmp -t ..\node_modules\ink-docstrap\template

Where you would sub a saved version of the new output for ..\AppData\Local\Temp\tmp-4680prNmyCQ321gH.tmp

Basically, my goal is to check how this runs without the gulp plugin.

from gulp-jsdoc3.

MandeepKalkhanda avatar MandeepKalkhanda commented on July 22, 2024

@mlucool
my task completed without exceptions if I don't pass the cb in jsdocs3.

Thanks for your support.

from gulp-jsdoc3.

mlucool avatar mlucool commented on July 22, 2024

Ok - closing as a no op here

from gulp-jsdoc3.

Related Issues (20)

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.