Closed songyang-dev closed 9 months ago
Furthermore, the terminal is messed up and no longer displays text responsively anymore. I'm using a Windows terminal to get into WSL.
I was able to reproduce this bug in WSL2. We will look into this and find some solutions.
@briancbarrow @limesten There is also a problem with the terminal, exactly the same as before—no visual input. Do you have any idea why this is now the case in Windows? This bug was reported before the advanced flag merge.
Bug appears only in Linux subsystem for windows, in normal win environment this is not a case.
@songyang-dev
configure your Username and mail for git in WSL
git config --global user.name "Your Name" git config --global user.email "youremail@yourdomain.com"
I think this will solve your issue. It worked for me
@songyang-dev
configure your Username and mail for git in WSL
git config --global user.name "Your Name" git config --global user.email "youremail@yourdomain.com"
I think this will solve your issue. It worked for me
I will try this later today.
@Ujstor I solved the issue by configuring my git username and email inside of WSL.
As for the terminal issue, if the go-blueprint create
command fails for some reason, the terminal will still get stuck.
I tested this on version 0.5.1.
@songyang-dev at what point does it get stuck? What options did you choose? We'll need a bit more info in order to try to reproduce the error.
@songyang-dev at what point does it get stuck? What options did you choose? We'll need a bit more info in order to try to reproduce the error.
I chose the standard library and MySQL. The terminal gets stuck after completing the questionnaire. It only happens when there is an error during the creation process. I suspect this is because of a faulty error recovery process.
You can recreate this by deleting your git username and email from the git config on wsl.
if gitconfig is not present there is this error code:
2024/01/05 12:58:30 Error committing files to git repo: exit status 128 Error: exit status 128
after that you can use terminal but there is no visual input.
error is handled correctly, this behavior could occur with any error, not just with git commit. It's just speculation for now. I will try to test this. We will try to figure out the cause of the behavior.
Conclusion is that the spinner is causing a bug with visual input after occurrences of errors. I removed the spinner logic in create.go and bug disappeared.
@mimatache can you check what is causing this bug in spinner logic?
What is the problem?
After creating a project, there is an error message saying that git commits didn't work.
Operating System
Ubuntu 22.04
Architecture Version (x86, x64, arm, etc)
5.15.133.1-microsoft-standard-WSL2
Steps to reproduce
go-blueprint create
Relevant log output