Comments (14)
could you post the result of grunt jsdoc --debug
and also execute the given jsdoc cmd to let me know if it succeed.
from grunt-jsdoc.
Here's the debug. I'm not exactly sure on what you mean by the given jsdoc cmd?
C:\Users\Ajay\Desktop\GruntTut>grunt jsdoc --debug
Running "jsdoc:dist" (jsdoc) task
[D] Task source: C:\Users\Ajay\Desktop\GruntTut\node_modules\grunt-jsdoc\tasks\j
sdoc-plugin.js
[D] { private: true, destination: 'doc' }
[D] nodePath
[D] look up node_modules/jsdoc/jsdoc at node_modules/jsdoc/jsdoc
[D] look up node_modules/jsdoc/jsdoc at node_modules/grunt-jsdoc/
[D] look up node_modules/jsdoc/jsdoc at node_modules/grunt-jsdoc/node_modules/js
doc/jsdoc
[D] JAVA_HOME : C:\Program Files\Java\jre7
[D] jsdoc found at : node_modules\grunt-jsdoc\node_modules\jsdoc\jsdoc
[D] Reading option: private
[D] Reading option: destination
[D] > doc
[D] Running : cmd /c node_modules\grunt-jsdoc\node_modules\jsdoc\jsdoc --private
--destination doc ./scripts/testdoc2.js
Fatal error: spawn ENOENT
from grunt-jsdoc.
Try to run :
cmd /c node_modules\grunt-jsdoc\node_modules\jsdoc\jsdoc --private --destination doc ./scripts/testdoc2.js
from grunt-jsdoc.
I get this:
C:\Users\Ajay\Desktop\GruntTut\node_modules\grunt-jsdoc\node_modules\jsdoc>jsdoc
--private --destination doc ./scripts/testdoc2.js
js: "C:/Users/Ajay/Desktop/GruntTut/node_modules/grunt-jsdoc/node_modules/jsdoc/
jsdoc.js", line 306: exception from uncaught JavaScript throw: Error: ENOENT, no
such file or directory './scripts/testdoc2.js'
If it helps, this is the absolute filepath of my file: C:\Users\Ajay\Desktop\GruntTut\scripts\testdoc2.js
from grunt-jsdoc.
copy the full command in your cmd.exe with the current directory at the root of your project and let me know what's the result (an error, the doc is created, etc.).
from grunt-jsdoc.
The result is that there is an error and a "doc" folder that is created at the root. But the folder is empty.
from grunt-jsdoc.
Could you paste the error please.
from grunt-jsdoc.
That is the error:
js: "C:/Users/Ajay/Desktop/GruntTut/node_modules/grunt-jsdoc/node_modules/jsdoc/
jsdoc.js", line 306: exception from uncaught JavaScript throw: Error: ENOENT, no
such file or directory './scripts/testdoc2.js'
from grunt-jsdoc.
jsdoc doesn't find the file you try to generate the documentation from
from grunt-jsdoc.
Do you have a suggestion on how I should write the pattern in the src:
option in my gruntfile?
My file is in: C:\Users\Ajay\Desktop\GruntTut\scripts\testdoc2.js
from grunt-jsdoc.
your pattern is right.
did you run the command cmd /c node_modules\grunt-jsdoc\node_modules\jsdoc\jsdoc --private --destination doc ./scripts/testdoc2.js
from the folder C:\Users\Ajay\Desktop\GruntTut
from grunt-jsdoc.
oh! That was my mistake, I was running it from C:. Thank you very much for your help! Also, do I have to use that command from now on instead of just grunt jsdoc
?
from grunt-jsdoc.
No, the command I ask you to run is the command the plugin execute to call jsdoc. Continue to use grunt jsdoc
from grunt-jsdoc.
Cool, thanks! Everything is fine now.
from grunt-jsdoc.
Related Issues (20)
- Package Deprecated HOT 1
- deprecated [email protected] HOT 1
- Task Events HOT 5
- No source files defined HOT 2
- Event on compilation error HOT 2
- Getting command line too long while running grunt jsdocs as i am having large set of file, i also checked #51,#59 but not able to resolved. HOT 8
- Destination path not working in Grunt HOT 2
- Not adding the README.md file (was working in old versions)
- JSDoc is now in version 3.4.1 which resolves the Github dependency HOT 4
- Include several md files
- Include symbols marked with @private with the "-p" cli argument HOT 3
- JSDoc dependency breaking build HOT 5
- Copying files broken by Node v8.5.0 HOT 2
- Upgrade to jsdoc 3.5.5 HOT 3
- transitive dependency is insecure HOT 1
- jsdoc not built HOT 7
- Help!!! Why I get syntaxError when run "grunt jsdoc" HOT 1
- Security warning on 'npm audit' due to old dependency marked HOT 1
- grunt-jsdoc duplicate all classes, but command line is Ok HOT 5
- Install not working since months HOT 8
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 grunt-jsdoc.