[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [atf-dev] javascript validator slowness
|
Thanks, that's a bit clearer.
I guess that the syntax coloring is not part of validation then.
This feature gives good value when it works.
Responsiveness of the editor is an increasing challenge for
Eclipse. Can the "As You Type" validation time-constant
be controlled by users? It's pointless to check after every key
stroke. I guess a longish delay (1000ms) would make an
improvement. Or force the "As You Type" to yield after
200ms. I've not yet had to give up on the _javascript_ editor, but I had to
revert to emacs to edit my JSP files since eclipse simply ground to a
halt on one large file.
(Since jslint has a non-open license I've not used it so that it not the
issue in my case.)
A smaller fix would make the preference page more accurate so that I know
it only controls the unimportant bit, but I guess that is a WebTools
problem.
John.
At 02:05 PM 10/25/2006, you wrote:
Two different types of
validation are done, "As you type" and batch. Batch is done
when you do a "ctrl s" and run against the all the files in the
project. Errors for the batch validation show ups in the problems view.
"As you Type" validation runs when open a file and when you
type in the file. "As you Type" show up as squiggly underlines
in the file. The preference option only turn off batch validation, it
does not turn off "As you Type". If you open a file, "As
you Type" validation will run. ATF has two _javascript_ validators,
JSLint and Rhino. Both are executed when batch and "As you
Type" are run.
Your problem is that there is no preference item that will
turn off "As you Type" validation. You can turn off the JSLint
validator by removing the jslint.js file from the
org.eclipse.atf._javascript_.jslint plugin. Most of the performance problem
we have seen has been with the JSLint validator. If you still have
performance problem after you remove the jslint.js, send me a note. There
isn't a easy way to turn off the Rhino validator, but can be done by
editing an internal file.
thanks
Bob
Robert Goodman
IBM Emerging Technologies
goodmanr@xxxxxxxxxx
512-838-8824 T.L. 678-8824
"John J. Barton"
<johnjbarton@xxxxxxxxxxxxxxx>
Sent by: atf-dev-bounces@xxxxxxxxxxx
10/24/2006 10:58 PM
Please respond to
AJAX Toolkit Framework discussion
<atf-dev@xxxxxxxxxxx>
To
AJAX Toolkit Framework discussion
<atf-dev@xxxxxxxxxxx>
cc
Subject
Re: [atf-dev] _javascript_ validator slowness
Sorry for this naive question... but what does _javascript_ "validation" do?
Is it responsible for syntax checking in the editor window?
I set "Suspend all validators" in Window->Preferences->Validation.
I still have syntax checking in the .js window and I still see:
_javascript_ Rhino parse time elapsed=0
on the Error log. So either the preference setting does not work
or syntax checking is not validation.
FYI, the _javascript_ that will not validate is Mozilla XUL - related _javascript_
with "const" sprinkled about.
John.
______________________________________________________
John J. Barton email: johnjbarton<at>johnjbarton.com
http://www.johnjbarton.com
_______________________________________________
atf-dev mailing list
atf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/atf-dev
_______________________________________________
atf-dev mailing list
atf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/atf-dev
______________________________________________________
John J. Barton email: johnjbarton<at>johnjbarton.com
http://www.johnjbarton.com