I'm having issues with a bin/magento setup:install. We have custom modules that we initialise using git submodules. These modules are being put into app/code/<vendor>.
Now I must inform you that we extend the Magento 2 Console to add extra commands and ONLY those modules are giving the errors. If we disable the part in the di.xml that inserts these, everything works just fine.
Image below for the folder structure:
(The ImportCategoryIds.php is the culprit in this case)
Here's the aforementioned file:
Here's the di.xml part where we include it:
And here's the error we get:
If you might have any clue as to why this might be happening, please let me know. I've been stuck on this for a good while.