Giter Club home page Giter Club logo

Comments (4)

yanmingsohu avatar yanmingsohu commented on August 17, 2024 2

On Windows, Add AIR config:
full_bin = "start /WAIT app.exe"

This configuration will make the program open and run in a separate window, everything is OK.

Or Run the program in a different directory:
full_bin = "start /D build /WAIT app.exe"

from air.

mohamedmansour avatar mohamedmansour commented on August 17, 2024

@yanmingsohu I tried the same thing on Windows, and log prints don't output anything unless the file is being swapped.

I refreshed the page N times, then I changed handler.go, then all the logs were flushed. This doesn't happen in go run . any ideas? In the below logs, it should have said Received: foo BEFORE handlers.go has changed

[start-api] handlers.go has changed
[start-api] building...
[start-api] time="2021-05-22T13:27:56-07:00" level=info msg="Running the sophisticated Gateway at port http://:8080"
[start-api] time="2021-05-22T13:28:00-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:00-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:00-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:01-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:02-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:03-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:03-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:53-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:53-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:54-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:54-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:54-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:54-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:55-07:00" level=info msg="Received: foo" prefix=main
[start-api] time="2021-05-22T13:28:55-07:00" level=info msg="Received: foo" prefix=main
[start-api] running...

from air.

Black-Cat avatar Black-Cat commented on August 17, 2024

Seems to be fixed by pr #214

from air.

dhruvsaraiya avatar dhruvsaraiya commented on August 17, 2024

When can I expect new release with this fix? @Black-Cat

I refreshed the page N times, then I changed handler.go, then all the logs were flushed. This doesn't happen in go run . any ideas? In the below logs, it should have said Received: foo BEFORE handlers.go has changed

Facing similar issue in macOs with docker-compose

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.