Skip to content

"Error 2" on build #12

Closed
anstosa opened this Issue Feb 26, 2012 · 5 comments

3 participants

@anstosa
anstosa commented Feb 26, 2012

When I attempt to build, it fails and the console reads:

[Error 2] The system cannot find the file specified
[Finished]

Installed on Sublime Text 2 Build 2181 via Package Control.

@uipoet
Owner
uipoet commented Feb 26, 2012
  1. Did you run with control-J?

  2. Was this on Windows? I haven't set the path correctly for Windows yet. Need someone to help on that since I'm on a Mac.

@anstosa
anstosa commented Feb 26, 2012
  1. Tried with [ Ctrl ] + [ J ] and by selecting jshint as the default build system and [ Ctrl ] + [ B ]
  2. Yes I am on Windows. I would be happy to help you find the correct path.
@uipoet
Owner
uipoet commented Feb 26, 2012

Thank you for the detail. I'm assuming that you already installed node-jshint npm -g install jshint

  1. In your terminal, determine the executable path for jshint. On a Mac, I type which jshint to get this.
  2. Open "JSHint.sublime-build" in your Sublime Text 2/Packages/JSHint directory.
  3. Uncomment the windows path section and set path from step 1.
  4. Test to see if it worked.

When you have succeeded, please let me know the correct path and I will update the codebase for everyone.

@anstosa
anstosa commented Feb 26, 2012

This will fix it:

"windows": {
  "cmd": ["jshint.cmd", "$file"]
}

This assumes that users have node installed and that the path to node is in their CLASSPATH in environmental variables: C:\Program Files (x86)\nodejs

@uipoet uipoet pushed a commit that closed this issue Feb 26, 2012
Jamie Hoover ⚔ Windows Support
Adds command specific to Windows. Updates README with note about assumptions.

Closes #12. Thanks anstosa!
ce5bd07
@uipoet uipoet closed this in ce5bd07 Feb 26, 2012
@cointilt cointilt added a commit to cointilt/sublime-jshint that referenced this issue Dec 18, 2012
@cointilt cointilt Fixes a problem with Sublime Text 2 on Mac
This fixed an issue that was not allowing the build when hitting `cmd` + `j` on Sublime Text 2 for Mac.

Related to issue #33 as well as closed issues #12 and #14.
571f91f
@tatarespecia

npm -g install jshint fixed mine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.