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

breaks with dox, any suggested work round ? #52

Open
nanjizal opened this issue Jun 30, 2020 · 1 comment
Open

breaks with dox, any suggested work round ? #52

nanjizal opened this issue Jun 30, 2020 · 1 comment

Comments

@nanjizal
Copy link

Just thought I would add dox to hxTShopify, but I am getting a lot of errors
Haxe Compiler 4.2.0-rc.1+5d48282d2 - (C)2005-2020 Haxe Foundation

/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:42: characters 13-18 : Unknown identifier : __uid
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:43: characters 3-8 : Unknown identifier : __uid
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:45: characters 3-8 : Unknown identifier : __uid
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Serializer.hx:616: characters 23-28 : hxbit.Schema has no field __uid
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Serializer.hx:680: characters 24-29 : hxbit.Schema has no field __uid
src/hxTShopify/t/ProductSerializer.hx:4: characters 7-24 : Field __uid needed by hxbit.Serializable is missing
src/hxTShopify/t/ProductSerializer.hx:4: characters 7-24 : Field getCLID needed by hxbit.Serializable is missing
src/hxTShopify/t/ProductSerializer.hx:4: characters 7-24 : Field getSerializeSchema needed by hxbit.Serializable is missing
src/hxTShopify/t/ProductSerializer.hx:4: characters 7-24 : Field serialize needed by hxbit.Serializable is missing
src/hxTShopify/t/ProductSerializer.hx:4: characters 7-24 : Field unserialize needed by hxbit.Serializable is missing
src/hxTShopify/t/ProductSerializer.hx:4: characters 7-24 : Field unserializeInit needed by hxbit.Serializable is missing
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:27: characters 7-13 : Field __uid needed by hxbit.Serializable is missing
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:27: characters 7-13 : Field getCLID needed by hxbit.Serializable is missing
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:27: characters 7-13 : Field getSerializeSchema needed by hxbit.Serializable is missing
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:27: characters 7-13 : Field serialize needed by hxbit.Serializable is missing
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:27: characters 7-13 : Field unserialize needed by hxbit.Serializable is missing
/usr/local/lib/haxeLibrary/hxbit/git/hxbit/Schema.hx:27: characters 7-13 : Field unserializeInit needed by hxbit.Serializable is missing

My ProductSerializer I have not looked at recently but I think it worked fine last time I used it:

package hxTShopify.t;
import hxTShopify.t.Product;
import hxbit.Serializable;
class ProductSerializer implements hxbit.Serializable {
    @:s public var product : Product;
    public function new( product_ ){
        product = ( product_: ProductWrapper );
    }
    public static function product2Bytes( p: Product ): haxe.io.Bytes {
        var productSerializer = new ProductSerializer( new ProductWrapper( p ) );// important make sure id's are String
        var s = new hxbit.Serializer();
        var bytesOut = s.serialize( productSerializer );
        return bytesOut;
    }
    public static function bytes2Product( bytesIn: haxe.io.Bytes ): Product {
        var u = new hxbit.Serializer();
        var productSerializerOut = u.unserialize( bytesIn, ProductSerializer );
        return productSerializerOut.product;
    }
}

To see the error:

-cmd haxe git folderNode https://github.com/nanjizal/folderNode.git
# -cmd haxe git hxbit https://github.com/HeapsIO/hxbit.git # you probably have already!!
-cmd git clone https://github.com/nanjizal/hxTShopify.git
-cmd cd hxTShopify
-cmd haxe generateJS.hxml # or # -cmd haxe generateDoc.hxml
@nanjizal
Copy link
Author

I commented out hxbit part to get dox to publish, but probably worth making libs compatible with dox if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant