Re: [code] [textadept] Incorrect/misleading documentation for spawn()

From: Mitchell <>
Date: Sun, 27 Sep 2015 14:06:06 -0400 (EDT)

Hi Philipp,

On Sun, 27 Sep 2015, Philipp Brüschweiler wrote:

> Hi all,
> I would have expected that if a spawn() call fails for some reason, an
> error would be raised. What happens instead is that nil is returned with an
> error message as a second return value. I guess this is either intended, or
> cannot be changed anymore because of backwards compatibility with modules.
> But it would be great if the luadoc of that function would mention it.

You're right that it should be documented. I'll do so; thanks for the
report. Since all other Lua I/O operations return nil plus an error
message instead of raising an error on failure, I figured `spawn()` should
do the same.

> Slightly off-topic: if the code for textadept was on github or similar I
> would just have sent a small pull request instead of sending this email.
> Would you prefer us to report simple bugs like this per email, or should we
> send patches in some form, or is there even another undocumented procedure
> for contributing changes?

Please continue to use the mailing list or e-mail me off-list.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 27 Sep 2015 - 14:06:06 EDT

This archive was generated by hypermail 2.2.0 : Mon 28 Sep 2015 - 06:34:41 EDT