Can`t display CallTips for Lua

36 views
Skip to first unread message

Gavin Holt

unread,
Jul 16, 2024, 12:00:17 PM (11 days ago) Jul 16
to scite-interest
Hi,

I have been trying to get Sc550.exe to autocomplete Lua functions AND display Lua calltips.

As the Sc1.exe has all the default properties files built-in, I have simply added to my user settings:

    # Set up call tips
    # https://github.com/moltenform/scite-files/blob/main/files/api_files_howto.md
    api.$(file.patterns.lua)=$(SciteDefaultHome)\confSciTE\lua.api
    calltip.$(file.patterns.lua).automatic=1
    calltip.$(file.patterns.lua).end.definition=)
    calltip.$(file.patterns.lua).word.characters=.: $(chars.alpha)$(chars.numeric)_
    calltip.$(file.patterns.lua).parameters.start=(
    calltip.$(file.patterns.lua).parameters.end=)
    calltip.$(file.patterns.lua).parameters.separators=,

and later in user settings file:

    # autocomplete.choose.single=1
    # autocomplete.*.fillups=([
    autocomplete.*.start.characters=.:
    autocomplete.*.typesep=!
    autocomplete.*.ignorecase=1
    autocomplete.visible.item.count=30
    # autocomplete.multi=1
    autocompleteword.automatic=0
    autocompleteword.incremental=1


I have a Lua.api file to complete function names (and any changes are coming through).

With these settings I get automatic function name completion after the dot, but no way to display call tips.

I dimly recall that call tips had problems when the function names contain a dot - was this ever fixed? or have I got my configuration wrong?

Using the full distribution (and the older 543 version) did not display call tips for Lua with these settings.

Any guidance welcome.

Kind Regards Gavin Holt
lua.api

Neil Hodgson

unread,
Jul 16, 2024, 5:57:46 PM (11 days ago) Jul 16
to scite-interest
Gavin Holt:

> calltip.$(file.patterns.lua).word.characters=.: $(chars.alpha)$(chars.numeric)_

Did you mean to include space in this value?

Neil

Gavin Holt

unread,
Jul 16, 2024, 6:21:01 PM (11 days ago) Jul 16
to scite-interest
Hi,

I have removed the space, but I'm still unable to show calltips.

Kind Regards Gavin Holt

Neil Hodgson

unread,
Jul 18, 2024, 9:48:17 PM (9 days ago) Jul 18
to scite-interest
Gavin Holt:

> I have removed the space, but I'm still unable to show calltips.

This property takes a lexer name rather than a file glob. So

calltip.$(file.patterns.lua).word.characters=.:$(chars.alpha)$(chars.numeric)_

should be

calltip.lua.word.characters=.:$(chars.alpha)$(chars.numeric)_

Neil

Reply all
Reply to author
Forward
0 new messages