Windows has a maximum path length of 260 characters, which sucks. Regardless, given a D8 install on Windows at a location similar to C:\Users\Mike\Documents\dev\drupal-core\d8 (42 chars) you can easily go past this limit when caching Twig templates. Eg: Running ExposedFormTest tries to create the file sites/simpletest/374409/files/php/twig/.240bba38d7,sites/simpletest/374409/files/php/twig/90fdd747_views-ui-expose-filter-form.html.twig_80406bc1fcb9334c7b8afa492efc559e720582dfd8bddc971c26df1e102ec8d8/97fd4eeb8601536df31037cf12d5b80486ff356082e402698fc09e15f96de81f.php (233 chars).

Comments

mikeker created an issue. See original summary.

star-szr’s picture

Status: Active » Closed (duplicate)

Sorry couldn't find this issue, but this is what got me thinking when looking at #2606772: Long Twig cache directories can cause failures on some filesystems, please join us there :)