Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

built test fails with invalid carriage return #1191

Closed
BarabasGitHub opened this issue Jul 3, 2018 · 2 comments
Closed

built test fails with invalid carriage return #1191

BarabasGitHub opened this issue Jul 3, 2018 · 2 comments
Milestone

Comments

@BarabasGitHub
Copy link
Contributor

BarabasGitHub commented Jul 3, 2018

I followed the guide here: https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows
And when performing the last step I get the following error.

I did use my existing visual studio 2015 install (and also tried with 2017, but got the same error) which is:

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

The error I got was:

E:\Zig\build-release>bin\zig.exe build --build-file ..\build.zig test
docgen example code 1/116...E:\Zig\docgen_tmp\hello.zig:1:1: error: invalid carriage return, only '\n' line en
dings are supported

The following command exited with code 1:
build-release\bin\zig.exe build-exe docgen_tmp\hello.zig --output docgen_tmp\hello.exe
doc/langref.html.in:108:31: error: example failed to compile
      {#code_begin|exe|hello#}
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: ParseError
Unable to dump stack trace: Unable to open debug info: TodoSupportCoffDebugInfo
The following command exited with error code 1:
cd .\.. && zig-cache\docgen.exe build-release\bin\zig.exe doc/langref.html.in zig-cache\langref.html
error: UncleanExit
Unable to dump stack trace: Unable to open debug info: TodoSupportCoffDebugInfo

Build failed. The following command failed:
.\..\zig-cache\build bin\zig.exe .\.. .\..\zig-cache test

tiehuis added a commit that referenced this issue Jul 4, 2018
@tiehuis
Copy link
Member

tiehuis commented Jul 4, 2018

Do you have autocrlf set in your git settings?

git config --global --get core.autocrlf

I've made a change to the gitattributes file to explicitly use '\n only for line endings for that file. Let me know if this solves the issue.

@andrewrk andrewrk added this to the 0.3.0 milestone Jul 4, 2018
@BarabasGitHub
Copy link
Contributor Author

Yes, that was it. I had to redo the clone to fix it. Who ever thought that was a good default?? 😕

@andrewrk andrewrk closed this as completed Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants