rgieseke / textredux

Text-based interfaces for Textadept
http://rgieseke.github.io/textredux/
Other
59 stars 11 forks source link

attempt to index upvalue 'ta_snapopen' (a nil value) #1

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hello,

I have the following error after adding textredux in my modules folder (using git) and by using the given code in my init.lua:

_M.textredux = require 'textredux'
keys.co = _M.textredux.fs.open_file

There is no error at stratup bu if I type C-o, I have the following error:

~/.textadept/modules/textredux/fs.lua:420: attempt to index upvalue 'ta_snapopen' (a nil value)

I'm using the latest version of Textadept (6.5).

Maybe some things changed in this version...

rgieseke commented 11 years ago

Thank you for the report and sorry for not replying earlier -- I just checked my settings and it appears I had disabled email notifications at some point. I just pushed a changeset, that should fix that error. Textadept 6.5 moved snapopen to another module and got rid of the "depth" parameter. Please let me know if you encounter any issues. I haven't also decided yet whether to get rid of the "depth" parameter in Textredux as well.

ghost commented 11 years ago

It works, thank you very much :) I will test all the functions of textredux when I will have time.