#809 JSLintPlugin 0.9

closed-rejected
None
5
2015-02-13
2012-02-12
Andy Balaam
No

[Note I have contacted Mathias Leppich and he suggested I take over the plugin and submit it here]

{{{ JSLint 0.9
Source: http://github.com/andybalaam/jslint-plugin-for-jedit
Announcement: * A command to run jslint on all open buffers was added
* An option for a list of objects to predefine before running jslint was added

Requires Java 1.5
Requires jEdit 04.03.12.00
Required plugins:
Console 4.3.6 (console.ConsolePlugin)
ErrorList 1.3.2 (errorlist.ErrorListPlugin)
JavascriptScriptEnginePlugin 1.0.0 (scripting.JavascriptScriptEnginePlugin)

Short Description: JSLint - The JavaScript Verifier - is a JavaScript source checker and validator. This PlugIn actually runs jslint.js within Rhino. It supports all major JSLint options and lets you decide to Run JSLint 'on buffer save' and/or 'on buffer switch'.

Long Description: <html>
<body>
<p>
JSLint - The JavaScript Verifier - is a JavaScript source checker and validator (<a href="http://www.jslint.com">www.jslint.com</a>). This PlugIn actually runs jslint.js within <a href="http://www.mozilla.org/rhino/">Rhino</a>. <br/>
It supports all major JSLint options and lets you decide to Run JSLint <i>on buffer save</i> and/or <i>on buffer switch</i>.
</p>
<p>
Source: <a href="http://github.com/andybalaam/jslint-plugin-for-jedit">http://github.com/andybalaam/jslint-plugin-for-jedit</a>
</p>
<p>
Big Thanks to <a href="http://www.crockford.com/">Douglas Crockford</a> for giving us JSLint! ...and of course for inventing <a href="http://www.json.org/">JSON</a>. <br />
Thanks to Jiger Patel for the jEdit plugin 'CodeLint' which I used as a basis for this plugin.
</p>
<p>
<small>(c) 2008 - Mathias Leppich (<a href="http://www.muhqu.de">www.muhqu.de</a>) and (c) 2012 Andy Balaam (<a href="http://www.artificialworlds.net">www.artificialworlds.net</a>)</small>
</p>
</body>
</html>
}}}

