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

Can't write curly braces (ALT+123, ALT+125) with mongo shell #621

Open
biank88 opened this issue Apr 2, 2016 · 9 comments
Open

Can't write curly braces (ALT+123, ALT+125) with mongo shell #621

biank88 opened this issue Apr 2, 2016 · 9 comments

Comments

@biank88
Copy link

@biank88 biank88 commented Apr 2, 2016

Versions

ConEmu build: 160329 x64
OS version: Windows 7 x64
Used shell version: cmd

Problem description

With an active mongo shell session, I can't write curly braces using ALT+123 or ALT+125.
Everything works fine when the mongo shell terminates.

Steps to reproduce

  1. Start mongo shell: $ mongo
  2. Type open and closed curly braces with ALT+123 and ALT+125

Actual results

No curly braces typed

Expected results

{}

Additional files

animation

cmd x64 (works fine with mongo shell):
animation

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Apr 2, 2016

How about this?

  • Verify issue really originates from ConEmu!

    If you catch a bug in the Adobe Reader you would not report it
    on Microsoft Connect because you run Reader in Windows, would you?

    ConEmu is terminal,
    if console application
    (bash, vim, cmd, whatever) gives out broken output, ConEmu can't
    magically correct this broken output.

    Do not compare you console application behavior with mintty!
    A lot of users say ‘It works in cygwin’ or ‘It works in git bash’.
    Wrong! Both are just a software packages, and you run console utilities
    (bash, vim, git) in the POSIX compatible
    terminal mintty. Bad news though, mintty is not compatible with
    Windows console API.

    So, each cygwin or msys (git-bash) console application has two branches of code,
    and obviously, they behaves differently when they were started from mintty
    and from standard Windows console.

    Of course, if the branch of code, which utilizes Windows console API,
    has bugs, they would not be observed in mintty. So, run your console
    tool from Win+R directly, without mintty wrapper.

    Read more information in the article:
    third-party software.

@biank88
Copy link
Author

@biank88 biank88 commented Apr 2, 2016

I've just uploaded a new gif... as far as curly braces are concerned, mongo shell works fine both with cmd 64 and cmd 32.

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Apr 2, 2016

ConEmu do paste same way, regardless of active application. Your gif is too fast to catch details, but I believe you have to report the problem to mongo devs.

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Apr 2, 2016

Also, I'm not sure what font is used in real console (raw cmd).

@biank88
Copy link
Author

@biank88 biank88 commented Apr 2, 2016

that's a pity...
anyway, you have done a really nice work with comEmu, congratulations!

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Apr 2, 2016

Ref: gh-235

@Maximus5
Copy link
Owner

@Maximus5 Maximus5 commented Apr 21, 2016

Two weeks passed, no confirmation.
Patch would be reverted.

@zenithtekla
Copy link

@zenithtekla zenithtekla commented Aug 19, 2016

following. In Windows, You can use Git CMD to write curly braces {} for MongoDB queries.

meteor mongo

then copy-paste or write a statement like this:
db.tasks.insert({ text: "Hello world!", createdAt: new Date() });

Make sure change is made in server/main.js or the meteor todos app won't work.

@jjtfsalgado
Copy link

@jjtfsalgado jjtfsalgado commented Feb 14, 2017

Same here. I cant type curly braces in mongo shell using conemu or native cmd. I thought that was some bug on my mongodb version but I tried other versions and still the same. Any tip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants