Open enyaWecurB opened 3 years ago
@enyaWecurB
I checked the code, and I think it doesn't run twice.
it may be caused by the filterOutput
function. it used for filtering the clear Laravel Tinker output from pty.
https://github.com/tinkerun/tinkerun-vscode/blob/master/src/utils.ts#L27-L60
or caused by I have not set the cols
and rows
option.
https://github.com/tinkerun/tinkerun-vscode/blob/master/src/terminal.ts#L110-L114
Maybe some encodings returned from the windows server are not the same as those returned by the Unix server. it's a little hard for me to testing with the windows server 🤣
https://github.com/tinkerun/tinkerun-vscode#how-to-hand-back-to-tinker-after-running-code
can you try typing the Enter
in the output panel, and press the Up arrow
to rerun the code you last run. then check if the output is correct?
If people are encountering this, I was able to fix it by adding export TERM=xterm;
before the ssh command.
First of all, thank you so much for your work here - it's awesome and really super helpful! Practically, I use it all day long while programming. I'm running vscodium on unix, trying to tinker on a windows server. With my local environment it works absolutely fine, but the code is executed twice during an ssh session on the win server.
I followed your settings:
"command": "ssh -i ~/.ssh/id_rsa deloyer@tinke.run -t 'cd C:/path/to/project && php artisan tinker'"
If I call this line directly from a terminal, tinker is executed remotely and no duplicates are printed (everything normal). The duplications are also shown already shifted during initialization with tinkerun, like:
Maybe there is a problem with the remote connection, like connecting twice, because the run-command works properly. IMHO. Maybe tinkerun need's the new bash '[...] php artisan tinker; bash --login'? I don't know. I'm already looking in your code, but I guess you'll find it quicker than me. hope it helps! Let me know if I can help you with further informations and thank you again for you great work.
Edit: another output with random strings - there are some duplicate lines everytime, but not always as clear to differ as here.