Skip to content
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

Print precise and correct watch warnings (and only when necessary) #10787

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

cart
Copy link
Member

@cart cart commented Nov 28, 2023

Objective

Fixes #10401

Solution

  • Allow sources to register specific processed/unprocessed watch warnings.
  • Specify per-platform watch warnings. This removes the need to cover all platform cases in one warning message.
  • Only register watch warnings for the processed embedded source, as warning about watching unprocessed embedded isn't helpful.

Changelog

  • Asset sources can now register specific watch warnings.

@cart cart added C-Bug An unexpected or incorrect behavior A-Assets Load files from disk to use for things like images, models, and sounds labels Nov 28, 2023
@cart cart added this to the 0.12.1 milestone Nov 28, 2023
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good warning details, reasonable API.

@cart cart added this pull request to the merge queue Nov 29, 2023
Merged via the queue into bevyengine:main with commit 4221f7e Nov 29, 2023
25 checks passed
cart added a commit that referenced this pull request Nov 30, 2023
…10787)

# Objective

Fixes #10401 

## Solution

* Allow sources to register specific processed/unprocessed watch
warnings.
* Specify per-platform watch warnings. This removes the need to cover
all platform cases in one warning message.
* Only register watch warnings for the _processed_ embedded source, as
warning about watching unprocessed embedded isn't helpful.

---

## Changelog

- Asset sources can now register specific watch warnings.
james7132 pushed a commit to james7132/bevy that referenced this pull request Dec 1, 2023
…evyengine#10787)

# Objective

Fixes bevyengine#10401 

## Solution

* Allow sources to register specific processed/unprocessed watch
warnings.
* Specify per-platform watch warnings. This removes the need to cover
all platform cases in one warning message.
* Only register watch warnings for the _processed_ embedded source, as
warning about watching unprocessed embedded isn't helpful.

---

## Changelog

- Asset sources can now register specific watch warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning is output to console when running with file_watcher enabled
2 participants