ValeLang / Vale

Compiler for the Vale programming language - http://vale.dev/
https://vale.dev/
Apache License 2.0
1.79k stars 54 forks source link

Error on build: Assertion failed! #416

Open m910q opened 2 years ago

m910q commented 2 years ago

When building the following code on Windows:

exported func main() {
}

Produces this error:

Running:
c:\cmd\vale\midas.exe --verify --output_dir build build\vast\mypackagename.vast build\vast\stdlib.vast build\vast\__vale.vast
Region override: assist
Warning: not using census when in assist mode!
Assertion failed!

I did some testing:

It still produces the same error. So the Assertion failed! seems to come from Midas. I searched the generated Build folder for Assertion failed!, and found nothing.

Verdagon commented 2 years ago

This happens when we don't run it in the x86_x64 Cross Tools Command Prompt for VS 2019 shell... which shouldn't be necessary. I suspect this broke when we removed the old valec.py, which (IIRC) set up a session that mimicked the cross tools command prompt.

Until I fix this, temporary workaround is to run in a x86_x64 Cross Tools Command Prompt for VS 2019 shell.