Skip to content

Completion of unexpected locations produce unexpected results #5237

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
Glavo opened this issue Oct 10, 2018 · 1 comment
Closed

Completion of unexpected locations produce unexpected results #5237

Glavo opened this issue Oct 10, 2018 · 1 comment

Comments

@Glavo
Copy link
Contributor

Glavo commented Oct 10, 2018

image
When I tried to press the Tab key after import scala., dotty repl gave a lot of unexpected completions: all symbols in the current scope (all members of the java and scala packages, all members of the Predef), all top-level package name, some special symbols (e.g. <init>, <byname>, <special-ops>, _root), and some folder names in the current working folder.

@Glavo Glavo changed the title Unexpected completions for import in REPL Completion of unexpected locations produce unexpected results Oct 10, 2018
@Glavo
Copy link
Contributor Author

Glavo commented Oct 10, 2018

scala> )
!=                                AnyRef                            Tuple11                           toString                          Function17                        NamedPackage                      deprecatedName                    ArithmeticException
##                                AnyVal                            Tuple12                           volatile                          Function18                        Serializable                      doubleArrayOps                    ArrayStoreException
*:                                Docker                            Tuple13                           Byte2byte                         Function19                        StringBuffer                      scalaShadowing                    CharacterDataLatin1
==                                Double                            Tuple14                           Character                         Function20                        StringCoding                      wrapFloatArray                    CompoundEnumeration
Eq                                Equals                            Tuple15                           Cloneable                         Function21                        StringFormat                      wrapShortArray                    FunctionalInterface
eq                                FdLibm                            Tuple16                           Exception                         Function22                        StringLatin1                      AnyValCompanion                   NotImplementedError
io                                Module                            Tuple17                           Function0                         MatchError                        UnknownError                      Boolean2boolean                   VirtualMachineError
ne                                Number                            Tuple18                           Function1                         NoManifest                        VersionProps                      CharacterData00                   arrayToCharSequence

(Omit more content)
It seems that as long as the completion of the unexpected location, the REPL will give these unexpected content. REPL should not provide any completion content at these locations

nicolasstucki added a commit that referenced this issue Jan 15, 2019
Fix #5237: Do not list <xyz> in scala package completions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants