Re: Royale CLI issues

2018-05-01 Thread Harbs
The bin folder is created by the compiler while compiling the app. I have not been following this discussion very closely. What are you using to compile? > On May 2, 2018, at 9:48 AM, Dany Dhondt wrote: > > Hi Om, > > I tried both ways, none of them works. > Error: ENOENT: no such file or dire

Re: Royale CLI issues

2018-05-01 Thread OmPrakash Muppirala
On Tue, May 1, 2018 at 11:48 PM, Dany Dhondt wrote: > Hi Om, > > I tried both ways, none of them works. > > Error: ENOENT: no such file or directory, open '/Volumes/Macintosh > HD/Documents/ARCHEMEDIA/ROYALE/my-royale-app/bin/js-debug/index.html' > > > > > > Can I see the entire content of your t

Re: Royale CLI issues

2018-05-01 Thread Dany Dhondt
Hi Om, I tried both ways, none of them works. Error: ENOENT: no such file or directory, open '/Volumes/Macintosh HD/Documents/ARCHEMEDIA/ROYALE/my-royale-app/bin/js-debug/index.html'     My question is: shouldn't the 'new' command create more than just one mxml file? What script is responsible

Re: Null pointer errors

2018-05-01 Thread Harbs
Well, with font parsing there are SOOO MANY different data structures that it’s almost impossible to avoid using Object. Even if it was possible (which I’m not sure of), it’ll probably take me weeks or months and countless classes (with all the memory penalties of doing so) to cover all the type

Royale CLI issues

2018-05-01 Thread OmPrakash Muppirala
On Tue, May 1, 2018 at 11:15 PM, Dany Dhondt wrote: > Alex, > > The version number here came from package.json so it should have been > updated by someone. > > I reinstalled from the link you provided with no problem. > But running the royale server:debug [1] command gives me the same errors > as

Re: Null pointer errors

2018-05-01 Thread Alex Harui
Hmm. That's what you get for using Object __ The code expects the expression for the initial value to resolve to a definition (so we know if we need to coerce it), but once you switch to Object, it won't resolve. In this case,we don't know the type of "offsets". The quick fix is to just acc

Re: NPM Issues (was Re: [Discussion] "Life after FlashPlayer" post @flex lists)

2018-05-01 Thread OmPrakash Muppirala
On Tue, May 1, 2018 at 11:16 PM, Alex Harui wrote: > I think that's a bug in releasecandidate.xml. When you run the release > target, it calls the update.versions target before reminding you to run the > release.npm target. It did not occur to me that the publishing grabbed > files other than t

Re: Null pointer errors

2018-05-01 Thread Harbs
FYI, I just tried reverting some changes, and it seems that not all the errors were due to void 0: This code: var glyfPos:int = this._font.getTable('loca').offsets[this.id]; var nextPos:int = this._font.getTable('loca').offsets[this.id + 1]; Cause

Re: NPM Issues (was Re: [Discussion] "Life after FlashPlayer" post @flex lists)

2018-05-01 Thread Dany Dhondt
Hi Alex, package.json which is the default file npm picks up -Dany Op 2 mei 2018 om 06:45 uur uur schreef Alex Harui : OK, but what file would contain that string such that it shows up then? Thanks, -Alex On 5/1/18, 9:32 PM, "OmPrakash Muppirala" wrote: On Tue, May 1, 2018, 8:13 PM Alex

Re: NPM Issues (was Re: [Discussion] "Life after FlashPlayer" post @flex lists)

2018-05-01 Thread Alex Harui
I think that's a bug in releasecandidate.xml. When you run the release target, it calls the update.versions target before reminding you to run the release.npm target. It did not occur to me that the publishing grabbed files other than the tar.gz (which should have the right version in its file

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread Dany Dhondt
Alex, The version number here came from package.json so it should have been updated by someone. I reinstalled from the link you provided with no problem. But running the royale server:debug [1] command gives me the same errors as before. I noticed that when running: royale new  my-royale-app,

Re: NPM Issues (was Re: [Discussion] "Life after FlashPlayer" post @flex lists)

