OXIDprojects / oxid_modules_config

OXID Module Configuration Im-/Exporter module by OXID Professional Services
GNU General Public License v3.0
3 stars 9 forks source link

InvalidArgumentException #48

Open BattleMoench opened 4 years ago

BattleMoench commented 4 years ago

i have an invalid argument exception now when using config:import command ([Symfony\Component\Console\Exception\InvalidArgumentException] The "shop" option does not exist. )

I am sure, that shop-config option has to defined in commando before requesting it in the core.

BattleMoench commented 4 years ago

i added

        ->addOption(
    'shop',
    's',
    InputOption::VALUE_OPTIONAL,
    "test"
);

to commandbase and error is not poping up anymore

alfredbez commented 4 years ago

Which version of the oxid-console and oxid_modules_config do you use?

i have an invalid argument exception now [...]

What do you mean by now? Did you change something lately?

BattleMoench commented 4 years ago

modules-config: 6.0.0-beta5 oxid-console: 6.0.0-beta3 symfony/console: 2.8.3 (quite old ...)

i did some composer:install/update changes, nothing more. TeamMember do not see this error yet. Perhaps symfony console was updated. I am nearly sure, that i ran into https://github.com/symfony/console/blob/e4a70bd8c5a4382630197b7b87910b3fc0e6b526/Input/Input.php#L147, so providing a commando Option fixed the issue

alfredbez commented 4 years ago

Try to update to the latest version, the problem is known in the beta version and already fixed.

I recommend to use these versions in your composer.json:

oxid-professional-services/oxid-modules-config: "^6.0",
oxid-professional-services/oxid-console: "^6.0",

After you changed that in the composer.json you need to run composer update oxid-professional-services/oxid-console oxid-professional-services/oxid-modules-config to update both packages.

Let me know if that solved your issue or not.