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

Incorrect completion when modules namespaced and more than one option #11

Open
chrismcg opened this issue Dec 8, 2016 · 0 comments
Open

Comments

@chrismcg
Copy link

chrismcg commented Dec 8, 2016

Moving this from tonini/alchemist.el#272 (there's a bit more detail there)

It looks like when there are multiple options which share a prefix after a . the completion is including the shared prefix which is breaking things further up the stack.

Adding

  test "return completion candidates for 'Kernel.Para'" do
    assert run('Kernel.Para') == ['Kernel.ParallelCompiler', 'Kernel.ParallelRequire']
  end

In complete_test.exs shows the failure, there is no actual Kernel.Parallel module.

  1) test return completion candidates for 'Kernel.Para' (CompleteTest)
     test/helpers/complete_test.exs:31
     Assertion with == failed
     code: run('Kernel.Para') == ['Kernel.ParallelCompiler', 'Kernel.ParallelRequire']
     lhs:  ['Kernel.Parallel', 'ParallelCompiler', 'ParallelRequire']
     rhs:  ['Kernel.ParallelCompiler', 'Kernel.ParallelRequire']
     stacktrace:
       test/helpers/complete_test.exs:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant