Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Autocomplete

edited September 2012 in Beta Posts: 1,255

Still having trouble with autocomplete on the latest beta. It seems consistent, in that it's never working beyond the baked in language. Objects in libraries, objects defined in the project, variables in set up... None of them are showing up.

Core functions are appearing just fine.

Comments

  • SimeonSimeon Admin Mod
    edited September 2012 Posts: 5,387

    That's very odd, I get completion for object members (self.*) and for class names. Are these not working for you?

    Element = class()
     
    function Element:init(pos)
        -- you can accept and set parameters here
        self.pos = pos
        self.radius = 0
        self.color = color(207, 64, 64, 255)
    end

    Typing self. elsewhere in that file should complete members (pos, radius, color).

  • Posts: 1,255

    Nope. When I start on "self" it pops up on the autocomplete, but typing the "." now gets me no options, no matter how many properties are defined in the class init.

  • For me autocompletion for object members is sporadic. Sometimes it will suggest an autocompletion, other times nothing will be suggested. I'll keep playing around with it, but so far I can't pick out any discern any pattern to why it works some times and not others.

  • SimeonSimeon Admin Mod
    edited September 2012 Posts: 5,387

    .@Mark thanks for the report. I'll look into this some more.

    .@toadkick autocomplete generates its index once every five seconds — you can generally type fast enough for it not to have completed the previous index. We'll be making it run more often in the next update.

Sign In or Register to comment.