-
Notifications
You must be signed in to change notification settings - Fork 166
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
Unable to use my terminal session after quitting the interactive mode since the last update. #194
Comments
I just tried to use the latest amd64 exe version on Windows in a normal powershell environment and cannot reproduce the issue. Therefore, it seems limited to linux environments. I was wondering also wondering if the problem could be related to specifics in my .bashrc as I customized it quite a bit but I just tried with a default one from /etc/skel and still had the same issue. If anyone running linux can reproduce it this would be very helpful. |
Analyzing your previous commits, it seems that the problem resides in the use of the go-prompt library. Multiple users report having this problem on a linux environment and they can work around it by typing Apparently, there is no issue on windows powershell. Also, multiple users have reported downgrading to the 0.2.5 version of go-prompt fixes this issue. From what I gathered, mapping the |
Here is the result of the During the issue (first line is blank but command entered is
|
I really appreciate you putting so much effort with the issue. I personally use fish shell and for some reason, I don't face this issue, however I encountered it when I switched to bash. I tried some of the solutions but none seem to work, I will see what I can do |
Even with downgrading the go-prompt library to 0.2.5? I wanted to try tommorow but I was busy tonight so I couldn't try it right away and I am not the most familiar with Go projects but I will try to replicate that bug with the library. I will however monitor the issue as anyone with a bash shell should get it if you were able to replicate it... I think your program is awesome as I value quick AI answers from a terminal without the need for credentials or a browser... |
Yes even with downgrading |
Ok thank you I will test it and work upstream if I am able to help with the library owner in question. This puzzles me and it makes me mad. |
I tested in fish and zsh shells, no problems there with |
Just regular bash. Someone on the library issue had trouble also with OS X also probably also using with a Bash shell although now I believe they use zsh by default - haven't used a OS X machine in a while. We will get to the bottom of this. |
Yeah, well you can switch to some other shell for now if you want |
That's for sure but I find it problematic and would love to help resolve this issue. It is nothing that I cannot deal with just annoying. These kind of issues are a big pain in the ass :) I will check what I can do tommorow on my end with compiling your source and trying on my end. If I amount to anything clear I will keep you informed. In the meantime, I will just make an alias using the It would seemingly help some of the users of go-prompt if I manage to find the reason for this comportment for Bash which after all is still used by a lot of people... I am glad that you were able to replicate it. We will find the problem. It's not like this project hasn't already faced some hardships with API calls isn't it? |
Indeed, appreciate your help! |
Okay I was able to fix it with
|
Oh yeah? I was reading about my tty flags related to ISIG the other changes and wasn't having much success for the moment. That is really good news for everyone using the bash shell! |
Indeed, this one is also working |
Great to know there is a workaround as using an outdated version of a library sucks. Be sure to take your time for the next release nothing about this is stressful and I'm sure the user community will be greatly happy. |
Yes, there is a newer forked version, but the problem is still there for me |
Thank you for your quick response time, it is greatly appreciated, your tool is useful for some of us! |
Do you want to do a quick test to confirm that it works on your side? |
Unfortunately, I cannot compile a new version from scratch tonight it is currently 7 am and I need some sleep. I will however try tommorow. As I said earlier, I am not too familiar with Go projects so I am not able to help right now. |
No problems, when you wake up, you will have the new version to update to. Good night! |
You too friend, I will try to learn more about Go so I can help more effectively if another issue arises. |
Everything working perfectly on my end cheers man! |
Awesome! |
I have been trying to install tgpt on my M2 Mac mini for over an hour and haven't had any luck. I've tried a variety of approaches including the curl -sSL link, installing Go, downloading the .zip and running the install file, and I continue to run into the same error message: The very first time I tried the curl -sSL link it gave me a message saying to type tgpt -h for help, but when I did I immediately got the following error. I've run the uninstall script each time I've been unsuccessful. Any ideas why I can't get this to install properly? |
Well to install with go you need to have |
@calibers16 And if you don't have admin privilages, you can download |
Thanks @aandrew-me for the speedy reply! Updates:
I don't know what path I'm supposed to move it to, or how to link it so that when I type "tgpt" in Terminal it points to the app. I'm looking online but not immediately getting helpful info yet. Could you give me an example (or a URL to an explanation) for where I'm supposed to put the "tgpt-mac-arm64" file for the app to run properly? Thank you for your help and your patience while I learn! I can't wait to use this tool :D |
What I am referring to is PATH variable. If a directory is in PATH, then if any executable is inside the directory, you can execute it without specifying the full path of the executable. For example, lets suppose, You said that you installed to Here you can find more about PATH - https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them |
If you have admin privilages, do this (you have to be in the directory where the file is located) It will rename the executable to tgpt and move it to The command will prompt you for your password, enter it and it should be done |
Thanks! Got it working - appreciate the help! |
Hello,
Ever since the new update I seem to be unable to use my terminal after starting an interactive mode session of tgpt. It seems to exit normally as no error is displayed (I tried with exit and
CTRL-c
and the same happens). After this the terminal session is unusable and typing is impossible.I use it on 3 platforms - on a Pop_OS desktop, a Manjaro laptop and a Raspberry Pi running Debian.
I had this problem on my Pop_OS desktop and Raspberry Pi (to which I ssh from my windows box) ever since the update, before it was working well.
I believe this bug is due to your handling of errors in interactive mode so that it doesn't leave the program. Weirdly, it doesnt seem to be exiting non-gracefully and shows my prompt after using exit or
CTRL-c
.Update
The problem seems to be in fact related to the use of the of the go-prompt library we need to learn more about it as it seems to be only affecting bash users..
My typical usage for troubleshooting
tgpt -i
What I tried so far
More misc infos
See if you can reproduce the issue yourself, I'm fairly certain there was a bug introduced in your latest update as I tried many other CLI programs that I used, some of which who are providing their own interactive prompt and there was no issue.
The text was updated successfully, but these errors were encountered: