-
Notifications
You must be signed in to change notification settings - Fork 12
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
Running qDup hangs #178
Comments
After enabling trace logging, I am seeing that executing this command hangs qDup on machines that are not using bash/sh for the terminal: https://github.com/Hyperfoil/qDup/blob/master/src/main/java/io/hyperfoil/tools/qdup/SshSession.java#L618 On a target machine using bash, the response buffer content from the remote machine returns are something like: qDup can not decode the response from the remote machine correctly The remote machine that caused the hang was running https://github.com/romkatv/powerlevel10k on top of zsh, using zsh also causes qDup to hang |
I have had a similar issue in the past with Emacs in tramp mode and the work around there is to set a different prompt depending on the value of the For instance I have the following in my
Which sets the prompt to Is there a way in qDup to set an environment variable for the ssh session? |
After having a look at the code, I now understand that qDup is setting the prompt itself so the above comment is irrelevant, but I think I figured out the actual issue. The prompt used by qDup, Disabling the expansion when zsh is detected should allow qDup to set the prompt as expected. To do so one needs to run [1] https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html#Date-and-time |
I think we should change the prompt to something that does not expand by default. We picked |
@zakkak Would changing the prompt to |
Hi @willr3 , it seems to not trigger any default completion/expansions (AFAIK expansions are prefixed with
Note the no |
qDup was developed and tested against bash so there are probably several places that need to be revisited when connecting to other shells. |
According to
|
Other times running helloworld example just hangs, e.g.
Full thread dump here.
This has been observed with both macOS and fedora clients on fedora server. Java version 17.
The text was updated successfully, but these errors were encountered: