Open ebrahimmfadae opened 1 year ago
Hi @ebrahimmfadae
Under the hood we use nodejs repl (https://nodejs.org/api/repl.html) so it may be the culprit.
What is the version that you are using? Also, can you please test with different node versions?
Hi @AndreMaz
I will test that and share the results with you.
moleculer-repl v0.7.3
NodeJS v18.13.0
Docker Compose v2.15.1
Docker v20.10.7
OS Ubuntu 22.04.2 LTS
I did test the scenario on node:14.17.6
and node:18.15.0
. The result is the same.
Same problem
Same problem - I use node 20 and Bun 0.6.13 - reproduce in both
We finally know the source of the problem and a PR, containing a fix, was raised (https://github.com/moleculerjs/moleculer-cli/pull/72). It's currently under consideration
I've noticed the ongoing issue with double-printed characters in moleculer-repl
. I understand that resolving such issues can take time, and the associated PR is currently on hold. To assist the community during this interim period, I've developed an alternative CLI tool called moleculer-connect
, which you can find here: https://github.com/jellydn/moleculer-connect.
Looking forward to seeing this issue resolved in moleculer-repl, and in the meantime, I hope moleculer-connect can be of help!
Description
When using repl mode inside a docker container's shell with
tty
flag enabled, each character is printed twice.Actual
mol $ ccaall vv11..sseerrvviiccee..nnaammee
Expected
mol $ cal v1.service.name
Environment
Temporary Solution
I don't know what the root cause of the problem might be but hitting tab button twice will change the written text to normal form.