Re: Something's not working right ...

2020-08-18 Thread Carlos Rovira
Hi, very cool! I think I'll start using private constructors very soon :) El mar., 18 ago. 2020 a las 16:58, Christofer Dutz (< christofer.d...@c-ware.de>) escribió: > Hi all, > > and especially thanks to Josh for fixing this so quickly :-) *bigthumbsup* > > Updated Royale for me and rebuilt and

Re: Something's not working right ...

2020-08-18 Thread Christofer Dutz
Hi all, and especially thanks to Josh for fixing this so quickly :-) *bigthumbsup* Updated Royale for me and rebuilt and now I can have my private constructor in my Enums ... awesome. I always hated that stupid hack how you could sort of simulate private constructors in default AS3. Chris

Re: Something's not working right ...

2020-08-18 Thread Piotr Zarzycki
Chris, Rebuild from source Chris if you will try any kind of new fix. It looks like all our maven remote builds are down right now and infra still in silence mode with help. I will ping them in couple of days. Thanks, Piotr wt., 18 sie 2020 o 10:42 Christofer Dutz napisał(a): > Hmm ... > > so

Re: Something's not working right ...

2020-08-18 Thread Christofer Dutz
Hmm ... so the Issue was closed ... so was anything fixed/changed? Should I try it again with the latest update? Chris Am 17.08.20, 16:01 schrieb "Christofer Dutz" : Hi all, for now I think I'll live with public constructors and not also checking the types in my "equals" method.

Re: Something's not working right ...

2020-08-17 Thread Christofer Dutz
Hi all, for now I think I'll live with public constructors and not also checking the types in my "equals" method. It's only code generated for my own usage and I'll probably not invest trying to find out what's wrong with the getClassTypeName stuff. But would be happy to be able to fix this so

Re: Something's not working right ...

2020-08-17 Thread Christofer Dutz
Hi Harbs, so I attached the zip ... just to be on the safe side. Thanks for the additional info ... I almost never use GitHub issues. Chris Am 16.08.20, 14:46 schrieb "Harbs" : Also: here’s the list of acceptable files: https://docs.github.com/en/github/managing-your-work-on-github/f

Re: Something's not working right ...

2020-08-16 Thread Harbs
Also: here’s the list of acceptable files: https://docs.github.com/en/github/managing-your-work-on-github/file-attachments-on-issues-and-pull-requests > On Aug 16, 2020, at 3:35 PM, Harbs wrote: > > Great. > > FYI you can attach files to Github issues using drag/drop. > > https://github.blog/2

Re: Something's not working right ...

2020-08-16 Thread Harbs
Great. FYI you can attach files to Github issues using drag/drop. https://github.blog/2012-12-07-issue-attachments/ > On Aug 16, 2020, at 3:20 PM, Christofer Dutz > wrote: > > Hi Harbs, > > Thanks for the clarification. > I created an issue ... unfortunately I couldn't find a way to attach f

Re: Something's not working right ...

2020-08-16 Thread Christofer Dutz
Hi Harbs, Thanks for the clarification. I created an issue ... unfortunately I couldn't find a way to attach files to it so I added my google-drive link to it. https://github.com/apache/royale-compiler/issues/158 Chris Am 16.08.20, 11:55 schrieb "Harbs" : OK. Looks like there’s two iss

Re: Something's not working right ...

2020-08-16 Thread Harbs
OK. Looks like there’s two issues: 1. types with private constructors can not be an argument in methods (both instance and static methods). 2. Return types with private constructors only works on static methods. non-static methods with these return types error. Josh was the one who worked on th

Re: Something's not working right ...

2020-08-16 Thread Christofer Dutz
Hi Harbs, So I whipped up a little example using my enums and the strange thing is, that here the getQualifiedClassName seems to work. However not the private constructor. I've zipped up my example here: https://drive.google.com/file/d/1SNMiH5xuUERbIiscuEH_JgcOLrBboj4j/view?usp=sharing So not r

Re: Something's not working right ...

2020-08-15 Thread Harbs
I’m not sure how you’re using private constructors. The only two cases I’ve used it was for: 1. All static classes 2. Singletons where the instance is generated in the class. It looks like you’re using casting with the Enums? > On Aug 14, 2020, at 7:03 PM, Christofer Dutz > wrote: > > Any ide

Re: Something's not working right ...

2020-08-15 Thread Carlos Rovira
Hi Harbs, although I like asconfigc very much since it is very clean, maven config seems to me very good with Greg improvements. This is an example of the config in the project I shared here recently. Since we can set any option in a line, it's very clean for additional options, that used to be th

Re: Something's not working right ...

2020-08-14 Thread Christofer Dutz
Unfortunately that was the first thing I tried :-( Chris Von: Piotr Zarzycki Gesendet: Freitag, 14. August 2020 18:01 An: Apache Royale Development Betreff: Re: Something's not working right ... Chris, Maybe you need to add to your depende

Re: Something's not working right ...

2020-08-14 Thread Piotr Zarzycki
Chris, Maybe you need to add to your dependencies: org.apache.royale.framework Language 0.9.8-SNAPSHOT swc js Thanks, Piotr pt., 14 sie 2020 o 17:59 Christofer Dutz napisał(a): > Hi Harbs, > > ok ... I read about the allow-private-constructors switch, but

Re: Something's not working right ...

2020-08-14 Thread Christofer Dutz
Hi Harbs, so I added your config options to my build and this is the output the compiler gives me: [INFO] --- royale-maven-plugin:0.9.8-SNAPSHOT:compile-js (default-compile-js) @ cweb-core-frontend-utils --- [INFO] Executing COMPC in tool group Royale with args: [-load-config=/Users/christofer

Re: Something's not working right ...

2020-08-14 Thread Christofer Dutz
Hi Harbs, ok ... I read about the allow-private-constructors switch, but in the blog post I read it stated to be on per default. But I could definitely give it a try. Thanks. And the getQualifiedClassName I had even without the private constructors ... when enabling the different parts I had th

Re: Something's not working right ...

2020-08-14 Thread Harbs
> On Aug 14, 2020, at 4:28 PM, Christofer Dutz > wrote: > > 1) Make the private constructors work Use -allow-private-constructors=true Here is some of the options I have in my asconfigc file (where I’m using private constructors): "additionalOptions": "-js-output-optimization=skipAsCoer

Re: Something's not working right ...

2020-08-14 Thread Christofer Dutz
Ok ... in the end I avoided the problem ... however I was lucky that the project still was so small. I disabled the 2 dependencies I had and removed the code that needed it ... then the application worked. So I tried to add module after module ... In the end I had a look at EVERY class in my

Re: Something's not working right ...

2020-08-14 Thread Christofer Dutz
Hi Harbs, thanks for that ... I'm currently going through the problem with Carlos. In the end if I removed the dependencies to my super tiny two other libraries the application started ... so I'm trying to narrow down the problem. Chris Am 14.08.20, 12:32 schrieb "Harbs" : I don’t use M

Re: Something's not working right ...

2020-08-14 Thread Harbs
I don’t use Maven, so I’m not used to declaring the swcs I need. A quick look seems to indicate that you’re missing Basic. > On Aug 14, 2020, at 1:20 PM, Christofer Dutz > wrote: > > Hi all, > > So I am currently doing my first steps in porting an existing framework to > Royale. So far I hav