Comments (16)
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?
from air.
I have a single main.go file in the directory that runs an http server. I am running Windows 10 Pro Build 14393
from air.
@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?
from air.
Hi, I'll look into it in later.
from air.
garbage is mixed log-output.
[19:3[81:91:53.83:2155]. 3!2e6x]c l!uedxec ltumdpe
You must use sync.Mutex to avoid mixed output.
from air.
@mattn Did you mean this? bf222c2
from air.
Yes, it fixed this issue on my environment.
from air.
I found another issue.
I think os.Remove should be called before go build
.
from air.
@mattn os.Remove
just delete the old binary file, actually it's OK to remain this file because the new binary file will overwrite this old one. Could you provide the error?
from air.
Yes, sequence should be
- kill process
- remove tmp/main.exe
- go build (generate tmp/main.exe)
but as far as I see the output, seems to be:
- kill process
- go build (generate tmp/main.exe)
- remove tmp/main.exe
from air.
Windows can't overwrite file while another process(or it-self) open the file.
from air.
@mattn Got it, I'll fix this.
from air.
@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 :)
from air.
@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
from air.
Oops, this issue is closed automatically since current branch fix-2
was merged by master...
from air.
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.
from air.
Related Issues (20)
- panic: unaligned 64-bit atomic operation in windows HOT 5
- panic when shutting down with SIGINT signal if proxy is enabled HOT 8
- bug: live reload do not work for tmpl files HOT 7
- Using the `air` cli on Windows breaks when providing nested paths to `build.bin`
- Proxy doesn't forward websocket connections/messages HOT 5
- Browser reload script not injected on proxy port HOT 11
- Inconsistent Install Recommendations in English and Chinese READMEs HOT 1
- Moving 'air' to Organization HOT 7
- Changing project link HOT 1
- What's the point of `root`? HOT 1
- Cannot `go install github.com/air-verse/air@latest` HOT 14
- How to Disable "Process Exit with Code 0" Message?
- Fix to a problem when using podman-compose to run Air
- Issue when compiling static files
- add option to ignore the default .air.toml, for usage with "templ generate --notify-proxy"
- Process is orphaned rather than shut down when air exits HOT 9
- Returning HTML breaks proxy HOT 4
- Can't install air
- Canβt install air HOT 1
- "air -c" and "air init" can`t run HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from air.