-
-
Notifications
You must be signed in to change notification settings - Fork 811
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
Terminal text gets garbled on Windows #2
Comments
Thanks for your report. I'll take time to figure it out. Could you tell me what's your project structure and your Windows version? |
I have a single main.go file in the directory that runs an http server. I am running Windows 10 Pro Build 14393 |
@mattn Could you help me look at this issue when you have free time? Actually I have no idea how to solve it because I'm not familiar with Windows terminal, thanks a lot! @SonarBeserk I'm very sorry for this, it may take long time to fix it. Could you try to fix it if you are able to? |
Hi, I'll look into it in later. |
garbage is mixed log-output.
You must use sync.Mutex to avoid mixed output. |
Yes, it fixed this issue on my environment. |
@mattn |
Yes, sequence should be
but as far as I see the output, seems to be:
|
Windows can't overwrite file while another process(or it-self) open the file. |
@mattn Got it, I'll fix this. |
@mattn I've fixed it, and found another interesting issue about the colorful output. See the picture follows: Text in magenta color is invisible in PowerShell... Maybe blame it :) |
@SonarBeserk I've fixed some problems on Windows, could you try a new binary? curl -fLo ~/.air.exe \
https://raw.githubusercontent.com/cosmtrek/air/master/bin/windows/air.exe |
Oops, this issue is closed automatically since current branch |
Looks fine, I don't use powershell for go development so that's not something of personal concern. It might be better to open a separate ticket to fix that issue. |
Whenever running air on windows the text has issues printing.
I get this issue running in git bash as well as cmd.
The text was updated successfully, but these errors were encountered: