Open xunto opened 3 years ago
Something is crashing when it tries resolving some types. Maybe a typedef of typedef or anon. Is the lib open source?
Otherwise you can try checking out the lib from git (you can use haxelib git
for that) and modify the code in Selector.hx
at line 88 and guard for ab.impl
being null
. Maybe trace(ab)
in this case to see what type it's trying to resolve.
@elsassph Hi, thank you for your answer! I tried to do what you asked. The library is not opensource yet.
Output:
#REDACTED#/.haxelib/hxtsdgen/git/src/hxtsdgen/Selector.hx:88: {module: Class, impl: null, name: Class, isPrivate: false, from: [], unops: [], binops: [], doc:
An abstract type that represents a Class.
See `Type` for the Haxe Reflection API.
@see https://haxe.org/manual/types-class-instance.html
, params: [{name: T, t: TInst(Class.T,[])}], array: [], pos: #pos(/usr/share/haxe/std/Class.hx:30: characters 27-47), pack: [], resolveWrite: null, resolve: null, meta: {get: #fun, remove: #fun, has: #fun, extract: #fun, add: #fun}, to: [], type: TAbstract(Class,[TInst(Class.T,[])]), __t: haxe.macro.TypeDecl}
Seems to be a problem with the Class
class. I use it a lot in my custom EventBus (to register to an event).
Hi, wanted to try to generate types for my lib using this library but get that not really informative error: