moleculer-repl icon indicating copy to clipboard operation
moleculer-repl copied to clipboard

Double-printed charcters

Open ebrahimmfadae opened this issue 2 years ago • 7 comments

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.

ebrahimmfadae avatar Mar 31 '23 07:03 ebrahimmfadae

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?

AndreMaz avatar Apr 01 '23 18:04 AndreMaz

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 avatar Apr 03 '23 19:04 ebrahimmfadae

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

ebrahimmfadae avatar Apr 13 '23 09:04 ebrahimmfadae

Same problem

esatterwhite avatar Jul 12 '23 20:07 esatterwhite

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

westtrade avatar Jul 19 '23 19:07 westtrade

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

AndreMaz avatar Jul 19 '23 20:07 AndreMaz

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!

jellydn avatar Nov 29 '23 02:11 jellydn