2017-08-07 76 views
1

允許的最大長度我只是作曲家和exec php bin/console server:run更新Sylius,我已經 得到這個錯誤:警告:水珠():模式超過260個字符

Warning: glob(): Pattern exceeds the maximum allowed length of 260 characters in C:\project\vendor\sylius\sylius\src\Sylius\Bundle\AdminBundle/Resources/config/routing/admin_user.yml (which is being imported from "C:\project\vendor\sylius\sylius\src\Sylius\Bundle\AdminBundle/Resources/config/routing.yml").

作曲更新日誌是:

Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Package operations: 0 installs, 9 updates, 0 removals 
    - Updating symfony/symfony (v3.3.5 => v3.3.6): Downloading (100%) 
    - Updating doctrine/cache (v1.6.1 => v1.6.2): Downloading (100%) 
    - Updating doctrine/common (v2.7.2 => v2.7.3): Downloading (100%) 
    - Updating symfony/swiftmailer-bundle (v2.6.2 => v2.6.3): Downloading (100%) 
    - Updating sensiolabs/security-checker (v4.0.4 => v4.1.3): Downloading (100%) 
    - Updating payum/payum-bundle (2.2.0 => 2.2.1): Downloading (100%) 
    - Updating doctrine/dbal (v2.5.12 => v2.5.13): Downloading (100%) 
    - Updating sylius/sylius (v1.0.0-beta.2 => v1.0.0-beta.3): Downloading (100%) 
    - Updating phpspec/phpspec (3.4.0 => 3.4.2): Downloading (100%) 
Writing lock file 
Generating autoload files 

我在Windows 10平臺上工作。我已更新我的註冊表並允許長途徑並重新啓動我的cumputer(使用此鏈接:https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

回答

2

您可以嘗試任何描述的解決方案here。 我有一個類似的問題(安裝Sylius 1.0.0 Beta 3中),試圖取代線86 vendor\symfony\symfony\src\Symfony\Component\Config\Loader\FileLoader
import功能)
if (is_string($resource) && false === strpos($resource, "\n") && strlen($resource) !== $i = strcspn($resource, '*?{[')) {
,並能夠繼續。
黑客,但你能做什麼。與Unix操作系統不同,Windows受到這些問題的困擾。