[GH-ISSUE #52] A Symfony error about indentation with tabs #178

Closed
opened 2026-03-07 20:41:51 +03:00 by kerem · 1 comment
Owner

Originally created by @rolka on GitHub (Jun 13, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/52

Hi, I ran this: php dbdiff server1.db1:server1.db2 and got an error about indentation with tabs

> php dbdiff server1.db1:server1.db2
✖ Unexpected error: A YAML file cannot contain tabs as indentation at line 27 (near "           ").

Fatal error: Uncaught Symfony\Component\Yaml\Exception\ParseException: A YAML file cannot contain tabs as indentation at line 27 (near "                "). in C:\dbdiff\DBDiff\vendor\symfony\yaml\Parser.php:125
Stack trace:
#0 C:\dbdiff\DBDiff\vendor\symfony\yaml\Parser.php(80): Symfony\Component\Yaml\Parser->doParse('output.sql', false, false, false)
#1 C:\dbdiff\DBDiff\vendor\symfony\yaml\Yaml.php(65): Symfony\Component\Yaml\Parser->parse('server1:\r\n user...', false, false, false)
#2 C:\dbdiff\DBDiff\src\Params\FSGetter.php(19): Symfony\Component\Yaml\Yaml::parse('server1:\r\n user...')
#3 C:\dbdiff\DBDiff\src\Params\ParamsFactory.php(20): DBDiff\Params\FSGetter->getParams()
#4 C:\dbdiff\DBDiff\src\DBDiff.php(18): DBDiff\Params\ParamsFactory::get()
#5 C:\dbdiff\DBDiff\dbdiff(8): DBDiff\DBDiff->run()
#6 {main}
  thrown in C:\dbdiff\DBDiff\vendor\symfony\yaml\Parser.php on line 125

How can I fix this?

Originally created by @rolka on GitHub (Jun 13, 2017). Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/52 Hi, I ran this: php dbdiff server1.db1:server1.db2 and got an error about indentation with tabs ``` > php dbdiff server1.db1:server1.db2 ✖ Unexpected error: A YAML file cannot contain tabs as indentation at line 27 (near " "). Fatal error: Uncaught Symfony\Component\Yaml\Exception\ParseException: A YAML file cannot contain tabs as indentation at line 27 (near " "). in C:\dbdiff\DBDiff\vendor\symfony\yaml\Parser.php:125 Stack trace: #0 C:\dbdiff\DBDiff\vendor\symfony\yaml\Parser.php(80): Symfony\Component\Yaml\Parser->doParse('output.sql', false, false, false) #1 C:\dbdiff\DBDiff\vendor\symfony\yaml\Yaml.php(65): Symfony\Component\Yaml\Parser->parse('server1:\r\n user...', false, false, false) #2 C:\dbdiff\DBDiff\src\Params\FSGetter.php(19): Symfony\Component\Yaml\Yaml::parse('server1:\r\n user...') #3 C:\dbdiff\DBDiff\src\Params\ParamsFactory.php(20): DBDiff\Params\FSGetter->getParams() #4 C:\dbdiff\DBDiff\src\DBDiff.php(18): DBDiff\Params\ParamsFactory::get() #5 C:\dbdiff\DBDiff\dbdiff(8): DBDiff\DBDiff->run() #6 {main} thrown in C:\dbdiff\DBDiff\vendor\symfony\yaml\Parser.php on line 125 ``` How can I fix this?
kerem closed this issue 2026-03-07 20:41:51 +03:00
Author
Owner

@jasdeepkhalsa commented on GitHub (Jun 13, 2017):

Try removing any tabs you might have in your .dbdiff file. If you can't see tabs, use an editor which allows you to see hidden characters like spaces (Atom is a good editor with the Toggle Invisibles option)

<!-- gh-comment-id:308108976 --> @jasdeepkhalsa commented on GitHub (Jun 13, 2017): Try removing any tabs you might have in your `.dbdiff` file. If you can't see tabs, use an editor which allows you to see hidden characters like spaces ([Atom](https://atom.io/) is a good editor with the `Toggle Invisibles` option)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DBDiff#178
No description provided.