Skip to content

Comments

Merge in upstream changes form air-verse/air#13

Merged
wafer-bw merged 32 commits intomasterfrom
air-verse-master
Jan 31, 2025
Merged

Merge in upstream changes form air-verse/air#13
wafer-bw merged 32 commits intomasterfrom
air-verse-master

Conversation

@wafer-bw
Copy link

Rick Yu and others added 30 commits September 21, 2024 22:38
This addresses two bugs:
1) The loop could exit with an error condition present and fail to
   inform the user.
2) On Windows 11, syscall.ECONNREFUSED is not returned. Instead we
   receive net.OpError with a message similar to:

"unable to reach app: Get "http://localhost:7000/": dial tcp [::1]:7000: connectex: No connection could be made because the target machine actively refused it."

The Fix:
Since the retry loop is short; just 1 second maximum, we retry until no
error happens. If an error does occur, we inform the user.
* Use web page address when making request to reload proxy

Signed-off-by: Alexandra Fishova <yopoyka@yopoyka.com>

* Create event source with just a path because browser can handle address on its own.

Signed-off-by: Alexandra Fishova <yopoyka@yopoyka.com>

---------

Signed-off-by: Alexandra Fishova <yopoyka@yopoyka.com>
air-verse#629)

* Set the Via header in proxy requests to origin and in client responses

* Remove pseudonym and use host only
…ase_on: air-verse#358 (air-verse#416)

* feat: Make include_file overrule include_ext

* feat: Make include_file overrule include_ext unittest
…#641)

* feat: silent flag in .air.toml, suppressing all air prints

useful if the app being watched has structured outputs that are being
piped into subsequent program/s.

* update: add silent to air_example.toml
* encapsulate paths with quotes to escape spaces

* encapsulate paths with quotes to escape spaces

* preprocess error in test
* fix color output

* Implement kill delay on Windows

* Revert the change on master

* Remove extra newline
… phase (air-verse#677)

the regex compilation was done lazily on first access but did not properly synchronize
for being accessed by multiple watcher goroutines

between the option of adding a mutex for something that (should) only ever happen
once and removing the potential for a race, this seems like the better choice
* do not report the process as running if it failed to start

* change the return values on error to match what the other platforms produce
…e#670)

* wait for killfunc completion when shutting down current app

---------

Co-authored-by: jingdi.zhu <jingdi.zhu@bytedance.com>
* proxy: stream reload and error messages

* proxy: Console log on build failure

* proxy: show build errors in a modal

---------

Co-authored-by: xiantang <zhujingdi1998@gmail.com>
authored-by: jingdi.zhu <jingdi.zhu@bytedance.com>
@wafer-bw wafer-bw merged commit 786dedc into master Jan 31, 2025
14 checks passed
@wafer-bw wafer-bw deleted the air-verse-master branch January 31, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.