Gitpod: copy and paste \r\n

Created on 1 Dec 2018  Â·  1Comment  Â·  Source: gitpod-io/gitpod

Describe the bug
When on a windows machine, I often copy & paste the shebang of a file like

#!/usr/bin/env groovy

but when I try to run the file, I get the following error:

/usr/bin/env: ‘groovy\r’: No such file or directory

To Reproduce
Copy & paste between files

Expected behavior
It seems that on windows, a \n gets replaced with \r\n
Expected is that this does not happen.

bug

Most helpful comment

@rdmueller change .editorconfig to end_of_line = lf or if you don't have that file try to change it manually!
i guess that's the causer!

>All comments

@rdmueller change .editorconfig to end_of_line = lf or if you don't have that file try to change it manually!
i guess that's the causer!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ColbyWTaylor picture ColbyWTaylor  Â·  3Comments

LinqLover picture LinqLover  Â·  3Comments

Kreyren picture Kreyren  Â·  3Comments

Kreyren picture Kreyren  Â·  3Comments

alesanchezr picture alesanchezr  Â·  3Comments