groc icon indicating copy to clipboard operation
groc copied to clipboard

CreateProcessW: The system cannot find the file specified

Open ldstein opened this issue 11 years ago • 2 comments

Hi all,

I'm having some issues getting Groc running on Windows 8 x64.

I have three test files:

  • README.md
  • app.html
  • app.rb
  • app.js

When I run 'groc ' against each file, I get the following errors for app.rb and app.js:

C:\nodeProjects\test>groc README.md

Generating documentation...
√ C:\nodeProjects\test\doc\index.html
√ Documentation generated

C:\nodeProjects\test>groc app.js

Generating documentation...
! Failed to highlight C:\nodeProjects\test\app.js as JavaScript: CreateProcessW:
 The system cannot find the file specified.

C:\nodeProjects\test>groc app.rb

  Generating documentation...
! Failed to highlight C:\nodeProjects\test\app.rb as Ruby: CreateProcessW: The s
ystem cannot find the file specified.

C:\nodeProjects\test>groc app.html

  Generating documentation...
» C:\nodeProjects\test\app.html is not in a supported language, skipping.

√ Documentation generated

Any suggestions on what might be causing the 'CreateProcessW' errors when running against .JS and .RB files?

ldstein avatar Mar 12 '13 09:03 ldstein

I'm having that issue too, I use Windows 8 x64 though probably it's on all Windows versions.

I also had that error CreateProcessW when trying to create a Cakefile with a task to watch tests with mocha.

It seems to be an issue with node when trying to do an exec or a spawn from child_process.

From what I recall it has something to do with how Windows executables work, as it has to be a .cmd or .exe file and since most commonly one is trying to exec a script, Windows will not treat it as an executable.

I don't know if this is a bug or lack of a feature on nodejs.

jansegre avatar Mar 25 '13 02:03 jansegre

Sorry, I didn't pay much attention when trying out groc. It turned out I was missing pygments.

Installing pygments and ensuring it was on my PATH solved the issue for me

That is much likely to be the case since pygments is needed to colorize javscript and ruby code while it's not needed for html or markdown since they both will output html without colorized source.

jansegre avatar Mar 25 '13 05:03 jansegre