Git Product home page Git Product logo

Comments (3)

apfelfabrik avatar apfelfabrik commented on August 15, 2024

I was experiencing the same problem with jslint that I installed from MacPorts. Some syntastic debugging showed that the errorformat was not matching anything into the loclist:

        let errorformat='%-P%f,%*[ ]%n %l\,%c: %m,%-G%.%#'

You should test two things:

  • Start a /bin/bash and make sure that shell has jslint in its path by running which jslint. If it doesn't, you should fix that as you might be running into this default shell replacement hack:
    if !s:running_windows && (s:uname !~ "FreeBSD")
        "this is a hack to stop the screen needing to be ':redraw'n when
        "when :lmake is run. Otherwise the screen flickers annoyingly
        let &shellpipe='&>'
        let &shell = '/bin/bash'
    endif
  • Run jslint on one of your source files and make sure that one of the first lines is the filename you ran jslint on.
    If the name of the checked file does not appear in the jslint output, you are probably not using node-jslint. You have two options:
    1. Get the proper jslint from npm by running npm install jslint [-g], or cloning https://github.com/reid/node-jslint
    2. Edit your errorformat in the syntastic bundle to suit yout jslint's needs.

from syntastic.

scrooloose avatar scrooloose commented on August 15, 2024

I wouldnt be at all surprised if the jslint and jshint output has changed since the checkers were written. I have been using the gjslint checker - which seems to work fine.

If you really want to use jslint or jshint then it will almost certainly be necessary to update the errorformats for them.

I am considering dropping one or 2 of the javascript checkers since it is just more work to maintain and I only use one. Either that or spam the original authors of those checkers.

from syntastic.

scrooloose avatar scrooloose commented on August 15, 2024

I have fixed jshint/jslint.

The error formats are based on jslint 0.1.0 and jshint 0.5.3.

Check these 2 commits for details:

8ca2028
70166f4

Comment here if there are any problems :)

from syntastic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.