Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Problem with line endings in code


Go to End


2042 Views

Avatar
HarryKC

Community Member, 8 Posts

13 December 2008 at 1:08am

I tried to go trough the tutorials and the moment I created a new file (ArticlePage) I run into problems with line endings in that file. (Also tried out Aptana Studio - and still cand find where to set the default line ending type)

The editor created a new file with mac line endings and soon as I tried to do db/build nothing happend. And after a while and many ways to hunt down the problem I stumbled upon the line endings. As soon as I converted them into unix or windows type all worked well.

If your code refuses to build and there should be no syntax on other errors and you're a developer on Mac try to convert the line endings.

Happy SilverSriping and coding

Harry