Comments (13)
Can you provide a bit more context? Would you mine sharing what your gulpfile and jsdoc config look like?
from gulp-jsdoc3.
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.
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.
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.
Ah, that means there is a syntax error in your JSDoc syntax.
from gulp-jsdoc3.
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.
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.
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.
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.
[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.
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.
@mlucool
my task completed without exceptions if I don't pass the cb in jsdocs3.
Thanks for your support.
from gulp-jsdoc3.
Ok - closing as a no op here
from gulp-jsdoc3.
Related Issues (20)
- gulp-jsdoc3 renaming the output file. HOT 2
- Is there any way to make jsDoc parse more than one .md file ? HOT 4
- wrench.js is deprecated HOT 2
- in windows 7 it's ok,but in linux(including mac), report some errors. HOT 8
- ReferenceError: $ is not defined HOT 16
- Can't change the template HOT 2
- Rewrite Docs in a Watch outputs duplicate content HOT 5
- Bump package version to 1.0.1 HOT 1
- Create redundant documents HOT 1
- Task completed before output files being written HOT 6
- cannot use docdash template HOT 3
- Cannot use config file HOT 6
- mkdirp seems to be used incorrectly HOT 9
- IncludePattern doesn't take effect HOT 2
- Update to support gulp4 HOT 5
- Node.js 12 support HOT 2
- Generated output - security vulnerability on github HOT 3
- Gulp script doesn't produce files HOT 2
- ./layout.tmpl in relation to what?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-jsdoc3.