Re: [code][textadept] Textadept 10.0 alpha 2 (WIN32)

From: Mitchell <m.att.foicica.com>
Date: Sat, 17 Mar 2018 15:06:46 -0400 (EDT)

Hi,

On Sat, 17 Mar 2018, Mitchell wrote:

> Hi Danny,
>
> On Fri, 16 Mar 2018, Danny MacMillan wrote:
>
>> I did a little more testing on this.
>>
>> I was using textadept_NIGHTLY_2018-03-15.x86_64 in WSL (Windows Subsystem
>> for
>> Linux) when I experienced this issue. The issue was repeatable. I tried
>> opening textadept many times and each time, I was faced with a blank
>> screen,
>> until I pressed a key.
>>
>> Interestingly, if I pressed a down-arrow while the screen was blank, it
>> inserted the literal characters "[B]" (no quotes) into the buffer. The
>> up-arrow inserted "[A]". The home key inserted "[H]" etc. It's as if it
>> thought an escape character was sent and it was waiting for the rest of the
>> terminal sequence ... or something.
>>
>> I then downloaded the same build on a Linux Mint 18.3 box and ran it with
>> no
>> issues.
>>
>> I compared the init.lua on the two systems and they were considerably
>> different. On the box that did NOT work this was the entire init.lua:
>>
>> ---
>> keys.cc = function() {
>> ui.dialogs.msgbox({text = "I typed ctrl-c"})
>> }
>>
>> keys.cv = function() {
>> buffer.add_text("I typed ctrl-v")
>> }
>> ---
>>
>> I had been using this normally useless init.lua to test some issues with
>> WSL
>> so that I could report them to Microsoft.
>>
>> So I copied the init.lua from the working Linux box to my WSL box and
>> started
>> textadept - it ran with no issues.
>>
>> I put back the useless init.lua from above and started textadept - I am
>> back
>> to having a black screen when I start. Using the --nosession command line
>> argument doesn't impact this behaviour.
>
> That is invalid Lua -- it does not have braces for function definitions.
>
> It seems like the terminal version, when faced with a startup error, shows a
> blank screen rather than the actual error. I'll look into this.

Fixed in hg[1]. This will be in the next nightly.

Cheers,
Mitchell

[1]: https://foicica.com/hg/textadept/rev/d3f2af1e9803

-- 
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 Sat 17 Mar 2018 - 15:06:46 EDT

This archive was generated by hypermail 2.2.0 : Sun 18 Mar 2018 - 06:39:56 EDT