[09:23:20] [[Tech]]; 82.118.4.166; [none]; https://meta.wikimedia.org/w/index.php?diff=16827850&oldid=16826333&rcid=9805815 [09:23:29] [[Tech]]; Tegel; Reverted changes by [[Special:Contributions/82.118.4.166|82.118.4.166]] ([[User talk:82.118.4.166|talk]]) to last version by MZMcBride; https://meta.wikimedia.org/w/index.php?diff=16827851&oldid=16827850&rcid=9805816 [12:03:39] Hi! I've got a ticket in OTRS from one of the top 10 internet-companies asking about using Wikipedianer restBase API etc. for one of their products. I need a MediaWiki-developer (preferably a staffer?) to help aswer the ticket! [12:04:36] https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=10030675 [12:08:54] OTRSagent: What's the question? [12:08:58] for basic info, see https://www.mediawiki.org/wiki/REST_API and https://www.mediawiki.org/wiki/API:Main_page [12:13:17] OTRSagent: Asking the user to ask in public on https://lists.wikimedia.org/mailman/listinfo/services might be best. [12:46:44] What kind of nick is OTRSagent? [16:01:54] Could someone with shell access look up WS2LGgpAAD0AAcvQbEwAAAAA on testwiki and attach the trace to https://phabricator.wikimedia.org/T166568 ? TIA [16:11:50] andre__: done [16:12:39] andre__: (no shell access is required, you can look up those in https://logstash.wikimedia.org/ – i'm not sure who is able to see them, everyone with NDA signed probably?) [16:57:19] MatmaRex, oh, I see. Thanks! [22:09:06] Hi! I need help debugging some JS. I get an error message "JavaScript parse error: Parse error: Illegal token in file 'MediaWiki:Gadget-experiments.js' on line 73" [22:09:21] But I can't see what the problem is - https://sv.wiktionary.org/wiki/MediaWiki:Gadget-experiments.js [22:50:10] * Krinkle whispers about a bug [22:50:56] Yup [22:51:15] I've tried commenting out lot's of code back and forth [22:52:03] In this version it seems like the line 'var språkkod = getLanguageCode(språk);' causes an error https://sv.wiktionary.org/w/index.php?title=MediaWiki:Gadget-experiments.js&oldid=2951705 [22:52:40] Should I file a bug? [22:54:34] Is å a valid js variable character? [22:54:53] Seems not [22:55:16] swap å for a in the definition and the array usage? [22:55:46] JavaScript allows lot's of chars in variables, including å [22:56:02] (this works in browsers, just apparently not in MediaWiki) [22:56:19] jslint disagrees [22:56:27] On http://www.jslint.com/ [22:56:38] var å; [22:56:48] JSLint was unable to finish. [22:56:48] 0.4Unexpected character 'å'. [22:56:48] var å; [22:57:21] Of course, "JavaScript parse error: Parse error: Illegal token in file 'MediaWiki:Gadget-experiments.js' on line 73" [22:57:29] That's not a MW error, that's your browser [22:57:58] it *is* a MW error - see https://sv.wiktionary.org/w/load.php?debug=true&lang=sv&modules=ext.gadget.experiments&only=scripts&skin=vector [22:58:39] JSLint is a tool for writing "good" JS - the tool's parser is much more strict than actual JS [22:58:40] That's not MW [22:58:49] It's from JSMinPlus [22:59:11] So a MW extension [22:59:19] A library it uses [22:59:21] So, to fix it [22:59:28] Replace å with a [22:59:39] File a bug saying JSMinPlus doesn't like å [23:03:02] Reedy, Skalman_: MW still enforces syntax compatibility ES3 (I think) while most browsers have moved onto ES5. [23:04:11] I believe it's a bug, because there are lines of code earlier using "å" as well [23:04:21] No ones saying it's not a bug [23:04:27] But you're not gonna get it fixed via IRC [23:04:31] nope [23:04:31] File a bug, then the proper people will look at it [23:04:58] Skalman_: your best bet for now is to avoid using those kinds of characters for now, or just quote them [23:04:59] should I still file it at Wikimedia, or should I try to find the JSMinPlus repo? [23:05:16] file it as MediaWiki-General-or-Unknown in phabricator [23:05:23] ok, sure [23:05:51] thanks a lot! :)