GithubHelp home page GithubHelp logo

Comments (16)

cosmtrek avatar cosmtrek commented on August 25, 2024

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.

SonarBeserk avatar SonarBeserk commented on August 25, 2024

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.

cosmtrek avatar cosmtrek commented on August 25, 2024

@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.

mattn avatar mattn commented on August 25, 2024

Hi, I'll look into it in later.

from air.

mattn avatar mattn commented on August 25, 2024

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.

cosmtrek avatar cosmtrek commented on August 25, 2024

@mattn Did you mean this? bf222c2

from air.

mattn avatar mattn commented on August 25, 2024

Yes, it fixed this issue on my environment.

from air.

mattn avatar mattn commented on August 25, 2024

I found another issue.

61c9bcb31506e7e3

I think os.Remove should be called before go build.

from air.

cosmtrek avatar cosmtrek commented on August 25, 2024

@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.

mattn avatar mattn commented on August 25, 2024

Yes, sequence should be

  1. kill process
  2. remove tmp/main.exe
  3. go build (generate tmp/main.exe)

but as far as I see the output, seems to be:

  1. kill process
  2. go build (generate tmp/main.exe)
  3. remove tmp/main.exe

from air.

mattn avatar mattn commented on August 25, 2024

Windows can't overwrite file while another process(or it-self) open the file.

from air.

cosmtrek avatar cosmtrek commented on August 25, 2024

@mattn Got it, I'll fix this.

from air.

cosmtrek avatar cosmtrek commented on August 25, 2024

@mattn I've fixed it, and found another interesting issue about the colorful output.

See the picture follows:

screen shot 2017-10-24 at 13 42 30

Text in magenta color is invisible in PowerShell... Maybe blame it :)

from air.

cosmtrek avatar cosmtrek commented on August 25, 2024

@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.

cosmtrek avatar cosmtrek commented on August 25, 2024

Oops, this issue is closed automatically since current branch fix-2 was merged by master...

from air.

SonarBeserk avatar SonarBeserk commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.