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

Comments

Projects
None yet
4 participants
@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

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Apr 2, 2016

Owner

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.

Owner

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

This comment has been minimized.

Show comment
Hide comment
@biank88

biank88 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.

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

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Apr 2, 2016

Owner

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.

Owner

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

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Apr 2, 2016

Owner

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

Owner

Maximus5 commented Apr 2, 2016

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

@biank88

This comment has been minimized.

Show comment
Hide comment
@biank88

biank88 Apr 2, 2016

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

biank88 commented Apr 2, 2016

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

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5
Owner

Maximus5 commented Apr 2, 2016

Ref: gh-235

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Apr 21, 2016

Owner

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

Owner

Maximus5 commented Apr 21, 2016

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

@zenithtekla

This comment has been minimized.

Show comment
Hide comment
@zenithtekla

zenithtekla 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.

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

This comment has been minimized.

Show comment
Hide comment
@jjtfsalgado

jjtfsalgado 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?

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