Comments (7)
Thanks for reporting this! I don't have access to 10.8 yet, but will release a fix as soon as I can.
from jslintmate.
jshint appears to work... but only using
die-antwort/jslintmate/
perhaps that will give you a good place to start. I've tested the homebrew and npm versions of jslint in the command line without a problem fwiw
from jslintmate.
Having the same problem. JSHint works fine but JSLint says everything is successful even with syntax errors in the file. Error trace is:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- jslintmate/lint_error (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/ryan.cannon/Library/Application Support/TextMate/Bundles/jslintmate.tmbundle/Support/lib/jslintmate.rb:38
from jslintmate.
Here's what I found while running jslint from the commandline:
shadow:~$ jsc "JavaScript JSLintMate.tmbundle/Support/lib/jslint.js" "JavaScript JSLintMate.tmbundle/Support/lib/jsc.js" -- "$(cat "jsfile.js")" --warn-about-unused-vars="true"
Exception: TypeError: Attempted to assign to readonly property.
ultimate@JavaScript JSLintMate.tmbundle/Support/lib/jslint.js:2553
Here's the offending method from the included jslint.js:
function ultimate(s) {
var x = symbol(s, 0);
x.from = 1;
x.thru = 1;
x.line = 0;
x.edge = 'edge';
s.string = s;
return postscript(x);
}
Problematic line:
s.string = s,
An easy solution for this problem is to simply update jslint using this command:
curl -o ~/Library/Application Support/Avian/Bundles/JavaScript JSLintMate.tmbundle/Support/lib/jslint.js http://jslint.com/jslint.js
from jslintmate.
Replacing jslint.js has fixed the problem for me... perhaps the script for jshint should be updated as well. I could have sword I tried this earlier and it didn't work, but it works now and that is all that matters.
from jslintmate.
Thanks for looking into this! I've merged Bodnár's jslint.js update into the development branch, and also updated jshint.js on that branch. Please give it a shot and let me know how it goes!
For future reference, rather than modifying JSLintMate.tmbundle, you can also change your bundle settings to point to a custom build; take a look at the docs. These options let you work with the very latest JSLint/JSHint builds or your own custom builds.
from jslintmate.
JSLintMate 1.4 is now available for download, and has the latest versions of JSLint and JSHint. Please give it a try and let me know how it goes.
from jslintmate.
Related Issues (20)
- Failure - env: bash: No such file or directory HOT 2
- predef ignored when has $ prefix HOT 1
- JSHint doesn't seem to recognize the smarttabs flag HOT 4
- Config option todo does not work together with browser option HOT 2
- Setting options per project HOT 7
- Embedded javascript HOT 2
- Unused variables in callbacks HOT 4
- Unable to install on sublimeText HOT 2
- Save & Run JSLintMate error in Mavericks DP3
- Add Node support
- move to sublime text
- Two issues straight after installation, OSX 10.8.5, TM 1.5.11 (1635)
- undefined method `find' error HOT 10
- support inline jslint config?
- Error in Installing JSLintMate for TextMate in Mavericks HOT 2
- JSLint config unparam not woking
- jshint options -> broken link
- run on unsaved code? HOT 1
- Dosn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jslintmate.