2018-05-01 Thread OmPrakash Muppirala
As per git history, this file was updated from 0.9.2 to 0.9.3 on 3/16/2018 at around 10:40AM : https://github.com/apache/royale-asjs/commit/2e6923440655c2c2314a9f3e2e1d91fa745cd6e2#diff-6515d4243f4018bb4527c9184823da7f According to https://www.npmjs.com/org/apache-royale, the 0.9.3 release was ma

NPM Issues (was Re: [Discussion] "Life after FlashPlayer" post @flex lists)

2018-05-01 Thread Alex Harui
OK, but what file would contain that string such that it shows up then? Thanks, -Alex On 5/1/18, 9:32 PM, "OmPrakash Muppirala" wrote: On Tue, May 1, 2018, 8:13 PM Alex Harui wrote: > That's my windows machine that I used for 0.9.2. > > Where did it say 0.9.3?

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread OmPrakash Muppirala
On Tue, May 1, 2018, 8:13 PM Alex Harui wrote: > That's my windows machine that I used for 0.9.2. > > Where did it say 0.9.3? It shows up after the npm install completes. I'm trying to remember if I published the package to NPM or if you did. > Maybe the scripts are running or were run after

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread Alex Harui
That's my windows machine that I used for 0.9.2. Where did it say 0.9.3? I'm trying to remember if I published the package to NPM or if you did. Maybe the scripts are running or were run after some versions got updated in the repos. I have not run a build on my windows machine since the rele

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread OmPrakash Muppirala
On Tue, May 1, 2018 at 1:36 PM, Alex Harui wrote: > Om, > > I got the warnings when we released 0.9.2 but it appeared to leave a > functional SDK. Now it is hanging for me and Dany. > > I don't think I've run a publish and I don't think the CI server is > either, but you never know. Try grabbin

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread Alex Harui
Om, I got the warnings when we released 0.9.2 but it appeared to leave a functional SDK. Now it is hanging for me and Dany. I don't think I've run a publish and I don't think the CI server is either, but you never know. Try grabbing one of the SWCs. Unzip it and swfdump the library.swf. Th

Re: Null pointer errors

2018-05-01 Thread Alex Harui
I can think of better graduation gifts than the chance to learn the compiler code __. But every little bit helps! -Alex On 5/1/18, 10:44 AM, "Harbs" wrote: Yeah. I was planning on spending time on the compiler, but time has not been recently as forthcoming as I was hoping… ;-)

Re: States doesn't work properly anymore

2018-05-01 Thread Alex Harui
An element without a royale_wrapper breaks the fundamental contract in UIBase. I recommend that you figure that part out. Good luck, -Alex On 5/1/18, 12:33 PM, "Piotr Zarzycki" wrote: In the other words - My website is loaded and component have initial state. Than I'm clicking o

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread Dany Dhondt
Hi Om I also noticed that 0.9.3 was installeren so I tried ...@0.9.2 but that was non existing. ...@0.9.1 did exist but gave the same result/errors -Dany Verstuurd vanaf mijn iPhone > Op 1 mei 2018 om 19:48 heeft OmPrakash Muppirala het > volgende geschreven: > >> On Tue, May 1, 2018 at 8:5

Re: States doesn't work properly anymore

2018-05-01 Thread Piotr Zarzycki
In the other words - My website is loaded and component have initial state. Than I'm clicking on the button I'm changing state for that component. Piotr On Tue, May 1, 2018, 7:27 PM Piotr Zarzycki wrote: > This component is already on the display list. I'm changing States of that > component.

Re: Null pointer errors

2018-05-01 Thread Piotr Zarzycki
Harbs, +1 for a new committer! :) Piotr 2018-05-01 19:44 GMT+02:00 Harbs : > Yeah. I was planning on spending time on the compiler, but time has not > been recently as forthcoming as I was hoping… ;-) > > FWIW, my daughter is finishing school soon and I’m going to have her try > and learn the c

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread OmPrakash Muppirala
On Tue, May 1, 2018 at 8:57 AM, Alex Harui wrote: > Hi Dany, > > The link is directly to a tar.gz built by our CI server. No humans > involved, and no special packaging for NPM. NPM says it can install any > tar.gz file. Try downloading the file at that link and using Mac Finder to > expand it

Re: Null pointer errors

2018-05-01 Thread Harbs
Yeah. I was planning on spending time on the compiler, but time has not been recently as forthcoming as I was hoping… ;-) FWIW, my daughter is finishing school soon and I’m going to have her try and learn the compiler. I’ll see how that goes… Harbs > On May 1, 2018, at 7:53 PM, Alex Harui wro

Re: States doesn't work properly anymore

2018-05-01 Thread Piotr Zarzycki
This component is already on the display list. I'm changing States of that component. That's the weirdest thing. Piotr On Tue, May 1, 2018, 7:06 PM Alex Harui wrote: > Hi Piotr, > > What is the call stack at that point? Should the component be on the > display list or is it still having its pr

Re: States doesn't work properly anymore

2018-05-01 Thread Alex Harui
Hi Piotr, What is the call stack at that point? Should the component be on the display list or is it still having its properties set up per the lifecycle? If it is just having its properties set up, there should be another call to setClassName in addedToParent and parent should not be undefin

Re: States doesn't work properly anymore

2018-05-01 Thread piotrz
Alex, I just checked getter for parent and royale_wrapper on element is undefined. Piotr -- Sent from: http://apache-royale-development.20373.n8.nabble.com/

Re: Null pointer errors

2018-05-01 Thread Alex Harui
Sorry, I thought the link was to the source so I didn't click on it. This could be a good exercise for anyone wanting to learn more about the compiler to figure out how to catch this situation (maybe by detecting the AST for "void 0") and outputting an error instead of an NPE, or swapping in "

Re: Null pointer errors

2018-05-01 Thread Harbs
I attached a paste of the stack in my email. I just finished resolving all my errors. It was hard to trace them down, but I just discovered that there were uses of "void 0" in the code. I replaced all those cases with “undefined" and poof! All my errors went away! :-) My theory is that use of v

Re: Null pointer errors

2018-05-01 Thread Alex Harui
What is the call stack for the null pointer? On 5/1/18, 5:05 AM, "Harbs" wrote: I’m trying to compile a library using comic and I’m getting a **LOT** of null pointer errors. They seem to be related to missing type information, although I’m not completely sure why the missing type informat

Re: States doesn't work properly anymore

2018-05-01 Thread Alex Harui
Because setClassNames can be expensive, we only want to do it if we have to. The component lifecycle is designed for setting lots of properties before adding a component to its parent. There is a call to setClassNames in addedToParent for that reason, so other calls to set the className should

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread Alex Harui
Hi Dany, The link is directly to a tar.gz built by our CI server. No humans involved, and no special packaging for NPM. NPM says it can install any tar.gz file. Try downloading the file at that link and using Mac Finder to expand it into a folder. For me it expands without errors. This is

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread OmPrakash Muppirala
Dany, thanks for the additional info. I will play around with this a bit more soon and update here. Thanks, Om On Tue, May 1, 2018, 1:51 AM Dany Dhondt wrote: > Hi Alex, > > I tried the direct link you provided: same result (hundreds of ‘invalid > entry’ messages) > > My version of npm is 6.0.

Null pointer errors

2018-05-01 Thread Harbs
I’m trying to compile a library using comic and I’m getting a **LOT** of null pointer errors. They seem to be related to missing type information, although I’m not completely sure why the missing type information is causing these errors. Some of the errors are resolved-able by adding type info,

Re: States doesn't work properly anymore

2018-05-01 Thread Piotr Zarzycki
Alex, I did more experiments to that, but not sure whether it's ok. In those two places I had parent - undefined [1] (UIBase) [2] (ClassSelectorList). As you can see I commented out those condition and everything started to work properly. The question is - Why those condition even there here ? Di

Re: [Discussion] "Life after FlashPlayer" post @flex lists (Was: Royale Frameworks and More)

2018-05-01 Thread Dany Dhondt
Hi Alex, I tried the direct link you provided: same result (hundreds of ‘invalid entry’ messages) My version of npm is 6.0.0 downgrading to a lower npm version is not an option at this moment because I’m on a production mac with crucial projects on it. Amids all the invalid entry messages, no