Parsing Errors
Parsing errors occur when there are formatting errors. For example missing commas, extra quotes, and indenting. These usually occur off platform and happen when trying to merge a remote branch into your current local branch.
When a parsing error occurs, the Git Modal will open a Parsing Error screen and jump to the error message. There you can fix the error then merge your changes.
Read Parsing Errors
In this example, you can see there is a parsing error on line 3, it's highlighted. You can hover over it for more information.
This tells you the error, bad indentation, and the line and character. Around line 3 and column 8 there should be an error. The system is giving you the best estimate where the error is. The line and column is a starting point to find the error.
To solve the error in the example, you can remove the commas. We know it's the commas because YAML files don't have commas in them. Go to your Git provider and remove the commas. Then resync the branch in Coalesce.
You'll need to resync as many times as needed to solve the error.
Common Parsing Errors
Bad indentation of mapping entry can occur because:
- Missing quotation marks.
- Mismatched quotation marks. Single versus double quotes.
- Incorrect indentation.
- Extra or missing commas.
Block mapping entry or implicit mapping pair can occur because:
- Missing colon.
Other Parsing Errors
These are some other parsing errors you may encounter and how to solve them.
Cannot destructure property 'type' of 'parsedFileData' as it is undefined
. To fix:- Delete the file.
- Restore the file from the previous commit