Comments (9)
I have multiple watchers set, not tested yet if it faills, I'll keep an eye on it.
from fastscriptreload.
I'd start looking in FastScriptReload.Editor.FastScriptReloadManager.OnWatchedFileChange
and see if file changes are correctly calling that method.
Probably just by making some islolated changes to file-watcher 1, then 2 then 3 and see if method is called.
Ideally it'd be which would mean issue is somewhere in that method when it tries to mark files for hot-reload.
If it's not called then issue will be down to either
- File Watcher initialization which is done in
FastScriptReload.Editor.FastScriptReloadManager.StartWatchingDirectoryAndSubdirectories
- finding bug there should be fairly straight forward, if it's not setting properly - Some issue with FileWatcher - it actually has quite a few issues (Unity implementation) - so wouldn't be that surprised if it's down to that.
Would be good to hear what you have found, thanks!
from fastscriptreload.
I think in general bugged in Unity implementation. I've seen some odd issues with that for a while now. On some editor versions file watcher will just give you file-name without actual part (even relative to project root).
Probably only real solution is to implement different file-watching mechanism
from fastscriptreload.
Ii was working but now it isn't anymore, I have 3 file watchers specified, only the files watch by the 1st one are hot reloaded. Pretty sure it was working prior to unknown 😄
You could indicate me what I should check for
from fastscriptreload.
FastScriptReload.Editor.FastScriptReloadManager.OnWatchedFileChange
is indeed not called. And the file watcher seems fine after initialization.
So it seems to lie in the file watcher itself.
from fastscriptreload.
Could be this :
dotnet/runtime#17626
I will try the solution and let you know
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName,
from fastscriptreload.
Could be this : dotnet/runtime#17626 I will try the solution and let you know
NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName,
No, not working !
from fastscriptreload.
Does nothing more :
fileWatcher.NotifyFilter = NotifyFilters.Attributes
| NotifyFilters.CreationTime
| NotifyFilters.DirectoryName
| NotifyFilters.FileName
| NotifyFilters.LastAccess
| NotifyFilters.LastWrite
| NotifyFilters.Security
| NotifyFilters.Size;
fileWatcher.Changed += OnWatchedFileChange;
fileWatcher.Created += OnWatchedFileChange;
fileWatcher.Deleted += OnWatchedFileChange;
fileWatcher.Renamed += OnWatchedFileChange;
fileWatcher.Error += (object sender, ErrorEventArgs e) => Debug.LogError(e.GetException());
from fastscriptreload.
It's terribly weird.
<Application.dataPath>/3rdParties/GPUInstancer
alone works<Application.dataPath>/Scripts
alone works.- 1 + 2 only triggers files in 2.
- 2 + 1 only triggers files in 2
<Application.dataPath>
alone is too slow on recompile and enter play mode.
What is going on !?
My random guess : internally the filewatcher impl might order the path and have some savy mechanism to avoid concurrent watching and which is bugged in this case ?
from fastscriptreload.
Related Issues (20)
- Bug: Odin Inspector 3 compatibility error HOT 8
- [Error] An error is caused if the source code contains English characters HOT 1
- Reload Outside PlayMode in 2022.3.81f Not Working! HOT 1
- Why are all these Harmony and VR specify types being referenced? HOT 1
- Does this work at runtime or not? Its very not clear. HOT 1
- Incorrect rewrite for switch assignment (using new language features)
- Added fields not working with Unity editors drawn without IMGUI (ie 2022.3) HOT 1
- Multiple precompiled assemblies with the same name System.Threading.Tasks.Extensions.dll HOT 1
- Static fields in changed code are lost upon reload HOT 1
- Add support to reload modules with Unity's IsExternalInit workaround to C# records HOT 3
- Error for "DrawOdinInspector" HOT 1
- Fix record short syntax rewriting issue HOT 4
- File Watcher allocates 100 KB per frame -> lag spikes on GC HOT 1
- Try to fix rewrite for self file extension method HOT 2
- FileWatcherImplementation does not contain a definition for DirectWindowsApi HOT 3
- Exception when immersive debugging is enabled HOT 1
- Seems haven't supported Unity 2023??? HOT 2
- New Private field issues
- Issue with the Rewired package and FSR 1.6 HOT 2
- Fast Script Reload (via Live Script Reload v.1.7 on Asset Store) HOT 1
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 fastscriptreload.