badcreature / caffeine-hx Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/caffeine-hx
License: Other
Automatically exported from code.google.com/p/caffeine-hx
License: Other
Currently the package context contains an alphabetically sorted list of all
types.
It would be useful to be able to group same types together under headings
(e.g.all interfaces under 'interfaces' and all classes under 'classes')
Because the templating system doesn't support a mechansim to determine if the
'types' array contains one or more of a specific types, this could be achieved
by adding one of the following to the PackageContext typedef
Either boolean flag to indicate if available in package
PackageContext.containsInterfaces
PackageContext.containsClasses
etc
or provide additional arrays of filtered types
PackageContext.interfaceTypes
PackageContext.classTypes,
etc
Original issue reported on code.google.com by [email protected]
on 27 Aug 2012 at 2:55
What steps will reproduce the problem?
1. Windows 7, Haxe 2.10, chxdoc 1.2.0 (installed via haxelib)
2. "haxelib run chxdoc compile" produces chxdoc.n file (approx 237KB)
3. "nekotools boot chxdoc.n" produces chxdoc.exe file (approx 240KB)
4. however, "haxelib run chxdoc install" produces chxdoc.exe file of only 8KB,
which throws neko exception on being run.
What is the expected output? What do you see instead?
Expect chxdoc.exe with size 240KB.
Actual chxdoc.exe is only 8KB
What version of the product are you using? On what operating system?
Windows 7 (tried on both 32-bit and 64-bit)
Haxe 2.10
Neko 1.8.2
Chxdoc 1.2.0 (installed via "haxelib install chxdoc")
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 19 Sep 2012 at 3:20
What steps will reproduce the problem?
1. run chxdoc with an xml path that is absolute
What is the expected output? What do you see instead?
chxdoc fails to load xml
What version of the product are you using? On what operating system?
chxdoc 0.9.2, osx 10.6
Please provide any additional information below.
ChxDocMai.loadXmlFiles asumes the xml file is relative to config.xmlBasePath.
This should really check if the xml path is absolute and only prepend the base
path if it isn't
Original issue reported on code.google.com by [email protected]
on 23 Jan 2011 at 11:27
since HaXe 2.05, -xml produces a slightly different xml output thus feeding
chxdoc with this file generates faulty method descriptions (basically all
methods are treated as fields)
Original issue reported on code.google.com by [email protected]
on 26 Jul 2010 at 11:07
What steps will reproduce the problem?
1. Run as3hx on the following source program:
package {
public class Foo {
private static var objlit:Object = {
//
"stuff": 42
};
public function Foo() {
}
}
}
2. Observe crash
3. Compile again with the following:
package {
public class Foo {
private static var objlit:Object = {
"stuff": 42
};
public function Foo() {
}
}
}
4. Observe success!
What is the expected output? What do you see instead?
class Foo {
static var objlit : Dynamic = {
stuff : 42
};
public function new() {
}
}
What version of the product are you using? On what operating system?
Using as3hx on cygwin/Windows 7.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 25 Apr 2013 at 2:16
Pretty Printing of Type Paramters:
function <A, B, X, Y>(x:Tuple2<XY>):Tuple2<AB>
becomes
function <A, B, X, Y>(x:Tuple2<X, Y>):Tuple2<A, B>
with this patch
Original issue reported on code.google.com by [email protected]
on 6 Jan 2012 at 3:42
Attachments:
What steps will reproduce the problem?
1. create a generic function
2. generic type includes function name in function signature
What is the expected output? What do you see instead?
for:
class MyClass {
public static function myFunction<T>(parameter : T) : T {
}
}
expect: public myFunction<T>(parameter : T) : T
actual: public myFunction<T>(parameter : myFunction.T) : myFunction.T
What version of the product are you using? On what operating system?
chxdoc_1_1_2 / haxe 2.09 / windows 7 / chrome
Original issue reported on code.google.com by [email protected]
on 20 Jun 2012 at 1:34
compiles, but untested
Original issue reported on code.google.com by [email protected]
on 9 Feb 2013 at 8:16
Attachments:
What steps will reproduce the problem?
1. I ran command like below.
chxdoc -o /docs --developer=true --policy=deny --allow=com.gamebase.* -f
document.xml
What is the expected output? What do you see instead?
I expected chxdoc generate html file.
But output is below:
Running command: BUILD
- Running command: haxe Export/html5/haxe/release.hxml
ChxDoc Generator 1.3.0 - (c) 2008-2012 Russell Weir
Called from ? line 1
Called from chxdoc/ChxDocMain.hx line 407
Called from chxdoc/ChxDocMain.hx line 1005
Called from chxdoc/ChxDocMain.hx line 1025
Called from haxe/rtti/XmlParser.hx line 87
Called from haxe/rtti/XmlParser.hx line 312
Called from haxe/rtti/XmlParser.hx line 322
Called from haxe/rtti/XmlParser.hx line 485
Called from haxe/rtti/XmlParser.hx line 307
Uncaught exception - Invalid this
What version of the product are you using? On what operating system?
- Haxe Compiler 3.1.1
- Haxe Library Manager 3.1.0-rc.4
- ChxDoc Generator 1.3.0
Please provide any additional information below.
I'm working on Windows.
Original issue reported on code.google.com by [email protected]
on 22 May 2014 at 7:57
Attachments:
What steps will reproduce the problem?
1. Try to convert attached file
What is the expected output? What do you see instead?
The problem is in the last small function - setDefaults():
private function setDefaults():void {
if (params==null) {
params = new Object();
}
for (var key:String in defaults) {
if (params[key]==null) {
params[key]=defaults[key];
}
}
}
it seems that the problem causes following line:
params[key]=defaults[key];
as3hx causes stack overflow, trying to write it
for some reason istead of something like
Reflect.setField( params, key, Reflect.field(defaults, key) );
it is writing the long string
Reflect.setField( params, key, Reflect.setField(defaults, Reflect.setField...
and so on, and then stops working.
What version of the product are you using? On what operating system?
haXe 2.09, as3hx SVN version
Original issue reported on code.google.com by [email protected]
on 5 Jul 2012 at 3:23
Attachments:
The generated documentation contains some mysterious information after the
method names like:
getNum(default,method)
It must be important to someone, I'm not arguing that, my problem is that the
HTML is not structured enough to hide these things with CSS.
Original issue reported on code.google.com by [email protected]
on 6 Dec 2011 at 10:27
This lib seems not to be available on the new haxelib, will it be released
there?
Original issue reported on code.google.com by [email protected]
on 27 Jul 2013 at 2:26
When trying the second required step to use chxdoc, I hit these errors:
>> Compiling in /usr/lib/haxe/lib/chxdoc/1,1,2/...Run.hx:95:
chx/Serializer.hx:182: characters 44-45 : {+ __serializeHash : Void ->
Unknown<0> } should be EnumValue
chx/Serializer.hx:182: characters 44-45 : For function argument 'e'
chxdoc/ChxDocMain.hx:569: characters 12-32 : Cannot access to private field kind
Called from ? line 1
Called from Run.hx line 28
Called from Run.hx line 96
Uncaught exception - Error while compiling. Check that haxe is installed.
I can get rid of the error in ChxDocMain by simply commenting out those lines
(it seems kind() has been removed at some point), but I don't yet have the
aptitude to understand what I need to do for the Serializer error.
I clearly have Haxe installed:
haXe Compiler 2.09 - (c)2005-2012 Motion-Twin
Perhaps some recent changes to Haxe caused the compilation to break?
Original issue reported on code.google.com by [email protected]
on 10 May 2012 at 10:28
It would make sense not to copy-paste comments.
Original issue reported on code.google.com by [email protected]
on 11 Apr 2012 at 1:10
What is the expected output? What do you see instead?
'switch' statements are converted in a weird way.
What version of the product are you using? On what operating system?
AS3HX SVN version.
Please provide any additional information below.
Source AS3:
override protected function fixLineAlign(value:String):String
{
switch (value)
{
case LayoutAlign.TOP_LEFT:
case LayoutAlign.BOTTOM_LEFT:
return LayoutAlign.LEFT;
case LayoutAlign.TOP:
case LayoutAlign.BOTTOM:
return LayoutAlign.CENTER;
case LayoutAlign.TOP_RIGHT:
case LayoutAlign.BOTTOM_RIGHT:
return LayoutAlign.RIGHT;
default:
return value;
}
return value;
}
Converted output:
switch(value) {
case LayoutAlign.TOP_LEFT, LayoutAlign.BOTTOM_LEFT, LayoutAlign.TOP, LayoutAlign.BOTTOM, LayoutAlign.TOP_RIGHT, LayoutAlign.BOTTOM_RIGHT:
switch(value) {
case LayoutAlign.BOTTOM_LEFT:
return LayoutAlign.LEFT;
}
switch(value) {
case LayoutAlign.BOTTOM:
return LayoutAlign.CENTER;
}
return LayoutAlign.RIGHT;
return value;
default:
return value;
}
return value;
Expected output:
switch(value) {
case LayoutAlign.TOP_LEFT,LayoutAlign.BOTTOM_LEFT:
return LayoutAlign.LEFT;
case LayoutAlign.TOP,LayoutAlign.BOTTOM:
return LayoutAlign.CENTER;
case LayoutAlign.TOP_RIGHT,LayoutAlign.BOTTOM_RIGHT:
return LayoutAlign.RIGHT;
default:
return value;
}
return value;
Original issue reported on code.google.com by [email protected]
on 10 Jun 2012 at 10:21
What steps will reproduce the problem?
1. Try to convert a module containing a class with a member function named "get"
2. Observe crash.
3. Rename function to something not "get", or apply the following patch:
Index: as3hx/Parser.hx
===================================================================
--- as3hx/Parser.hx (revision 754)
+++ as3hx/Parser.hx (working copy)
@@ -912,8 +912,10 @@
openDebug("parseClassFun(");
var name = id();
if( name == "get" || name == "set" ) {
- kwds.push(name);
- name = id();
+ if (peek() != TPOpen) {
+ kwds.push(name);
+ name = id();
+ }
}
dbgln(Std.string(kwds) + " " + name + ")", false);
var f = parseFun();
4. Observe success!
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 25 Apr 2013 at 2:19
What steps will reproduce the problem?
See attached example. In summary:
1. Create an inheritance chain with a public variable in the base class
2. Generate docs
3. Show inherited docs for sub class (at least 2 levels of inheritance) - it
will have multiple copies of the field
Simple Example (see attached zip for full code)
class A
{
public var a:Int;
public function new() {}
}
class B extends A
{
public var b:Int;
public function new() {super();}
}
class C extends B
{
public var c:Int;
public function new() {super();}
}
What is the expected output? What do you see instead?
To only show inherited variable 'a' once in the docs for class 'C'
Instead it appears twice:
a : Int
inherited from example.A
a : Int
inherited from example.A
Note: this bug only occurs for inherited vars (and not inherited methods)
What version of the product are you using? On what operating system?
chxdoc 1.0.2, svn (Rev 665) OSX 10.7.3
Please provide any additional information below.
To fix this bug chxdoc.ClassHandler.makeInheritedVar() needs to check if field
already exists in class vars array.
function makeInheritedVar(ctx : ClassCtx, srcCtx:ClassCtx, field : FieldCtx)
{
...
for(v in ctx.vars)
{
if(v.name == f.name) return;
}
ctx.vars.push(f);
}
Original issue reported on code.google.com by [email protected]
on 12 Mar 2012 at 2:29
Attachments:
What steps will reproduce the problem?
After not finding any docs on how the exculdeFiles should work in
.as3hx_config.xml i was looking in the sources
and figured i must specify it like this:
<excludeList>
<path value="starling/events/EventDispatcher.as" />
<path value="starling/events/TouchEvent.as" />
</excludeList>
if i run as3hx from the directory in which the starling dir resides
this doesn't work either.
What is the expected output? What do you see instead?
the excluded files are still parsed and result in a stack overflow (which is
another issue that is allready reported)
What version of the product are you using? On what operating system?
trunk
Please provide any additional information below.
In the Run.hx there is a method:
static function isExcludeFile(excludes: List<String>, file: String)
return Lambda.filter(excludes, function (path) return as3hx.Config.toPath(file).indexOf(path.replace(".", "/")) > -1).length > 0
if i remove the .replace(".","/") part it works and the files are excluded.
Furthermore A little example would be nice for new users on how to specify the
paths.
thnx,
Arnoud
Original issue reported on code.google.com by [email protected]
on 5 Mar 2013 at 6:01
Neither the @param nor the @return tags generate any visible output.
------ Source snippet ---------------
/**
* Setter for the sample property.
* @param newNum The new value.
*/
public function setNum(newNum : Int) {
num = newNum;
}
------ HTML generated ---------------
<div class="member">
<div class="header">
<h3>
<a name="setNum"></a>
<span class="name">setNum</span>(default,method) : newNum : <a href="../../../Int.html" class="type">Int</a> -> <a href="../../../Void.html" class="type">Void</a>
</h3>
</div>
<div class="body">
<!-- platforms -->
<dl>
</dl>
<!-- Comment block -->
<div class="comment">
Setter for the sample property.</div>
</div>
</div>
Original issue reported on code.google.com by [email protected]
on 6 Dec 2011 at 10:32
when using Haxe 2.10, chxdoc gives this error:
ChxDoc Generator 1.1.2 - (c) 2008-2012 Russell Weir
Called from ? line 1
Called from chxdoc/ChxDocMain.hx line 394
Called from chxdoc/ChxDocMain.hx line 833
Called from chxdoc/ChxDocMain.hx line 853
Called from haxe/rtti/XmlParser.hx line 86
Called from haxe/rtti/XmlParser.hx line 269
Called from haxe/rtti/XmlParser.hx line 276
Called from haxe/rtti/XmlParser.hx line 311
Called from haxe/rtti/XmlParser.hx line 333
Called from haxe/rtti/XmlParser.hx line 473
Called from haxe/rtti/XmlParser.hx line 264
Uncaught exception - Invalid m
Original issue reported on code.google.com by [email protected]
on 22 Jun 2012 at 9:10
Install Haxe 2.09 (official) and chxdoc 1.1.2 from lib.haxe.org.
"haxelib run chxdoc compile" fails with:
>> Compiling in C:\Motion-Twin\Haxe\lib\chxdoc\1,1,2/...Run.hx:95:
chx/Serializer.hx:182: characters 44-45 : {+ __serializeHash : Void ->
Unknown<0> } should be EnumValue
chx/Serializer.hx:182: characters 44-45 : For function argument 'e'
chxdoc/ChxDocMain.hx:569: characters 12-32 : Cannot access to private field kind
Called from ? line 1
Called from Run.hx line 26
Called from Run.hx line 96
Original issue reported on code.google.com by [email protected]
on 20 Jun 2012 at 1:37
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.