Skip to content
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

Double-printed charcters #68

Open
ebrahimmfadae opened this issue Mar 31, 2023 · 7 comments
Open

Double-printed charcters #68

ebrahimmfadae opened this issue Mar 31, 2023 · 7 comments

Comments

@ebrahimmfadae
Copy link

ebrahimmfadae commented Mar 31, 2023

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
Copy link
Member

AndreMaz commented Apr 1, 2023

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
Copy link
Author

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
Copy link
Author

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

@esatterwhite
Copy link

Same problem

@westtrade
Copy link

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

@AndreMaz
Copy link
Member

We finally know the source of the problem and a PR, containing a fix, was raised (moleculerjs/moleculer-cli#72). It's currently under consideration

@jellydn
Copy link

jellydn commented Nov 29, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants