Re: [MediaWiki-l] Lua/Scribunto

2018-07-18 Thread Stephan Gambke
Protoypes is a good pointer. Thanks! I didn't find any automatisms, but I can do someTable={} setmetatable( someTable, { __index = table} ) and I am set to do someTable:insert(), someTable:concat(), etc. Neat. Unfortunately it is not as easy for strings. There actually is an automatism for

Re: [MediaWiki-l] Lua/Scribunto

2018-07-17 Thread Derk-Jan Hartman
Maybe you missed that table.foo (and similarly string.foo) is the prototype for any someTable, which thus automatically has someTable.foo(). And that someTable:foo(args) is just syntactic sugar for someTable.foo( someTable, args ) ? It's one of those weird Lua quirks DJ On Mon, Jul 16, 2018 at

[MediaWiki-l] Lua/Scribunto

2018-07-16 Thread Stephan Gambke
I have been playing with Scribunto recently and the one thing that struck me as odd was that Lua has a number of methods like table.foo or string.foo, but I did not find any factory module leveraging these methods to provide someting more intuitive like someTable:foo or someString:foo. Is it

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-15 Thread John W. Foster
On Fri, 2013-11-15 at 14:39 +1100, Tim Starling wrote: ps -o vsize $$ VSZ 17772 is what I got. Hope this helps. John ___ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-14 Thread John
I wasnt thinking about removing them permanently. If you can temporarily disable all other extensions and confirm that the issue is solely with Scribunto that would make troubleshooting easier. I know quite a few wikis that have it enabled without issue. Isolating the extension by disabling all

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-14 Thread Mark A. Hershberger
On 11/13/2013 11:27 PM, John Foster wrote: On Wed, 2013-11-06 at 19:50 -0500, John wrote: Your wiki has some serious spam issues. Any other pointers are really appreciated. Could you please try out the extension I'm working on: https://www.mediawiki.org/wiki/Extension:BlockandNuke. It will

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-14 Thread John Foster
On Thu, 2013-11-14 at 09:37 -0500, Mark A. Hershberger wrote: On 11/13/2013 11:27 PM, John Foster wrote: On Wed, 2013-11-06 at 19:50 -0500, John wrote: Your wiki has some serious spam issues. Any other pointers are really appreciated. Could you please try out the extension I'm

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-14 Thread Tim Starling
On 14/11/13 15:40, John Foster wrote: This is the error messages in that log that I created per your suggestion. /var/www/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:3503: cannot allocate 381 bytes (32768 bytes allocated)

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-14 Thread John Foster
On Fri, 2013-11-15 at 10:05 +1100, Tim Starling wrote: On 14/11/13 15:40, John Foster wrote: This is the error messages in that log that I created per your suggestion. /var/www/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:3503: cannot allocate 381

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-14 Thread Mark A. Hershberger
On 11/14/2013 02:41 PM, John Foster wrote: Well that was a bust Well, your comments are helpful. I'll put the extension in gerrit so those links work. I noticed the whitelist.txt was an HTML page that seemed to be a form of some kind. As the filename implies, this is just a plain text file

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-14 Thread Tim Starling
On 15/11/13 12:01, John Foster wrote: On Fri, 2013-11-15 at 10:05 +1100, Tim Starling wrote: On 14/11/13 15:40, John Foster wrote: This is the error messages in that log that I created per your suggestion. /var/www/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc:

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-13 Thread John Foster
On Wed, 2013-11-06 at 19:50 -0500, John wrote: Your wiki has some serious spam issues. WOW. Thanks for the tip. I actually am setting up this wiki for the first time on a remotely hosted server that is actually open to the public. I recon I have a lot to learn. I had no idea there was all the

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-13 Thread John Foster
On Thu, 2013-11-07 at 16:30 +1100, Tim Starling wrote: On 07/11/13 10:59, John W. Foster wrote: Still trying to get rid of these Lua/Scribunto errors: trying to import .xml files. Import failed: Lua error: Internal error: The interpreter exited with status 2.

[MediaWiki-l] Lua Scribunto errors still present.

2013-11-06 Thread John W. Foster
Still trying to get rid of these Lua/Scribunto errors: trying to import .xml files. Import failed: Lua error: Internal error: The interpreter exited with status 2. http://www.physicswiki.net I rebuuilt the entire website from the ground up AGAI trying to get these to work with basically the

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-06 Thread John
Your wiki has some serious spam issues. On Wed, Nov 6, 2013 at 6:59 PM, John W. Foster jfoster81...@gmail.comwrote: Still trying to get rid of these Lua/Scribunto errors: trying to import .xml files. Import failed: Lua error: Internal error: The interpreter exited with status 2.

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-06 Thread John
I was talking a look, my first thought would be to comment out all extensions except Scribunto, reboot the webserver and see if the issue persists. Given the large number of extensions you have active the best thing to do is remove those as a source factor. On Wed, Nov 6, 2013 at 6:59 PM, John W.

Re: [MediaWiki-l] Lua Scribunto errors still present.

2013-11-06 Thread Tim Starling
On 07/11/13 10:59, John W. Foster wrote: Still trying to get rid of these Lua/Scribunto errors: trying to import .xml files. Import failed: Lua error: Internal error: The interpreter exited with status 2. http://www.physicswiki.net I rebuuilt the entire website from the ground up AGAI