Skip to content

Top level packages are not included in code completions #13623

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

Closed
prolativ opened this issue Sep 28, 2021 · 1 comment
Closed

Top level packages are not included in code completions #13623

prolativ opened this issue Sep 28, 2021 · 1 comment
Labels

Comments

@prolativ
Copy link
Contributor

Compiler version

3.1.0-RC2

Minimized code

In a REPL session:

import annot

and press TAB (or invoke code completion in IDE)

Output

No completions are suggested

Expectation

Names of top level packages should be included in completions. In the particular case above the code should expand to

import annotation

The problem is not specific to predef or stdlib and also occurs for packages containing code defined by users

@tgodzik
Copy link
Contributor

tgodzik commented Feb 16, 2022

Fixed by #14069 - the other problem mentioned in the PR is in a separate issue (package objects)

@tgodzik tgodzik closed this as completed Feb 16, 2022
olsdavis pushed a commit to olsdavis/dotty that referenced this issue Apr 4, 2022
This is related to scala#13623 - since it seems that Predef might be imported more than once, but this doesn't yet solve the issue.
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

3 participants