Fails on Windows #37

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

Projects

None yet

3 participants

@muxa
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.
@krampstudio krampstudio was assigned Jun 5, 2013
@krampstudio
Owner

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

@krampstudio
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
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
@krampstudio krampstudio closed this Jul 2, 2013
@xavisavvy

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
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