Unable to call scite.StripShow() function

77 views
Skip to first unread message

Byron Hawkins

unread,
Sep 1, 2012, 1:29:40 PM9/1/12
to scite-i...@googlegroups.com
I'm trying to create a simple function in my Startup.lua script that will allow me to choose among multiple recently copied text strings. The copy&paste stack is working fine, but when I try to use the strip for choosing an item in the copy history, I get an error:

/home/b/.scite/Startup.lua:101: attempt to call field 'StripShow' (a nil value)

Here is my script (just a simple stub to get started):

function chooseBuffer()
  if choosingBuffer then
    scite.StripShow("")
  else
    scite.StripShow("!'Choose Buffer:'[bufferIndex](OK)(Cancel)")
  end
end

and here is my command in .SciTEUser.properties:

command.name.5.*=Choose Buffer
command.5.*=dostring chooseBuffer()
command.subsystem.5.*=3
command.save.before.5.*=2
command.shortcut.5.*=Alt+Shift+V

I see other references to scite.StripShow here in the group, so it seems to be working for people. Can someone please help me figure out why it is completely missing from my environment? Thanks for your help.

Byron

Nicolas Chachereau

unread,
Sep 2, 2012, 9:03:21 AM9/2/12
to scite-i...@googlegroups.com
Do you have the latest version? From your script's path, I guess you're
probably using Linux: SciTE in the repositories for Debian or Ubuntu is
out of date, could be out of date on other distros as well.

I'd build from source, it's not that complicated. (See the README)

However, if your version is up-to-date, somebody else will have to step
in, as I have no idea how to help you.

Regards,
Nicolas
> --
> You received this message because you are subscribed to the Google
> Groups "scite-interest" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/scite-interest/-/SUu0rdq-bXQJ.
> To post to this group, send email to scite-i...@googlegroups.com.
> To unsubscribe from this group, send email to
> scite-interes...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/scite-interest?hl=en.

Byron Hawkins

unread,
Sep 5, 2012, 1:44:04 AM9/5/12
to scite-i...@googlegroups.com
Thanks Nicolas, I built the latest code and now the strip works as expected. 

Byron
Reply all
Reply to author
Forward
0 new messages