Expecting end of line - mx2cc_windows.exe (fixed)

Community Forums/Monkey2 Talk/Expecting end of line - mx2cc_windows.exe (fixed)

therevills(Posted 2016) [#1]
mx2cc_windows.exe has stopped working...

I missed the ":" when assigning the iterator and it caused a crash:




marksibly(Posted 2016) [#2]
Not crashing here - using the latest version?

The last reported mx2cc crash was caused by the compiler attempting to semant even if parse failed (which *will* work eventually!) but I've taken that out for V1.0 which is likely to fix a lot of mx2cc crashes.


therevills(Posted 2016) [#3]
Just downloaded the latest from GitHub and now I get an error log instead of a crash...

"H:/Projects/monkey2/bin/mx2cc_windows" makeapp -target=Desktop -config=Debug "H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2"
MX2CC V0.008

***** Building app 'H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2' *****

Parsing...
H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [29] : Error : Expecting end of line
Build error: File "H:/Projects/monkey2/modules/mojo/input/native/keyinfo.h" not found
Build error: File "H:/Projects/monkey2/modules/mojo/input/native/keyinfo.cpp" not found
Semanting...

H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [29] : Error : VarValue.OnSemant() Internal Error
H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [30] : Error : Identifier 'it' not found
H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [31] : Error : Identifier 'it' not found
H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [32] : Error : Identifier 'b' not found
H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [33] : Error : Identifier 'b' not found
H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [34] : Error : Identifier 'it' not found
H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2 [36] : Error : Identifier 'it' not found
Done.


But when I fix up the code I now get:
"H:/Projects/monkey2/bin/mx2cc_windows" makeapp -target=Desktop -config=Debug "H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2"
MX2CC V0.008

***** Building app 'H:/Projects/monkey2/modules/mojo/bananas/mojotest/test.monkey2' *****

Parsing...
Build error: File "H:/Projects/monkey2/modules/mojo/input/native/keyinfo.h" not found
Build error: File "H:/Projects/monkey2/modules/mojo/input/native/keyinfo.cpp" not found
Semanting...
Done.



marksibly(Posted 2016) [#4]
Oops, forgot to add some files, try again.


therevills(Posted 2016) [#5]
Ta! Downloaded and rebuilding now... is there a faster way to rebuild mx2?

[edit - all good :)]