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

Fails on Windows #37

Closed
muxa opened this issue Jun 4, 2013 · 5 comments
Closed

Fails on Windows #37

muxa opened this issue Jun 4, 2013 · 5 comments
Assignees
Labels
Milestone

Comments

@muxa
Copy link
Contributor

muxa commented Jun 4, 2013

I'm using relative paths

        jsdoc : {
            dist : {
                src: ['appv2/**/*.js'], 
                options: {
                    destination: 'doc'
                }
            }
        }

And getting the following error:

E:\Users\md\Documents\Visual Studio 2010\Projects\MyProject>grunt jsdoc
Running "jsdoc:dist" (jsdoc) task
>> An error occurs in jsdoc process:
>> 'E:\Users\md\Documents\Visual' is not recognized as an internal or external c
ommand,
>> operable program or batch file.
Warning: jsdoc failure Use --force to continue.

Aborted due to warnings.
@ghost ghost assigned krampstudio Jun 5, 2013
@krampstudio
Copy link
Owner

I'll see if this is not due to the space characters in the path

@krampstudio
Copy link
Owner

I'm not able to reproduce this error, on windows 7 using the cmd.exe with grunt-jsdoc#0.3.3
Could you post the output of : grunt jsdoc --debug

@muxa
Copy link
Contributor Author

muxa commented Jun 17, 2013

Thanks for looking into this. Here's the output:

E:\Users\md\Documents\Visual Studio 2010\Projects\MyProject\grunt jsdoc --debug
Running "jsdoc:dist" (jsdoc) task
[D] Task source: E:\Users\md\Documents\Visual Studio 2010\Projects\MyProject\node_modules\grunt-jsdoc\tasks\jsdoc-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 (x86)\Java\jre6\bin
[D] jsdoc found at : E:\Users\md\Documents\Visual Studio 2010\Projects\MyProject\node_modules\grunt-jsdoc\node_modules\jsdoc\jsdoc
[D] create destination : doc
[D] Reading option: private
[D] Reading option: destination
[D]                 > doc
[D] Running : cmd /c E:\Users\md\Documents\Visual Studio 2010\Projects\MyProject\node_modules\grunt-jsdoc\node_modules\jsdoc\jsdoc --private --destination doc appv2/js/data.js appv2/js/diagnostics.js
>> An error occurs in jsdoc process:
>> 'E:\Users\md\Documents\Visual' is not recognized as an internal or external c
ommand,
>> operable program or batch file.
Warning: jsdoc failure Use --force to continue.

Aborted due to warnings.
"Exited with: " 3

@xavisavvy
Copy link

As a note for others researching this issue, I discovered this error, and after debugging it looked like it was needing Java on my path to run.

An error occurs in jsdoc process:
'java' is not recognized as an internal or external command,
operable program or batch file.

@krampstudio
Copy link
Owner

@xavisavvy don't you have either an old version of the plugin ? or the deprecated package ?
Could you post your package.json

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

No branches or pull requests

3 participants