Discussion:
extman.lua
Walter Cruz
2005-08-17 12:45:21 UTC
Permalink
Hy everyone.

I post this message to lua-users, but Phillipe told me and I agree
that scite-interest is a better place to do this.

Well, does someone uses extman.lua ? ( http://lua-users.org/wiki/SciteExtMan )

I'm trying to use it, but I get this error:

/home/walter.cruz/extman.lua:266: attempt to concatenate local `path'
(a nil value)

I running under debian sarge, scite 1.64.

The relevant parts os my Scite config are these:

ext.lua.directory=/home/walter.cruz/.lua
ext.lua.startup.script=/home/walter.cruz/extman.lua

Philipe told me that if PLAT_GTK is defined, path is not created.
The mais problem is on the function scite_Files.

Well, any help will be welcome.

BTW, I'm loving Scite and Lua.

I began to write a ScitePage in Brazilian portuguese that is on:
http://waltercruz.com/scite

I wish you like :)
Steve Donovan
2005-08-17 13:24:07 UTC
Permalink
/home/walter.cruz/extman.lua:266: attempt to concatenate local `path'
(a nil value)

I think we had this problem before....the basic problem is that path
isn't initialized:

function scite_Files(mask)
local f,path
if scite_GetProp('PLAT_GTK') then
f = io.popen('ls -1 '..mask)
path = ''
else
mask = string.gsub(mask,'/','\\')
....

The '>>>' shows the line that needs to be inserted!

steve d.
--
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.

CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html

CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html

For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
***@csir.co.za.


This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Walter Cruz
2005-08-17 18:05:33 UTC
Permalink
This works to me on the first time that I open SciTE, but if I close
and try to open again, the screen locks .. :(

BTW, the file on the lua-users wiki needs to be updated too.

[]'
- Walter

Loading...