New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Komodo doesn't list all variables in autocomplete window (js) #502

Closed
shelldweller opened this Issue Aug 7, 2015 · 8 comments

Comments

Projects
None yet
3 participants
@shelldweller

shelldweller commented Aug 7, 2015

Komodo's autocomplete seems very quirky. Often it just stops working at all. Sometimes it shows incomplete variable list, even after restart.

Here's an example. It lists only stack_length but not stack or stack_position:
image

Build info: Komodo IDE, version 9.2.0, build 87616, platform macosx. Built on Tue Aug 4 11:29:06 2015. Had the same issue in previous build.

@Naatan Naatan added the Type: Bug label Aug 8, 2015

@Naatan Naatan added this to the 9.3 milestone Aug 8, 2015

@Naatan

This comment has been minimized.

Member

Naatan commented Aug 8, 2015

Thanks for reporting. Could you provide that snippet in a textual format?

@shelldweller

This comment has been minimized.

shelldweller commented Aug 8, 2015

Here you go. I trimmed down the code and now stack appears.

define(function(){

    function History(element){
        var self = this;
        var stack = [];
        var stack_position = -1;
        var stack_length = 0;

        this.push = function() {
            // here I only see stack and stack_length

        }
        // here I see all stack* vars
    }

    return History;

});

Also a new screenshot:
image

In general closure variables from outer scope tend not to appear in autocomplete. But it was strange to see appear all but one.

@mitchell-as mitchell-as modified the milestones: Backlog, 9.3 Oct 12, 2015

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Oct 12, 2015

Implementing closures in codeintel looks to be quite difficult, so I'm moving this to the backlog. For what it's worth, I cannot reproduce your most recent screenshot. My autocompletion list only contains the last 3 items.

@shelldweller

This comment has been minimized.

shelldweller commented Oct 13, 2015

I don't know if full closure support is really required. Atom's approach to autocomletion seems to be good enough.

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Oct 13, 2015

Codeintel's implementation is different than Atom's. Codeintel would need to implement closures in order to get the autocompletions you expect.

@Naatan

This comment has been minimized.

Member

Naatan commented Oct 13, 2015

That is to say, codeintel actually provides intelligent autocompletion. Whereas sublime/atom just dump identifiers that may or may not be relevant.

@shelldweller

This comment has been minimized.

shelldweller commented Oct 13, 2015

Exactly. But seeing extra identifiers appears less confusing to me than not seeing valid ones. Plus if I keep using Komodo long enough codeintel stops working at all. As a user of commercial IDE I would expect this feature to be a little bit more robust.

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Oct 13, 2015

When it stops working, please log a ticket with your Komodo profile's codeintel.log file. That will help us make codeintel even more robust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment