Re: [Wikitech-l] catching errors in local JavaScript

2017-01-19 Thread Amir E. Aharoni
That's OK—I mainly want to know that the error occurred at all. -- Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי http://aharoni.wordpress.com ‪“We're living in pieces, I want to live in peace.” – T. Moore‬ 2017-01-19 12:16 GMT-08:00 Bartosz Dziewoński : > Oh, and also,

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-19 Thread Bartosz Dziewoński
Oh, and also, a more general limitation: the error messages may be localised, depending on the browser. I hope you speak Korean. -- Bartosz Dziewoński ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-19 Thread Gergo Tisza
On Thu, Jan 19, 2017 at 1:35 AM, Federico Leva (Nemo) wrote: > AFAIK https://www.mediawiki.org/wiki/Extension:Sentry is the way to go, > perhaps currently blocked on procurement (https://phabricator.wikimedia > .org/T93138 ). > It's stalled due to lack of time, with a fair

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-19 Thread Bartosz Dziewoński
UploadWizard has such a mechanism, recording all JavaScript exceptions that happen on https://commons.wikimedia.org/wiki/Special:UploadWizard (using some of the machinery originally designed for Sentry, some custom glue code, and some EventLogging definitions). Using EventLogging mostly works,

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-19 Thread Federico Leva (Nemo)
AFAIK https://www.mediawiki.org/wiki/Extension:Sentry is the way to go, perhaps currently blocked on procurement (https://phabricator.wikimedia.org/T93138 ). https://phabricator.wikimedia.org/T106915 or https://phabricator.wikimedia.org/T382 might be the main discussions on the matter.

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-18 Thread Eran Rosenthal
I wrote 2 years ago a phantom-js based script to catch all JS errors in all wikis: https://github.com/eranroz/wiki-js-error-log See also: https://phabricator.wikimedia.org/T71519 On Wed, Jan 18, 2017 at 6:37 PM, Jeremy Baron wrote: > On Jan 18, 2017 11:26, "Amir E.

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-18 Thread James Hare
I would find such a tool to be extremely useful as well. I am working on an extension that uses a considerable amount of JavaScript and while we’re trying to find as many breakdowns as we can, it’s entirely possible we’ll miss something and the person who discovers the bug won’t be familiar with

Re: [Wikitech-l] catching errors in local JavaScript

2017-01-18 Thread Jeremy Baron
On Jan 18, 2017 11:26, "Amir E. Aharoni" wrote: Remind me please, were there ever any efforts to get client-side JavaScript errors monitored centrally? I think you're looking for https://phabricator.wikimedia.org/project/profile/976/ aka

[Wikitech-l] catching errors in local JavaScript

2017-01-18 Thread Amir E. Aharoni
Hallo Wikitech community, Remind me please, were there ever any efforts to get client-side JavaScript errors monitored centrally? What happens currently is that JS code can frequently fail, taking down the rest of JS on the page with it. It happens both with JS code properly deployed from Gerrit