Closed clubby789 closed 6 years ago
We won’t be automatically fixing line endings because it could be a symptom of other issues. You’re building for a Unix(-alike) platform so you should be using Unix line endings. That said, there should be communication about this, so I’ve done that in theos/dm.pl@60af184.
Is there a way to save files in Unix format from Notepad? Notepad++ does it properly, but doesn't save the file back to the device through Cyberduck
Notepad doesn’t have any support for converting line endings (in fact it only just got support for displaying files with Unix endings correctly!). You need to use pretty much any proper code editor (Notepad++, Sublime, VSCode, etc) which usually has it somewhere in the menus or the bottom status bar. Cyberduck might have an option somewhere to change line endings to Unix while uploading and Windows when downloading.
You might also want to consider using rmate. This lets you run rmate myfile.m
in SSH to have the file seamlessly copied to your PC for you to edit, then copied back every time you save. There’s rsub for Sublime, Remote VSCode for VSCode, etc. for your PC, and rmate is installed on the device. See this tutorial if you use PuTTY.
Thanks!
I did most of a tweak I made in Notepad through cyberduck, and I later wasted around 2 hours trying to work out why compilation was failing. It would be nice to automatically strip the DOS characters from files.