[00:32:46] Hello ToBeCloud [00:32:58] Hi Johnbot :) [00:33:03] TimStarling: https://phabricator.wikimedia.org/T150417#2895236 [00:36:19] Hello qchris [00:42:38] Hello cmjohnson and aude_ [00:48:07] Hello trobotham [00:48:10] Yvette: in MW we've tried to make lots of things localizable, but the idea with lua was to adopt existing solutions [00:48:50] maybe Johnbot can have a +q, that is a pretty obnoxious script [00:51:23] Yvette: the standard solution for code is pretty clear [00:52:45] that is, keywords and other platform things are in english, comments, variables and other local identifiers are in the local language [00:53:42] many of the languages that we use have inventors that didn't speak english as a first language, but they all use fixed english keywords [01:07:18] TimStarling: Would you call ParserFunctions code? Should we remove localization from it? [01:07:35] I forgot about https://github.com/wikimedia/mediawiki-extensions-ParserFunctions/blob/master/ParserFunctions.i18n.magic.php [01:08:20] Maybe we just call ParserFunctions deprecated and this can be one of the reasons why. ;-) [01:09:30] I don't think it's relevant whether it is code or not [01:09:42] and no, I don't think it should be deprecated [01:13:11] All right. [01:48:26] how can there be so many diff preferences in gerrit, but none to remove those stupid fake scrollbars? [01:49:08] now, not only do you have 2000px of horizontal scrolling, the scrollbars are removed and the overflow is hidden [01:49:21] the only way to search for something from the diff page is to get a wider monitor [02:13:36] TimStarling, I tried turning on "Line Wrapping" in the prefs, and that helped a bit, on some example diffs I had open. Do you have a particularly extreme example handy? If it's unfixable via prefs, maybe someone can hack together a greasemonkey/stylish script to fix it... [02:14:30] if the code is too wide, you get a (fake) horizontal scroll bar [02:14:49] the problem is that the UI header at the top is too wide [02:14:54] Its CodeMIrror [02:15:04] but I'm on to a more interesting gerrit bug now [02:15:10] it messes with everything :/ [02:15:23] what is CodeMirror? [02:16:01] the thing that makes all of gerrit's scrollbars fake [02:16:30] they added it for online editing and then decided to use it in the diff view too [02:16:40] I was comparing these 2 (with horizontal scrollbars visible/vanished in background): http://imagizer.imageshack.com/img921/5708/a5qjtM.png [02:16:42] vs http://imagizer.imageshack.com/img923/8545/wnNHzr.png [02:17:29] the more interesting bug is the fact that unified diffs are showing the wrong content [02:17:51] I am seeing lines from the LHS appear as if they are on the RHS, which is kind of concerning [02:18:25] see line 451 of https://gerrit.wikimedia.org/r/#/c/327112/9/includes/parser/BlockLevelPass.php,unified [02:18:59] you see there is a duplicated comment "# Nothing else interesting to find; abort!", once with an extra tab, once with the right number of tabs [02:19:02] the first comment is from the LHS [02:19:39] the bug also causes the line numbers to be incorrect [02:19:57] "# Nothing else interesting to find; abort!" is actually on line 450 [02:20:09] I don't see it duplicated interestingly enough [02:20:51] time for trying different browsers I guess [02:21:33] have you got intraline differences enabled? [02:21:55] ys [02:21:58] *yes [02:23:53] pasted a screen shot here -- https://phabricator.wikimedia.org/P4666 [02:24:24] I have a bunch of css hacks for gerrit that may change something. not sure [02:25:17] css hacks are here -- https://github.com/bd808/userscripts/blob/gh-pages/wmfgerrit.user.css [02:29:45] ok, so I started the same version of firefox with an empty profile and -no-remote [02:30:02] and set up the exact same diff preferences, and the bug is still not reproduced [02:41:12] log out on browser 1, no bug, log back in, bug returns [02:58:14] ok, some progress [02:58:22] this is not how I imagined spending my afternoon [02:58:48] when you enable/disable "ignore whitespace", the diff is persistently corrupted [02:58:57] in some random way [03:09:02] it looks like you have to set that option in your preferences and then load a diff page [03:27:14] tgr, or anyone else online who has a gerrit account, can you help to confirm this bug? [03:27:43] in your gerrit preferences, under "diff", select ignore whitespace = all [03:27:52] then visit https://gerrit.wikimedia.org/r/#/c/327112/9/includes/parser/BlockLevelPass.php,unified [03:29:00] at RHS line 451-457 there should be duplicated content [03:31:45] TimStarling: I don't see it [03:31:57] ok, thanks [03:33:40] TimStarling: do you mean the "# We're nested" comment line? that does show up twice in the added lines, but with slightly different content [03:34:36] and break 2 is removed twice, so yeah, there is some duplication [03:35:01] or rather, a coloring error I suppose [03:36:04] ok [03:36:10] I'll do a screenshot of what I see [03:37:00] TimStarling: https://phab.wmfusercontent.org/file/data/hieiomfj762tl3ylq2sy/PHID-FILE-w7dmcchsahg63xsqefzb/gerrit_diff_no-whitespace.png [03:38:10] https://phab.wmfusercontent.org/file/data/qjkdowbcztbcyqbcirz4/PHID-FILE-algb6cdphbrbx7sgpxm6/gerrit_diff_prefs.png [03:38:28] yeah, that is broken in a slightly different way, but definitely broken [03:38:49] http://tstarling.com/stuff/diff-fail.png [03:38:59] that's what I get [03:39:24] what exactly you get probably depends on other diff preferences, like context lines [03:40:29] on the bright side, gerrit is about to get another UI revamp so soon everything will be broken in different ways! [03:40:40] yay [03:42:08] wow, even the line numbers are completely different between the two screenshots [03:42:23] I wonder what would happen to inline comments [03:55:54] filed https://bugs.chromium.org/p/gerrit/issues/detail?id=5191 [07:56:00] [[Tech]]; ArchiverBot; Bot: Archiving 1 thread (older than 30 days) to [[Tech/Archives/2016]].; https://meta.wikimedia.org/w/index.php?diff=16178025&oldid=16169897&rcid=8717955 [09:42:21] Hi all, where I can ask a question about Education program extension? [09:45:03] Urbanecm: on its talk page? [09:46:51] Nemo_bis, thanks. [22:45:11] If anyone is tired of reviewing PHP code and would like a change of pace, lots of fun python/django code for folks to review -- https://gerrit.wikimedia.org/r/#/q/status:open+project:labs/striker