Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Windows development line-ending error in sync-gateway and backend #8

Closed
giesberge opened this issue Mar 27, 2019 · 4 comments
Closed

Comments

@giesberge
Copy link

When developing from windows I get the error:

Problem with /usr/bin/env: “bash\r”

And other issues related to the line endings, I added dos2unix to the dockerfile builds

@tiangolo
Copy link
Owner

I would suggest you configure your Git with git config --global core.autocrlf input: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

If you are using a modern editor, like Microsoft Visual Studio Code, it will be able to use Linux line endings without a problem.

And that might also help you with other projects.

@giesberge
Copy link
Author

Using pycharm, I might have to look into it. If I edit the file I'd have problems still and the git won't solve that for local development. The pull request I think might be a simple solution without requiring any external configuration on people's computers.

@tiangolo
Copy link
Owner

Thanks! This should be fixed in #28 🎉

@github-actions
Copy link

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants