Module talk:fi-verbs

From Wiktionary, the free dictionary
Latest comment: 4 years ago by Surjection in topic Module errors
Jump to navigation Jump to search

Module errors

[edit]

@Surjection (also @Rua, Hekaheka, Erutuon in case someone else can help), your recent edits to the module have made CAT:E blow up. Fix it please! —Mahāgaja · talk 19:22, 23 December 2019 (UTC)Reply

I have not changed anything. --Hekaheka (talk) 19:31, 23 December 2019 (UTC)Reply
I've reverted the recent edits because I'm not confident I can fix the error and Surjection seems not to be around right now. — Eru·tuon 19:35, 23 December 2019 (UTC)Reply
For Surjection's reference, the error was caused by the line local vh = mw.ustring.match(data.forms["impr_2pl"][1], "([aä])$"). The match sometimes fails, in which case vh is nil, and then some function tries to concatenate it, perhaps one of the convert_to_accel* functions, causing the error. — Eru·tuon 19:41, 23 December 2019 (UTC)Reply
That is bizarre - the match should never fail, since all verbs should have the form. — surjection?20:01, 23 December 2019 (UTC)Reply
@Surjection: Right, but the error that I saw was because the call to mw.ustring.match returned nil, not because the function received nil as the first argument. That is, in some verbs that form doesn't end in a/ä, for instance maksaa takaisin. — Eru·tuon 20:08, 23 December 2019 (UTC)Reply
Of course it's something like that - there's always that case that I forget about. Sorry everyone. — surjection?20:15, 23 December 2019 (UTC)Reply