[SERVER-4480] Autocompletion in shell is broken Created: 13/Dec/11 Updated: 29/Feb/12 Resolved: 13/Dec/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kostyantyn Rybnikov | Assignee: | Tad Marshall |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Hi! In latest MongoDB 2.0.2-rc1 and -rc2 (at least) autocomplete behaviour has changed. Before it was good, as in unix shells, when you hit tab you see list of possible completions. Now (in those rc's), it just writes completion in cirtular way, which is unusable. Please, fix that. Also, it doesn't respect UNIX shell keys like Alt+B/Alt+F to go word forward/word backward, Alt+Backspace to remove word and maybe some other key combinations (emacs-like ones). I'm not sure if it's a bug or feature, but it's really annoying and I'm so afraid it will go to 2.0.2 that I've decided to create a ticket (at irc noone responded, the only respond on this I got is "go jira.mongodb.org"). My platform is Linux x86-64. Thank you! |
| Comments |
| Comment by Tad Marshall [ 06/Jan/12 ] |
|
Sorry, I didn't realize that some of the nightly builds are way behind. I just tried the 2.1.0-pre- Linux 32-bit nightly, and it is up-to-date and has the new command completion. You obviously don't want to run a 32-bit mongod, but a 32-bit mongo shell should be fine if you can run 32-bit (you may need ia32-libs for Debian/Ubuntu to run 32-bit in 64-bit Linux). Let us know if it works for you! The URL I used is http://downloads.mongodb.org/linux/mongodb-linux-i686-latest.tgz and the git version of mongod (and hence mongo) was 2b104cdedb06f2b6f764310ee6554f90a70bd0d6 . commit 2b104cdedb06f2b6f764310ee6554f90a70bd0d6 |
| Comment by Kostyantyn Rybnikov [ 06/Jan/12 ] |
|
Tad, the nightly build from http://www.mongodb.org/downloads for linux 64 is for 2011-11-05 Is there a place where I could get a more recent one? Thanks. |
| Comment by Tad Marshall [ 05/Jan/12 ] |
|
Command completion is back to readline/bash style for 2.1.0. Try a nightly build of the shell if you want to check it out. |
| Comment by Tad Marshall [ 13/Dec/11 ] |
|
We're hoping to get Unicode (UTF-8) support into the shell for 2.1 as well, see https://jira.mongodb.org/browse/SERVER-2939 , so Cyrilic would get fixed as well. |
| Comment by Kostyantyn Rybnikov [ 13/Dec/11 ] |
|
Tad Marshall, thank you! I will follow what you said and use 1.8 shell. Thanks! |
| Comment by Kostyantyn Rybnikov [ 13/Dec/11 ] |
|
Btw you can see small bug when entering Cyrillic letters on first video too |
| Comment by Kostyantyn Rybnikov [ 13/Dec/11 ] |
|
Sure! Here's the auto-completion issue (and difference between good old bash-completion and modern mongo one): http://dl.dropbox.com/u/865508/out-2.ogv And here's Alt+B/Alt+M issue (or feature request, because maybe it didn't work before) http://dl.dropbox.com/u/865508/out-5.ogv |
| Comment by Tad Marshall [ 13/Dec/11 ] |
|
This is being addressed for version 2.1. See https://jira.mongodb.org/browse/SERVER-4312 . Alt+B/Alt+F and Alt+Backspace are done, bringing back the bash/readline style of command completion will be in 2.1 as well. In the meantime, you can use the 1.8 mongo shell with version 2.0.2, it is compatible. |
| Comment by Eliot Horowitz (Inactive) [ 13/Dec/11 ] |
|
Can you send an example of what you mean? |