[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: Review Request 113790: added jshint and restructured jsutils
From: Pablo_Martín <goinnn () gmail ! com>
Date: 2013-11-12 10:57:58
Message-ID: 20131112105758.19145.12164 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
> On Nov. 11, 2013, 1:14 p.m., Pablo Martín wrote:
> > Please could you tell me if is there some settings to desactive the jslint when \
> > save?
> > Something like in the old version?
> >
> > https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/entry/addons/kate/pate/src/plugins/js_utils/jslint.py#L49
> >
>
> Pablo Martín wrote:
> Please could you tell me if is there some settings to deactivate the jslint when \
> save a file?
>
> Phil Schaf wrote:
> i didn't remove that setting. i just split the lint function in 2:
>
> 1. the version that gets called on save, lint_on_save (line 102), which does those \
> checks (e.g. SETTING_LINT_ON_SAVE.lookup()) and then invokes the linting on the \
> saved document 2. the version that gets invoked by an action, lint_js_action (line \
> 97), which naturally doesn't check for that setting (you should be able to manually \
> lint the document whenever you want)
> Pablo Martín wrote:
> An end user could you disable this feature?
>
> I think that you remove it, but I don't know, it's possible that I am wrong
>
> Imagine that you are editing a js with a lot of errors... it's possible that you \
> want disable this feature. Or It is possible that you want use js_utils plugin but \
> you dislike jslint feature.
>
>
> Phil Schaf wrote:
> what's not to understand of "i didn't remove that setting"
>
> here's the UI: https://git.reviewboard.kde.org/r/113790/diff/#9.21
> and here's the code: https://git.reviewboard.kde.org/r/113790/diff/#5.20
> (SETTING_LINT_ON_SAVE)
>
> Phil Schaf wrote:
> http://i.imgur.com/koz923j.png
>
> Pablo Martín wrote:
> Philp please, you are very offensive with me.
>
> Only I wanted to be sure, I didn't understand the implications of this sentence: \
> "removed necessity ro restart kate after changing settings"
>
>
> Phil Schaf wrote:
> "ro" should have been "to", but otherwise it's easy to understand: after changing a \
> setting, js_utils used to need a restart (as the value of the setting is put into a \
> variable at the time the plugin was loaded)
> as it is now, each setting is looked up at the time its value is needed, i.e. when \
> the code needs to know the setting's value.
> ---
>
> i'm offensive because your criticism is based on misunderstandings, and i don't \
> like to spend my time explaining how i meant things. if i didn't express myself \
> properly, OK, but normally people understand what i write. the only one constantly \
> having problems with it is you.
> i'm sorry that i was so harsh, because i now know now that only your skills in \
> english prevent you from understanding me. but it' still annoying to have to \
> rephrase things until you get it.
> so is there a solution to that problem? i think yes: you'll have to invest more \
> time than developers who understand english better. you'll have to create a branch, \
> apply the diff, and test if a problem is really there before you just assume it is \
> and create an issue here.
Phil I understood that when you typed "ro" should have been "to". I didn't understand \
the implications of this sentence.
I think that my question was very very polite... and I don't understand why you are \
always angry. I tried a lot of times forget your abuse. But this is imposible, if I \
can not ask you, I do not say anything more
- Pablo
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/113790/#review43427
-----------------------------------------------------------
On Nov. 11, 2013, 7:45 p.m., Phil Schaf wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/113790/
> -----------------------------------------------------------
>
> (Updated Nov. 11, 2013, 7:45 p.m.)
>
>
> Review request for Kate.
>
>
> Repository: kate
>
>
> Description
> -------
>
> restructured JSUtils and added an option to use JSHint instead of the opinionated \
> JSLint.
> removed dependency (we don't need a clumsy JS wrapper using system calls if Qt \
> already has a JS runtime)
> removed necessity ro restart kate after changing settings.
>
> i created many useful utilities in the process which simplify settings and JS. \
> maybe we could add them to libkatepate?
>
> Diffs
> -----
>
> addons/kate/pate/src/plugins/CMakeLists.txt bddc725
> addons/kate/pate/src/plugins/js_utils/fulljslint.js PRE-CREATION
> addons/kate/pate/src/plugins/js_utils/js_autocomplete.py 40b1523
> addons/kate/pate/src/plugins/js_utils/js_engine.py PRE-CREATION
> addons/kate/pate/src/plugins/js_utils/js_lint.py PRE-CREATION
> addons/kate/pate/src/plugins/js_utils/js_settings.py 4272372
> addons/kate/pate/src/plugins/js_utils/js_snippets.py d684b25
> addons/kate/pate/src/plugins/js_utils/js_utils.desktop PRE-CREATION
> addons/kate/pate/src/plugins/js_utils/js_utils.py ee879a0
> addons/kate/pate/src/plugins/js_utils/js_utils.ui 6fd8b20
> addons/kate/pate/src/plugins/js_utils/jshint.js PRE-CREATION
> addons/kate/pate/src/plugins/js_utils/jslint.py 03fea05
> addons/kate/pate/src/plugins/js_utils/json_pretty.py 135e72d
>
> Diff: http://git.reviewboard.kde.org/r/113790/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Phil Schaf
>
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/113790/">http://git.reviewboard.kde.org/r/113790/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <p style="margin-top: 0;">On November 11th, 2013, 1:14 p.m. UTC, <b>Pablo \
Martín</b> wrote:</p> <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;"> <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Please could you tell me if is there some settings to desactive the \
jslint when save?
Something like in the old version?
https://projects.kde.org/projects/kde/applications/kate/repository/revisions/master/entry/addons/kate/pate/src/plugins/js_utils/jslint.py#L49</pre>
</blockquote>
<p>On November 11th, 2013, 1:21 p.m. UTC, <b>Pablo Martín</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Please could you tell me \
if is there some settings to deactivate the jslint when save a file? </pre>
</blockquote>
<p>On November 11th, 2013, 1:49 p.m. UTC, <b>Phil Schaf</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">i didn't remove that \
setting. i just split the lint function in 2:
1. the version that gets called on save, lint_on_save (line 102), which does those \
checks (e.g. SETTING_LINT_ON_SAVE.lookup()) and then invokes the linting on the saved \
document 2. the version that gets invoked by an action, lint_js_action (line 97), \
which naturally doesn't check for that setting (you should be able to manually lint \
the document whenever you want)</pre> </blockquote>
<p>On November 11th, 2013, 2:01 p.m. UTC, <b>Pablo Martín</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">An end user could you \
disable this feature?
I think that you remove it, but I don't know, it's possible that I am wrong
Imagine that you are editing a js with a lot of errors... it's possible that you \
want disable this feature. Or It is possible that you want use js_utils plugin but \
you dislike jslint feature.
</pre>
</blockquote>
<p>On November 11th, 2013, 7:50 p.m. UTC, <b>Phil Schaf</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">what's not to understand \
of "i didn't remove that setting"
here's the UI: https://git.reviewboard.kde.org/r/113790/diff/#9.21
and here's the code: https://git.reviewboard.kde.org/r/113790/diff/#5.20
(SETTING_LINT_ON_SAVE)</pre>
</blockquote>
<p>On November 11th, 2013, 8 p.m. UTC, <b>Phil Schaf</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">http://i.imgur.com/koz923j.png</pre> </blockquote>
<p>On November 12th, 2013, 7:16 a.m. UTC, <b>Pablo Martín</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Philp please, you are \
very offensive with me.
Only I wanted to be sure, I didn't understand the implications of this sentence: \
"removed necessity ro restart kate after changing settings"
</pre>
</blockquote>
<p>On November 12th, 2013, 8:41 a.m. UTC, <b>Phil Schaf</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;"> <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">"ro" should have been \
"to", but otherwise it's easy to understand: after changing a setting, js_utils used \
to need a restart (as the value of the setting is put into a variable at the time the \
plugin was loaded)
as it is now, each setting is looked up at the time its value is needed, i.e. when \
the code needs to know the setting's value.
---
i'm offensive because your criticism is based on misunderstandings, and i don't like \
to spend my time explaining how i meant things. if i didn't express myself properly, \
OK, but normally people understand what i write. the only one constantly having \
problems with it is you.
i'm sorry that i was so harsh, because i now know now that only your skills in \
english prevent you from understanding me. but it' still annoying to have to rephrase \
things until you get it.
so is there a solution to that problem? i think yes: you'll have to invest more time \
than developers who understand english better. you'll have to create a branch, apply \
the diff, and test if a problem is really there before you just assume it is and \
create an issue here.</pre> </blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Phil I understood that \
when you typed "ro" should have been "to". I didn't understand the implications \
of this sentence.
I think that my question was very very polite... and I don't understand why you \
are always angry. I tried a lot of times forget your abuse. But this is imposible, if \
I can not ask you, I do not say anything more</pre> <br />
<p>- Pablo</p>
<br />
<p>On November 11th, 2013, 7:45 p.m. UTC, Phil Schaf wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for Kate.</div>
<div>By Phil Schaf.</div>
<p style="color: grey;"><i>Updated Nov. 11, 2013, 7:45 p.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
kate
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">restructured JSUtils and added an option to use JSHint instead of the \
opinionated JSLint.
removed dependency (we don't need a clumsy JS wrapper using system calls if Qt \
already has a JS runtime)
removed necessity ro restart kate after changing settings.
i created many useful utilities in the process which simplify settings and JS. maybe \
we could add them to libkatepate?</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>addons/kate/pate/src/plugins/CMakeLists.txt <span style="color: \
grey">(bddc725)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/fulljslint.js <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_autocomplete.py <span style="color: \
grey">(40b1523)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_engine.py <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_lint.py <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_settings.py <span style="color: \
grey">(4272372)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_snippets.py <span style="color: \
grey">(d684b25)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_utils.desktop <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_utils.py <span style="color: \
grey">(ee879a0)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/js_utils.ui <span style="color: \
grey">(6fd8b20)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/jshint.js <span style="color: \
grey">(PRE-CREATION)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/jslint.py <span style="color: \
grey">(03fea05)</span></li>
<li>addons/kate/pate/src/plugins/js_utils/json_pretty.py <span style="color: \
grey">(135e72d)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/113790/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic