Possible bug in Swift REPL autocompletion?


(Eugenio Baglieri) #1

Good evening, i was playing with swift REPL. I imported Darwin and using c functions. I noted that autocompletion is unusable if the last character is a parenthesis “(“.
The autocompletion seems to not get account of the already written function name, and after parenthesis shows as possible completion an infinite list with all the parameters of all loaded libraries.

Is this an issue that could be opened? You can reproduce this following these steps:

- launch swift from terminal
- write “import Darwin” on Mac, or “import Glibc” on Ubuntu
- digit “fop” and press tab, you’ll get autocompleted with “fopen(“ press tab again

···


Eugenio B.


(Alex Blewitt) #2

I think this is a known issue but I don't know what the bug is. Please can you create a bug on https://bugs.swift.org <https://bugs.swift.org/> and include a reproduction, including what output you see?

Thanks,

Alex

···

On 22 Dec 2016, at 21:19, Eugenio Baglieri via swift-users <swift-users@swift.org> wrote:

Good evening, i was playing with swift REPL. I imported Darwin and using c functions. I noted that autocompletion is unusable if the last character is a parenthesis “(“.
The autocompletion seems to not get account of the already written function name, and after parenthesis shows as possible completion an infinite list with all the parameters of all loaded libraries.

Is this an issue that could be opened? You can reproduce this following these steps:

- launch swift from terminal
- write “import Darwin” on Mac, or “import Glibc” on Ubuntu
- digit “fop” and press tab, you’ll get autocompleted with “fopen(“ press tab again


Eugenio B.

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users