Comments (3)
I think the problem here is that the FileAssetSource only consumes "dirty file events" from the FileTracker. These events are only produced when a file has changed its contents.
So if you add or change the importer for a file extension, the FileAssetSource will not process any affected files. I think the solution to this would be for the FileAssetSource to scan its own metadata on startup to see if the set of registered importers has changed such that a reimport of certain files is required.
from distill.
I did some more work on this as per the commit above, but I noticed that in order to trigger a reimport when an importer is newly registered where previously there was none, I need to store all import results in the DB and not just if there was an importer that successfully processed a pair. That still needs to be done, and that probably means that process_pair
in source_pair_import
needs to return an enum result which is mirrored in the file_asset_source
metadata DB.
from distill.
Probably relevant for @happenslol in the implementation of error states in the metadata. When changing the metadata state format, we should try to accommodate both the error state and the import result state.
from distill.
Related Issues (20)
- Handle dependency cycles in Loader
- Make AssetUuid and AssetTypeId newtypes
- Upgrade tokio HOT 2
- Replace scoped_threadpool HOT 2
- Remove IPC transport HOT 1
- `time` dependency is deprecated - consider replacing?
- Upgrade `crossbeam_channel` dependencies HOT 1
- Implement an in-memory transport HOT 1
- Make `inventory` optional HOT 1
- Implement an LMDB-compatible in-memory KV store HOT 9
- Support type names for SerdeImportable HOT 1
- Remove dependency on capnpc HOT 1
- update to bincode 1.3.1 HOT 1
- update to Mozilla fork of lmdb HOT 2
- Should be possible to configure Loader to request AssetMetadata for loaded assets
- CI tests hang on RpcIO error HOT 2
- Use async-executor instead of tokio HOT 1
- WASM support for loader's rpc_io feature HOT 1
- "there is no reactor running" when using packfile loader HOT 1
- [Feature request] : Add a way to clean the cache at start.
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 distill.