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

HEMTT failing to build project with malformed preprocess error #109

Closed
JonBons opened this issue May 2, 2019 · 5 comments
Closed

HEMTT failing to build project with malformed preprocess error #109

JonBons opened this issue May 2, 2019 · 5 comments
Labels
invalid This doesn't seem right

Comments

@JonBons
Copy link

JonBons commented May 2, 2019

HEMTT Version: 0.6.0
Project: https://drive.google.com/file/d/17uCOmBvWEZc_kjsaB1R8Gms3sUljDTG9/view?usp=sharing

Description:

I've been able to build this project with makepbo just fine but when using HEMTT I get the error, included is another hpp data_working.hpp that has had indentation converted to spaces and HEMTT builds that file just fine.

HEMTT Output:

.\hemtt.exe build
  Building 1
error: addons\example
Failed to build PBO:
Failed to parse config:
Failed to preprocess config:
Failed to preprocess include "data.hpp":
In line \\?\C:\Users\JonBons\Documents\GitExt\hemtt-example\addons\example\data.hpp:0:

 };iDispersionCoefY = 0;ncher {Base {0_F {_Pistol_heavy_02_F {
                             ^

", expected: "\n", "##", "\r\n", "[a-zA-Z0-9_]", "[^\"\r\n]", "\\\\", "\\", "/*", "\"", "//", "#"
     Built 0
    Failed 1 [example]
  Finished TEST
@BrettMayson BrettMayson added bug Something isn't working external invalid This doesn't seem right and removed bug Something isn't working labels May 3, 2019
@BrettMayson
Copy link
Owner

BrettMayson commented May 3, 2019

I believe this is being caused by the Windows CRLF ^M character. Try switching to LF in your IDE. If that fixes the issues it should be an issue filled with armake2 as an incompatibility with CRLF.

@jonpas
Copy link
Collaborator

jonpas commented May 3, 2019

There is a PR open for more CRLF fixes in armake2.

@BrettMayson
Copy link
Owner

Missed that, closing here in favour of armake2 PR #29.

@Krzmbrzl
Copy link

Krzmbrzl commented May 7, 2019

I believe the PR only takes care of the malformed error message (the question mark in the beginning). I wouldn't be aware that it fixes the root of any error though...

Although it might be worth to just try it out and see whether it fixed something "by accident"

@Krzmbrzl
Copy link

Krzmbrzl commented May 7, 2019

So the problem wasn't about windows-newlines but because of (old) mac newlines which consist of single carriage return characters
This problem gets addressed in KoffeinFlummi/armake2#40 - just so the correct PR is referenced here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

4 participants