textadept icon indicating copy to clipboard operation
textadept copied to clipboard

open normal html file and it gives error

Open Mayur-hot opened this issue 1 year ago • 3 comments
trafficstars

2

Mayur-hot avatar Aug 05 '24 05:08 Mayur-hot

If I change .html to no extention, then file opens without any error...

so its regarding .html problem, and its actually html file also.

Mayur-hot avatar Aug 05 '24 06:08 Mayur-hot

html.log

just rename html.log to html file and try to open in textadept... you will get error.

Mayur-hot avatar Aug 06 '24 04:08 Mayur-hot

Thanks for the file. I see that there is an issue, and will look into fixing it when I have some time.

orbitalquark avatar Aug 07 '24 21:08 orbitalquark

I've pushed a fix for this file in https://github.com/orbitalquark/scintillua/commit/f1375d323c19c6264c3ad56abb1c24f52f3a28b9, and it should show up in tonight's nightly build.

If you run into this again, you can set lpeg.setmaxstack() in your ~/.textadept/init.lua as a workaround. For example:

lpeg.setmaxstack(2048)

It is not clear to me how large this value should be. Your file needs a value of 1329 to work.

orbitalquark avatar Sep 13 '24 01:09 orbitalquark

Thank You, one more Bug....

create a new blank text file.. and save it.. so not possible to save a file with 0 data...

it adds two blank lines 1 2

so, empty file save = 1 byte.., expected 0 byte

but using other editor I can able to save empty file with 0 byte.

Mayur-hot avatar Sep 14 '24 09:09 Mayur-hot

You'll want to turn off io.ensure_final_newline (https://orbitalquark.github.io/textadept/api.html#io.ensure_final_newline)

orbitalquark avatar Sep 14 '24 15:09 orbitalquark