Giter Site home page Giter Site logo

badcreature / caffeine-hx Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 17.38 MB

Automatically exported from code.google.com/p/caffeine-hx

License: Other

Makefile 0.28% ActionScript 1.06% Haxe 60.21% D 0.76% Groff 0.25% C 9.82% Assembly 0.05% C++ 1.97% HTML 4.04% Java 6.98% Lua 0.49% Python 0.36% JavaScript 1.52% Perl 0.06% Shell 0.04% CSS 0.28% OCaml 11.82% Batchfile 0.02%

caffeine-hx's People

Contributors

grumpytoad avatar

Watchers

 avatar

caffeine-hx's Issues

Feature Request: Filtered types in PackageContext

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

"haxelib run chxdoc install" on Windows produces incorrect chxdoc.exe

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

input.xml assumes relative path from working directory

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

as3hx struggles with object literals containing comments

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

chxdoc 1.1.2 / static generic functions have wrong signature

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

Exception when I executed chxdoc.

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:

AS3HX Reflect.setField error

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:

HTML not structured enough

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

Port to haxelib 3

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

Local compilation failing for ChxDoc

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

AS3HX switch statements are not converted correctly.

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

as3hx struggles with functions named "set" and "get", though AS3 seems to allow this syntax

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

Inherited fields (vars) are repeated in html output

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:

excludeList doesnt seem to work in the congig.xml (or i don't know how to use it :-)


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

Tags not working

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> -&gt; <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

chxdoc 1.1.2 error in XmlParser with Haxe 2.10RC

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

chxdoc fails to compile with Haxe 2.09

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.