moleculerjs / moleculer-repl

REPL module for Moleculer framework
http://moleculer.services/docs/moleculer-repl.html
MIT License
27 stars 25 forks source link

Double-printed charcters #68

Open ebrahimmfadae opened 1 year ago

ebrahimmfadae commented 1 year ago

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

moleculer-repl v0.7.3
NodeJS v18.13.0
Docker Compose v2.15.1
Docker v20.10.7
OS Ubuntu 22.04.2 LTS

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.

AndreMaz commented 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?

ebrahimmfadae commented 1 year ago

Hi @AndreMaz

I will test that and share the results with you.

Environment

moleculer-repl v0.7.3
NodeJS v18.13.0
Docker Compose v2.15.1
Docker v20.10.7
OS Ubuntu 22.04.2 LTS
ebrahimmfadae commented 1 year ago

I did test the scenario on node:14.17.6 and node:18.15.0. The result is the same.

esatterwhite commented 1 year ago

Same problem

westtrade commented 1 year ago

Same problem - I use node 20 and Bun 0.6.13 - reproduce in both

AndreMaz commented 1 year ago

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

jellydn commented 10 months ago

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!