SomeRanDev / reflaxe.CPP

An alternative C++ target for Haxe that generates dependent-less, GC-less C++17 code.
MIT License
72 stars 5 forks source link

Unable to run test project #52

Open neimanpinchas opened 1 month ago

neimanpinchas commented 1 month ago

I decided to try reflaxe and I received a lot of errors.

So I tried to keep things simple, and downloaded the test project from the repo. same.

Tried with nightly and with main.

S C:\Users\ps\Downloads\reflaxe.CPP-main> haxelib git reflaxe.cpp https://github.com/SomeRanDev/reflaxe.CPP main  
You already have reflaxe.cpp version git installed.
Overwrite branch: <unspecified> with "main" [y/n/a] ? a
Installing reflaxe.cpp from https://github.com/SomeRanDev/reflaxe.CPP branch: main
Installing dependency reflaxe
You already have reflaxe version git installed.
Updating reflaxe version git ...
reflaxe was updated
Library reflaxe current version is now git
PS C:\Users\ps\Downloads\reflaxe.CPP-main> haxe .\test\sample_project\Test_WithHaxelib.hxml                        
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/subcompilers/Types.hx:231: characters 10-22 : Type not found : cxx.Compiler
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/subcompilers/Types.hx:229: lines 229-246 : Void should be Null<String>
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/subcompilers/Expressions.hx:854: characters 16-28 : Type not found : cxx.Compiler
t found : cxx.Compiler
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/Compiler.hx:840: characters 15-27 : Type not found : cxx.Compiler
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/Compiler.hx:862: characters 6-15 : Type not found : cxx.CMake
PS C:\Users\ps\Downloads\reflaxe.CPP-main> haxe .\test\sample_project\Test_WithHaxelib.hxml
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/subcompilers/Types.hx:231: characters 10-22 : Type not found : cxx.Compiler
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/subcompilers/Types.hx:229: lines 229-246 : Void should be Null<String>
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/subcompilers/Expressions.hx:854: characters 16-28 : Type not found : cxx.Compiler
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/subcompilers/Expressions.hx:428: characters 35-47 : Type not found : cxx.Compiler
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/Compiler.hx:840: characters 15-27 : Type not found : cxx.Compiler
C:\HaxeToolkit\haxe\lib\reflaxe,cpp/git/src/cxxcompiler/Compiler.hx:862: characters 6-15 : Type not found : cxx.CMake
PS C:\Users\ps\Downloads\reflaxe.CPP-main>
neimanpinchas commented 1 month ago

I ran some commands that fixed the issue, but I have no idea how.

Created a symlink cxx to folder cxxcompiler Replaced all instances of \bcxx\b to cxxcompiler git stash deleted cxx symlink git pull origin nightly no I have a cxx folder and compilation is working

SomeRanDev commented 1 month ago

Apologies for the delay! You need to install the nightly branch:

haxelib git reflaxe.cpp https://github.com/SomeRanDev/reflaxe.CPP nightly

And also use Test.hxml to run tests:

haxe Test.hxml

Use help to see all the arguments you can use for tests:

haxe Test.hxml help