Closed jdeniau closed 5 years ago
Depending on your configuration, compiled rules are either evaluated on the fly or written on disk and required.
Assuming that you configured your application to write these classes on disk, I would bet on a bug in the NativeFilesystem
class. Maybe, for some reason, the cache couldn't be written? I see that errors aren't handled... https://github.com/K-Phoen/rulerz/blob/5c26c4f99636e4e7e464f1b28c8054b059347534/src/Compiler/NativeFilesystem.php
Do you have a way to test that? (I guess that the NativeFilesystem
class should throw errors)
Thanks for the hint, I investigate and on our servers the files are generated, but the "bug" do occur when we switch from one server to another.
The bug is ours apparently, I will investigate further though. Thanks for your answer !
Closing as it's not related to rulerz.
@jdeniau I have the same error, have you solved.
@Leizhengzi It's been a while now, I do not remember exactly where it did come from. It did probably came from our build system. Possibly the order of the cache warmup and deploy, but I do not remember more, sorry
@Leizhengzi It's been a while now, I do not remember exactly where it did come from. It did probably came from our build system. Possibly the order of the cache warmup and deploy, but I do not remember more, sorry
It's okay. Thanks for your answer!
@Leizhengzi I have the same error sometimes (not during the deployment), have you solved your issue? Thanks a lot for your help.
Hi,
Sometime, when we deploy our code, we have the following error:
If I read correctly, the compiled class is generated at runtime and is not written to disk (in fact, the bundle cache directory seems to be always empty).
Do you have any idea where it could come from ?
Thanks !