执行php bin/console assets:install --symlink
命令不会执行任何操作。
要明确:folder /bundle
已创建,但它是空的。
详细说明,我明白了:
Trying to install assets as absolute symbolic links.
13:54:13 DEBUG [php] Warning: unlink(web/bundles/main): No such file or directory
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:178: {
: },
: } elseif (!@unlink($file) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:133: {
: try {,
: $this->filesystem->remove($targetDir);,
:
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
13:54:13 DEBUG [php] Warning: unlink(web/bundles/coresphereconsole): No such file or directory
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:178: {
: },
: } elseif (!@unlink($file) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:133: {
: try {,
: $this->filesystem->remove($targetDir);,
:
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
13:54:13 DEBUG [php] Warning: unlink(web/bundles\coresphereconsole): Permission denied
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:167: {
: // See https://bugs.php.net/52176,
: if (!@(unlink($file) || '\\' !== DIRECTORY_SEPARATOR || rmdir($file)) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:161: {
: if (!in_array($dir, $validAssetDirs)) {,
: $this->filesystem->remove($dir);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
13:54:13 DEBUG [php] Warning: unlink(web/bundles\main): Permission denied
[
"exception" => Symfony\Component\Debug\Exception\SilencedErrorContext {
+count: 1,
-severity: E_WARNING,
trace: {
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:167: {
: // See https://bugs.php.net/52176,
: if (!@(unlink($file) || '\\' !== DIRECTORY_SEPARATOR || rmdir($file)) && file_exists($file)) {,
: $error = error_get_last();
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand.php:161: {
: if (!in_array($dir, $validAssetDirs)) {,
: $this->filesystem->remove($dir);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:264: {
: } else {,
: $statusCode = $this->execute($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:887: {
: if ($event->commandShouldRun()) {,
: $exitCode = $command->run($input, $output);,
: } else {
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:223: {
: $this->runningCommand = $command;,
: $exitCode = $this->doRunCommand($command, $input, $output);,
: $this->runningCommand = null;
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:81: {
: ,
: return parent::doRun($input, $output);,
: }
},
***\Symfony\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:130: {
: $e = null;,
: $exitCode = $this->doRun($input, $output);,
: } catch (\Exception $x) {
},
***\Symfony\bin\console:28: {
: $application = new Application($kernel);,
: $application->run($input);,
:
}
}
}
]
[]
---- ---------------------------------- ------------------
Bundle Method / Error
---- ---------------------------------- ------------------
OK MainBundle absolute symlink
-> web/bundles/main
OK CoreSphereConsoleBundle absolute symlink
-> web/bundles/coresphereconsole
---- ---------------------------------- ------------------
[OK] All assets were successfully installed.
我以管理员身份启动了控制台,清理了缓存... 这真的很奇怪。
我正在使用Windows。
我认为正在做php composer.phar update
,因为它已将3.3.2
的{symfony'更新为3.3.3
并安装了twig/extensions
。
之前有效......
感谢您的帮助!
答案 0 :(得分:1)
AUTO ANSWER:https://github.com/symfony/symfony/issues/23373
似乎是与Symfony 3.3.3相关的问题......