-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[config:import:single] not works #3223
Comments
When I execute $ drupal -vvv cis --name "search_api.server.solr_6_4" --file search-api-solr-server.yml I get |
After upgrading to dev-master the command stopped working at all: $ drupal cis --help
ArgumentCountError: Too few arguments to function Drupal\Console\Command\Generate\CommandCommand::__construct(), 4 passed and exactly 5 expected in /var/www/html/vendor/drupal/console/src/Command/Generate/CommandCommand.php on line 68 #0 [internal function]: Drupal\Console\Command\Generate\CommandCommand->__construct(Object(Drupal\Console\Generator\CommandGenerator), Object(Drupal\Console\Extension\Manager), Object(Drupal\Console\Utils\Validator), Object(Drupal\Console\Core\Utils\StringConverter))
#1 phar:///usr/local/bin/drupal/vendor/symfony/dependency-injection/ContainerBuilder.php(928): ReflectionClass->newInstanceArgs(Array)
#2 phar:///usr/local/bin/drupal/vendor/symfony/dependency-injection/ContainerBuilder.php(468): Symfony\Component\DependencyInjection\ContainerBuilder->createService(Object(Symfony\Component\DependencyInjection\Definition), 'console.generat...')
#3 /var/www/html/vendor/drupal/console/src/Application.php(170): Symfony\Component\DependencyInjection\ContainerBuilder->get('console.generat...')
#4 /var/www/html/vendor/drupal/console/src/Application.php(41): Drupal\Console\Application->registerCommands()
#5 phar:///usr/local/bin/drupal/vendor/symfony/console/Application.php(122): Drupal\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/vendor/drupal/console/bin/drupal.php(68): Symfony\Component\Console\Application->run()
#7 phar:///usr/local/bin/drupal/src/Utils/Launcher.php(30): include_once('/var/www/html/v...')
#8 phar:///usr/local/bin/drupal/bin/drupal.php(86): Drupal\Console\Launcher\Utils\Launcher->launch('/var/www/html', Object(Composer\Autoload\ClassLoader))
#9 phar:///usr/local/bin/drupal/bin/drupal(3): require('phar:///usr/loc...')
#10 /usr/local/bin/drupal(10): require('phar:///usr/loc...')
#11 {main}
ArgumentCountError: Too few arguments to function Drupal\Console\Command\Generate\CommandCommand::__construct(), 4 passed and exactly 5 expected in Drupal\Console\Command\Generate\CommandCommand->__construct() (line 68 of /var/www/html/vendor/drupal/console/src/Command/Generate/CommandCommand.php). |
@csandanov can you try rebuild caches |
@jmolivas didn't help |
@csandanov I will try and ping you back |
@jmolivas thank you, you can reproduce the error by running Drupal 8 tests from docker4drupal project, just uncomment the tests and run |
@ultimike @csandanov The Same for inline mode
|
@ultimike @csandanov @igasi I think we can use only
|
config:import:single
not works
I did some changes on the command removing the Interactive mode:
Providing a
Providing
|
Excellent - thanks! -mike |
FYI, the --file option does not work with home directories (~): ie: ~/releases/release-x/config/sync/some.config.yml You need to provide the path without ~ : ie: /home/userx/releases/release-x/config/sync/some.config.yml This probably has something to do with tildes not being expanded by PHP's realpath: http://php.net/manual/en/function.realpath.php#121577. |
I ran into this in Drupal Console version 1.8.0. Using a path relative to the current directory gave this error. Changing the path of --directory to be relative to the Drupal root made it work. |
Hi there, |
Problem/Motivation
I was running the command
drupal config:import:single config.name --file=path/to/config.name.yml
and I got the messageApparently, the configuration has been imported, but
Details to include:
How to reproduce
Details to include:
Drupal 8.3.0-rc1
Solution
Ensure that
be an Array.
The text was updated successfully, but these errors were encountered: