Error message with JSLInt plugin

2013-05-21
2013-05-21
  • Dejan Kozina
    Dejan Kozina
    2013-05-21

    Hello all.
    I'm getting an error message when using the JSLint plugin to check a javascript file: "Invalid JSLint script!", it says. This only happens when:
    1) JSHint is selected as the current lint tool in Plugins->JSLint->JSLint Options, and
    2) a downloaded JSHint version is selected as script source in Plugins->JSLint->Settings (instead of the built-in one).
    N++ is 6.3.3 on WinXP Pro SP3, JSLint version is 0.8.1.117; downloading again the latest JSHint script does not help. I believe this has been happening since I installed this version of JSLint.

    I'm copying below the relevant sections of /plugins/Config/JSLint.ini:
    [JSLint]
    build=117
    selected_linter=JSHint
    [Settings]
    jslint_script_source=downloaded
    jslint_script_version=2013-05-16
    jslint_spec_undef_var_err_msg=false
    jslint_undef_var_err_msg='%s' was used before it was defined.
    jshint_script_source=builtin this becomes 'downloaded' when I switch settings
    jshint_script_version=2013-05-22 01-04-29
    jshint_spec_undef_var_err_msg=true
    jshint_undef_var_err_msg='%s' is not defined.
    spec_undef_var_err_msg=false
    undef_var_err_msg='%s' was used before it was defined.
    [JSHint Options]
    predef=
    browser=true
    devel=true
    debug=true
    evil=true
    forin=true
    es5=true
    undef=true
    node=false
    bitwise=true
    eqnull=true
    noarg=true
    noempty=true
    eqeqeq=true
    boss=true
    loopfunc=true
    laxbreak=true
    strict=true
    curly=true
    nonew=true
    jquery=true
    jslintnpp_additional_options=

    Anybody got an idea?