Alessandro Vermeulen Alessandro Vermeulen's blog about languages, programming, Computer Science and the Web.

1Jan/101

Doctrine: Unable to parse string: Unable to parse line 0 (

Normally this error would mean that you have some weird syntax error somewhere in your yml files. However, if you are sure everything is up to spec be sure to check whether there are any `hidden' files in the folder. Such files start with a dot and are also read and parsed by the command line generator.

This could potentially fail, in case you get the aforementioned error. Be sure to remove these files before proceeding. To check whether there are any, go to the directory and retrieve it's listing.

cd /some/path/to/your/yml/files
ls -lha

If you see any files starting with a dot and ending in .yml be sure to check them for any valuable content and throw them away.

Thanks to rajat pandit for hinting to this solution.

Comments (1) Trackbacks (0)
  1. Thanks – This was driving me crazy

    cheers,
    dave


Leave a comment


No trackbacks yet.