Skip to content
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

Auto-Complete Failure in specific scenario #622

Open
default0 opened this issue Aug 2, 2015 · 3 comments
Open

Auto-Complete Failure in specific scenario #622

default0 opened this issue Aug 2, 2015 · 3 comments
Labels

Comments

@default0
Copy link

default0 commented Aug 2, 2015

Most minimal repro I could create:

template T()
{
    struct S
    {
        int a, b, c;
    }
    static void print(S[] p_args...)
    {
        foreach(S cur; p_args)
        {
            writeln(cur|
        }
    }
}

If you put the cursor where the | is (after cur) and hit . the members of S will not appear in the completion list. Changing print to be non-static or moving the code outside the template fixes the problem.

@aBothe aBothe added the Bug label Aug 3, 2015
@aBothe
Copy link
Owner

aBothe commented Aug 3, 2015

Nice okay, this completion case should be reproducable and even unit-testable. Gonna care about this. Thanks for the report! :)

@default0
Copy link
Author

default0 commented Aug 3, 2015

There are various other corner cases I encountered where intellisense or rename-refactoring behave oddly, should I create similar reports as I encouter them in the future (might be a bunch of things, though)?

@aBothe
Copy link
Owner

aBothe commented Aug 3, 2015

Yes please!

aBothe pushed a commit to aBothe/D_Parser that referenced this issue Aug 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants