You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
Thanks for your imongo. It is very useful! However, I always get the following message:
Code too long. Please commands with less than 1024 effective chracters. Indentation spaces/tabs don't count towards "effective" characters.
Restarting mongo shell...
I wonder if this is due to that long code is not supported by imongo and how to deal with it?
Thanks for your help and best!
Jeff
The text was updated successfully, but these errors were encountered:
Thanks for raising the issue. I have been aware of this but I don't have time to work on it now. However, PRs are welcome!
Some more info from the source code comments:
TODO: Enable sending lines long lines (>1024 on macOS >4096 on Linux).
This is related to a buffering issue and seems that can only be solved
by splitting lines, and waiting for the continuation prompt.
However this MAY interfere with how responses are currently received
Ref: http://pexpect.readthedocs.io/en/stable/_modules/pexpect/pty_spawn.html#spawn.send
If you are on Linux, a quick hack would be to change the hard-coded 1024 value to 4096. If you make it larger you likely get some weird errors.
Hi Gustavo,
Thanks for your imongo. It is very useful! However, I always get the following message:
I wonder if this is due to that long code is not supported by imongo and how to deal with it?
Thanks for your help and best!
Jeff
The text was updated successfully, but these errors were encountered: