misprintt / mockatoo

A cross platform mocking framework for Haxe. Supports JavaScript, Flash, C++, PHP and Neko.
MIT License
49 stars 31 forks source link

Doesn't work with Haxe SVN? #13

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi,

this lib looks fantastic, great work on the documentation, too! But I got a problem: when I add the mockatoo import to a source file:

import mockatoo.Mockatoo; using mockatoo.Mockatoo;

... and try to build the project I get a warning and an error:

D:\dev\bin\haxe\lib\mockatoo/1,3,1/mockatoo/util/TypeEquality.hx:15: characters 14-15 : Warning : This variable is unused File "matcher.ml", line 153, characters 65-71: Assertion failed Build halted with errors (haxelib.exe).

I use the latest Haxe build (5915) on Window 7 64bit, because I need some macro functionality thats not available in 2.10. Is that the problem and is there an perhaps easy fix?

Best, Stefan

misprintt commented 11 years ago

I have been holding off updating until the haxe 3 release candidate comes out and the APIs are stabilized (otherwise it would require regular updates as haxe svn changes).

Mockatoo depends on tink macros for a bunch of low level APIs. Because almost every haxe svn change impacts the macro type system, it is regularly incompatible with svn. I created an a fork of tink macros a while back to get mockatoo (and mcover) compiling with haxe svn, but it too would be incompatible by now (https://github.com/massiveinteractive/tinkerbell/tree/haxe_211).

Feel free to submit a patch if you know your way around these things, otherwise I'll try to have a look at it again in the coming week.

ghost commented 11 years ago

I'd probably find a way, but it would be a long and curvy one... :) So, let's wait for the Haxe 3 RC! I close the issue since it's not really an issue of the lib, ok? Thanks for your quick response! Best, Stefan