[code] Creating new buffers during Textadept's init.lua execution results in severe errors.

From: David Tamar <david-tamar.att.outlook.com>
Date: Mon, 29 Jul 2019 04:31:46 +0000

I don't know if it's just me, but it seems like a bug in Textadept's C layer. I can't figure it out.
Any attempt to create new buffers during Textadept's init.lua execution will make the editor unusable.

Here's how to reproduce this:

  1. Download a fresh copy of Textadept 10.5 stable release for Linux x64.
  2. Open up the empty "~/.textadept/init.lua" file and write "ui.print("Hello!")" in it.
  3. Launch Textadept.

Textadept's Message Buffer output:
/opt/textadept/modules/textadept/file_types.lua:104: attempt to call a nil value (method 'set_lexer')
/opt/textadept/modules/textadept/file_types.lua:97: attempt to call a nil value (method 'set_lexer')
Hello!
/opt/textadept/init.lua:297: attempt to call a nil value (upvalue 'load_settings')
attempt to index a nil value
/opt/textadept/init.lua:297: attempt to call a nil value (upvalue 'load_settings')
The same occurs for all GTK2, GTK3, and Courses binaries of Textadept 10.5.
System information:

  1. Textadept 10.5 stable (Linux x64)
  2. Linux x64 version 4.19+105 from the Debian Testing distribution.
  3. GTK2 version 2.24.32
  4. GTK3 version 3.24.5
  5. NCurses version 6.1 (+20181013-2)
  6. No additional modules or lexers were added to Textadept's installation directory or in its user configuration directory.

-David

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 29 Jul 2019 - 00:31:46 EDT

This archive was generated by hypermail 2.2.0 : Mon 29 Jul 2019 - 06:37:06 EDT