GithubHelp home page GithubHelp logo

Comments (14)

krampstudio avatar krampstudio commented on May 28, 2024

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.

Carpetfizz avatar Carpetfizz commented on May 28, 2024

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.

krampstudio avatar krampstudio commented on May 28, 2024

Try to run :
cmd /c node_modules\grunt-jsdoc\node_modules\jsdoc\jsdoc --private --destination doc ./scripts/testdoc2.js

from grunt-jsdoc.

Carpetfizz avatar Carpetfizz commented on May 28, 2024

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.

krampstudio avatar krampstudio commented on May 28, 2024

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.

Carpetfizz avatar Carpetfizz commented on May 28, 2024

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.

krampstudio avatar krampstudio commented on May 28, 2024

Could you paste the error please.

from grunt-jsdoc.

Carpetfizz avatar Carpetfizz commented on May 28, 2024

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.

krampstudio avatar krampstudio commented on May 28, 2024

jsdoc doesn't find the file you try to generate the documentation from

from grunt-jsdoc.

Carpetfizz avatar Carpetfizz commented on May 28, 2024

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.

krampstudio avatar krampstudio commented on May 28, 2024

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.

Carpetfizz avatar Carpetfizz commented on May 28, 2024

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.

krampstudio avatar krampstudio commented on May 28, 2024

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.

Carpetfizz avatar Carpetfizz commented on May 28, 2024

Cool, thanks! Everything is fine now.

from grunt-jsdoc.

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.