HaxeFoundation / dox

Haxe documentation generator.
MIT License
146 stars 36 forks source link

Included lime gives error #263

Closed CrazyFlasher closed 5 years ago

CrazyFlasher commented 5 years ago

With included -lib lime I receive following error when run this command: haxe scripts/docs.hxml -xml build/js.xml

C:\Users\GANAPATI\projects\casinohx>haxe scripts/docs.hxml -xml build/js.xml
c:\HaxeToolkit\haxe\lib\lime/7,6,3/src/lime/_internal/backend/html5/HTML5HTTPRequest.hx:39: characters 21-34 : Type not found : _IHTTPRequest

docs.hxml

-lib munit
-lib hamcrest
-lib dox
-lib openfl
-lib DomWires
-lib actuate
-lib openfl-spine
-lib spine-hx
-lib lime
-lib spritesheet
-lib feathersui
-cp src
-D doc-gen
-xml build/js.xml
-js build/js_test.js
--macro include('com.ganapati.casino')
--no-output
-D RENDER_TILE
--remap flash:openfl
Simn commented 5 years ago

Whatever this is, it's not a Dox issue. Doesn't look like a Haxe issue either. Probably an OpenFL issue or maybe a you issue.

CrazyFlasher commented 5 years ago

Well, can I exclude lime somehow in this case?

CrazyFlasher commented 5 years ago

Why its openfl issue? openfl and lime works fine. Its dox issue

Gama11 commented 5 years ago

With Lime, you should use lime build <target> -xml to get your XML. From lime help build:

-xml -- Generate XML type information, useful for documentation

CrazyFlasher commented 5 years ago

lime library is used as dependency. Actually I don't want to include it to xml/ How can I build code, that uses lime as dependency to generate docs? @Simn why did you closed issue?!

Simn commented 5 years ago

Because this has nothing to do with dox and this is the dox repository.

Gama11 commented 5 years ago

How can I build code, that uses lime as dependency to generate docs?

I already told you. Using the lime command line tools does not imply including Lime APIs in the docs, that's a later step anyway (the XML always includes everything).

CrazyFlasher commented 5 years ago

Ok, I already fixed it. The issue caused redundant line: -js build/js_test.js