Yeah, Zig only supports Unix line endings so you'll have to adapt your editor when programming in Zig.
Guys, we're going to see a lot more of this the more popular Zig becomes with Win32 devs, so I think it's time to consider outputting more explanation text for this error -- that it isn't a compiler error, and it's an error by design, etc.
Yeah, Zig only supports Unix line endings so you'll have to adapt your editor when programming in Zig.
Guys, we're going to see a lot more of this the more popular Zig becomes with Win32 devs, so I think it's time to consider outputting more explanation text for this error -- that it isn't a compiler error, and it's an error by design, etc.
How to solve this problem ?
change your editor to use \n rather than \r\n or, run zig fmt on your code
change your editor to use \n rather than \r\n or, run zig fmt on your code
I have solved this problem in a different way some seconds ago :)
Basically on Notepad++ i got selected the following stuff :
EOL Conversion = Unix
Encoding = UTF-8
Most helpful comment
I have solved this problem in a different way some seconds ago :)
Basically on Notepad++ i got selected the following stuff :
EOL Conversion = Unix
Encoding = UTF-8