The "--migrate-debug" option does not exist.

Created on 27 September 2018, about 6 years ago
Updated 6 December 2023, 12 months ago

I installed your module via composer:

composer require drupal/devel
composer require drupal/migrate_devel
drush en -y migrate_devel

Then I run my migration as usual:
drush migrate-import --migrate-debug-pre migrate_xml_articles

Get an error:
The "--migrate-debug" option does not exist.

I tried to clear cache with 'drush cr' and tried 'drush cdi migrate_devel', then executed it again - the same error.

I tried shortcut too:
drush mim --migrate-debug migrate_xml_articles
The same error.

I tried to use it in the end of the command too:
drush mim migrate_xml_articles --migrate-debug
The same error too.

Drupal 8.6.1, clean install, migration is in a custom module. Without your prefix migration runs as expected without errors:
drush migrate-import migrate_xml_articles

Please, help - how to avoid this error message? What I am doing wrong?

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia Nikita Petrov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany robcast

    For me version 2.0-alpha2 of the module works with Drupal 9.5.8 / Drush 11.5.1 after I remembered to run drush en migrate_devel :-)

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht

    Is this still an issue with older drush versions?

  • πŸ‡ΊπŸ‡ΈUnited States amaisano Boston

    I'm using the brand new release for D10 that came out today and am getting these errors as well. Using Drush 11.x.

  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht

    LMAC-1FPJGH8-AG:src amo23$ drush ms --migrate-debug

    I think there is no --migrate-debug option for the drush ms command

    It does works for the migrate:import command.

    But I see it is mentioned in the readme that it also should work for migrate:status. I am unsure what this option is supposed to do form the migrate:status command. What did you expect to happen?

  • πŸ‡ΊπŸ‡ΈUnited States amaisano Boston

    Right. The command --migrate-debug command works fine for the migrate:import command. --migrate-debug-pre doesn't seem to be doing anything however.

    I was hoping to see debug output BEFORE doing the import, which is why i hoped the README was right about the migrate:status be compatible with the debug command, so it can show me "all that it sees" prior to performing the import, which I think was the original idea.

  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht

    From what I can see in the code:

    The option --migrate-debug-pre runs before the row is saved and --migrate-debug runs after the row is saved.
    So --migrate-debug-pre does not prevent the row from being saved. It just runs before

    In the older drush versions both options (--migrate-debug-pre and --migrate-debug) worked in combination with migrate:status as triggers to clear the cache and import the migration configuration. In newer drush versions this does not seem to happen.

    I suppose the documentation needs to be clarified for this part, but maybe first the old drush code must be cleaned up.

  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht

    Feel free to re-open if you think this still needs to be fixed somehow

  • Status changed to Active about 1 year ago
  • πŸ‡·πŸ‡ΈSerbia kliker

    I needed to check couple of migrations and I realized that drush is nor recognising --migrate-debug.

    I tried both v2.2 and v2.1 versions of the Migrate Devel:

    v2.2

    $ lando drush mim upgrade_d7_field --limit=1 --migrate-debug
    The "--migrate-debug" option does not exist.
    

    drush help migrate:import is not listing --migrate-debug under Options

    v2.1

    drush help migrate:import is listing --migrate-debug under Options but debug info does not show up below the migrate-import notice.

    $ lando drush mim upgrade_d7_field --limit=1 --migrate-debug
    [notice] Processed 1 item (0 created, 0 updated, 0 failed, 1 ignored) - done with 'upgrade_d7_field'
    

    Am I missing something?

    Drush Commandline Tool 11.6.0
    Drupal version : 9.5.11
    PHP version : 8.1.21

  • πŸ‡³πŸ‡ΏNew Zealand jonathan_hunt

    * PHP 7.433
    * Drupal 9.5.11
    * Drush 11.0.2
    * Migrate devel 2.2 The "--migrate-debug" option does not exist.

    Downgraded to Migrate devel 2.1, "--migrate-debug" works as expected.

  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht

    I noticed this as well. I will look into this.

    So for user that run into this problem: you can downgrade to version 2.1

  • πŸ‡§πŸ‡·Brazil carolpettirossi Campinas - SP

    Same as #18.

    I had to downgrade to 2.1

  • πŸ‡¬πŸ‡§United Kingdom thetwentyseven

    Downgrading to 2.1 works because the 2.2 version the file drush.services.yml is missing.

  • πŸ‡¬πŸ‡§United Kingdom thetwentyseven

    If you updated to 2,2 here it is the patch

  • Status changed to RTBC about 1 year ago
  • πŸ‡·πŸ‡ΈSerbia kliker

    Thank you @thetwentyseven, your patch resolves the v2.2 issue.

  • πŸ‡ΊπŸ‡ΈUnited States pbabin

    @thetwentyseven - thank you for the patch!

  • πŸ‡ΊπŸ‡ΈUnited States amaisano Boston

    RTBC?

  • Status changed to Fixed about 1 year ago
  • πŸ‡³πŸ‡±Netherlands batigolix Utrecht

    Thanks everybody for fixing & reviewing this. I ll create a new release with this fix

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Fixed 12 months ago
  • πŸ‡¬πŸ‡§United Kingdom thetwentyseven
Production build 0.71.5 2024