Discussion

  • Andy, please make a tag for this version.

     
  • Alan Ezust
    Alan Ezust
    2012-03-13

    you might want to update this to use jEdit 4.5 + the newly released RhinoPlugin, which contains a more recent rhinoscript engine.

     
  • Andy Balaam
    Andy Balaam
    2012-03-13

    Thanks Jarek, tag added.

     
  • Andy Balaam
    Andy Balaam
    2012-03-13

    Thanks Alan, I will look at this when I get a chance, but suggest for 0.9 we use what we currently have.

     
  • tag name: 0.9

    Incorrect dependencies:

    plugin.de.muhqu.jslint.JSLintPlugin.depend.4=plugin scripting.JavascriptScriptEnginePlugin 1.0.0

    This plugin in this version has a different class name.

     
  • Andy Balaam
    Andy Balaam
    2012-03-16

    Hi Jarek, I have updated to the version of JavascriptScriptEngine that is on my machine, because I know it works. Is that the right thing to do? Thanks.

    {{{ JSLint 0.9.1
    Source: http://github.com/andybalaam/jslint-plugin-for-jedit
    Announcement: * A command to run jslint on all open buffers was added
    * An option for a list of objects to predefine before running jslint was added

    Requires Java 1.5
    Requires jEdit 04.03.12.00
    Required plugins:
    Console 4.3.6 (console.ConsolePlugin)
    ErrorList 1.3.2 (errorlist.ErrorListPlugin)
    JavascriptScriptEnginePlugin 0.6.0 (scripting.JavascriptScriptEnginePlugin)

    Short Description: JSLint - The JavaScript Verifier - is a JavaScript source checker and validator. This PlugIn actually runs jslint.js within Rhino. It supports all major JSLint options and lets you decide to Run JSLint 'on buffer save' and/or 'on buffer switch'.

    Long Description: <html>
    <body>
    <p>
    JSLint - The JavaScript Verifier - is a JavaScript source checker and validator (<a href="http://www.jslint.com">www.jslint.com</a>). This PlugIn actually runs jslint.js within <a href="http://www.mozilla.org/rhino/">Rhino</a>. <br/>
    It supports all major JSLint options and lets you decide to Run JSLint <i>on buffer save</i> and/or <i>on buffer switch</i>.
    </p>
    <p>
    Source: <a href="http://github.com/andybalaam/jslint-plugin-for-jedit">http://github.com/andybalaam/jslint-plugin-for-jedit</a>
    </p>
    <p>
    Big Thanks to <a href="http://www.crockford.com/">Douglas Crockford</a> for giving us JSLint! ...and of course for inventing <a href="http://www.json.org/">JSON</a>. <br />
    Thanks to Jiger Patel for the jEdit plugin 'CodeLint' which I used as a basis for this plugin.
    </p>
    <p>
    <small>(c) 2008 - Mathias Leppich (<a href="http://www.muhqu.de">www.muhqu.de</a>) and (c) 2012 Andy Balaam (<a href="http://www.artificialworlds.net">www.artificialworlds.net</a>)</small>
    </p>
    </body>
    </html>
    }}}

     
  • Andy Balaam
    Andy Balaam
    2012-03-16

    Sorry, now I see the problem, I think - here's my next attempt:

    {{{ JSLint 0.9.2
    Source: http://github.com/andybalaam/jslint-plugin-for-jedit
    Announcement: * A command to run jslint on all open buffers was added
    * An option for a list of objects to predefine before running jslint was
    added

    Requires Java 1.5
    Requires jEdit 04.03.12.00
    Required plugins:
    Console 4.3.6 (console.ConsolePlugin)
    ErrorList 1.3.2 (errorlist.ErrorListPlugin)
    JavascriptScriptEnginePlugin 1.1.0
    (scripting.JavascriptScriptEnginePlugin)

    Short Description: JSLint - The JavaScript Verifier - is a JavaScript
    source checker and validator. This PlugIn actually runs jslint.js within
    Rhino. It supports all major JSLint options and lets you decide to Run
    JSLint 'on buffer save' and/or 'on buffer switch'.

    Long Description: <html>
    <body>
    <p>
    JSLint - The JavaScript Verifier - is a JavaScript source checker and
    validator (<a href="http://www.jslint.com">www.jslint.com</a>). This PlugIn
    actually runs jslint.js within <a
    href="http://www.mozilla.org/rhino/">Rhino</a>. <br/>
    It supports all major JSLint options and lets you decide to Run JSLint
    <i>on buffer save</i> and/or <i>on buffer switch</i>.
    </p>
    <p>
    Source: <a
    href="http://github.com/andybalaam/jslint-plugin-for-jedit">http://github.com/andybalaam/jslint-plugin-for-jedit</a>
    </p>
    <p>
    Big Thanks to <a href="http://www.crockford.com/">Douglas Crockford</a> for
    giving us JSLint! ...and of course for inventing <a
    href="http://www.json.org/">JSON</a>. <br />
    Thanks to Jiger Patel for the jEdit plugin 'CodeLint' which I used as a
    basis for this plugin.
    </p>
    <p>
    <small>(c) 2008 - Mathias Leppich (<a
    href="http://www.muhqu.de">www.muhqu.de</a>) and (c) 2012 Andy Balaam (<a
    href="http://www.artificialworlds.net">www.artificialworlds.net</a>)</small>
    </p>
    </body>
    </html>
    }}}

     
    • assigned_to: nobody --> jarekczek
    • status: open --> closed-rejected
     
  • Andy, I'm rejecting this entry and asking elberry on jedit-devel about the plugin you depend on. Maybe the version you tagged as 0.9.2 will be ok, but submit it again after it clarifies. Don't forget about tag name. And have a look at this:
    https://sourceforge.net/apps/mediawiki/jedit/index.php?title=Conventions,_procedures#Releasing_a_plugin_part_I

    We usually just correct the old tag when there is something wrong with it. But it's your choice.

     
  • Andy Balaam
    Andy Balaam
    2012-03-17

    Hi Jarek, Thanks for the link - sorry I didn't know about that page. Will you let me know when the situation with JavascriptScriptEnginePlugin is clarified, or should I look somewhere to find out? Thanks, Andy

     
  • If you don't want to subscribe to jedit-devel, you may watch it through an archivizer.
    http://www.jedit.org/index.php?page=feedback
    http://jedit.9.n6.nabble.com/jEdit-devel-javascriptscriptengineplugin-tp4624952p4624952.html

    Seems like you will need to use RhinoPlugin instead of JavaScriptScriptEngine.
    I was trying your plugin with Rhino. It compiles with 1 deprecation warning but fails at runtime, saying something about "apple".
    Details:
    1. change the "depend" line
    2. remove "jars", because your plugin doesn't ship any additional jars
    3. update "build.xml" to use rhino.jar instead of js
    4. rhino plugin is depending on jedit 04.04.99.0, so make your dependency at least the same.