Skip to content

LocalFilesystemCleaner vs RobotLoader 3.4.0 #39

Description

@Gappa

There is an incompatibility with RobotLoader 3.4.0 when trying to clear its cache. (It works fine with version 3.3.2 & below).

Fatal error: Uncaught RuntimeException: Unable to create file '{_path_to_web_}/app/../temp/cache/nette.robotLoader/e6d54b90b1f4c8e8141ba9a16d30e092.php.lock'. fopen({_path_to_web_}/app/../temp/cache/nette.robotLoader/e6d54b90b1f4c8e8141ba9a16d30e092.php.lock): failed to open stream: No such file or directory in {_path_to_web_}/vendor/nette/robot-loader/src/RobotLoader/RobotLoader.php:524

Stack trace:
#0 {_path_to_web_}/vendor/nette/robot-loader/src/RobotLoader/RobotLoader.php(506): Nette\Loaders\RobotLoader->acquireLock('/home/users/dev...', 2)
#1 {_path_to_web_}/vendor/nette/robot-loader/src/RobotLoader/RobotLoader.php(84): Nette\Loaders\RobotLoader->saveCache()
#2 [internal function]: Nette\Loaders\RobotLoader->__destruct()
#3 {main} thrown in {_path_to_web_}/vendor/nette/robot-loader/src/RobotLoader/RobotLoader.php on line 524 

I think this is the commit part that is the culprit:

I'm not really sure what can be done about that since saving the cache in __destruct is a feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions