I had a development environment working well then I manually
refactored some things and now I can't reload the browser. I created a new subclass of Widget (TDWidget) and created four new subclasses of that class. I also moved one of my existing classes that was a subclass of Widget to be a subclass of TDWidget as well. The Javascript error console says that each._initialize() is not a function in init.js. I checked my .st and .js files to make sure I was not calling super initialize anywhere (I do have initialize methods in a couple of classes on the instance side. Any ideas ? Is there a limit to how deeply nested the class hierarchy can be ? If I have an initialize instance method am I supposed to send super initialize in that method ? One of these days I'll have examples to offer instead of problems and questions. Leon |
On 12/02/12 20:39, leonsmith wrote:
> I had a development environment working well then I manually > refactored some things and now I can't reload the browser. I created a > new subclass of Widget (TDWidget) and created four new subclasses of > that class. I also moved one of my existing classes that was a > subclass of Widget to be a subclass of TDWidget as well. > > The Javascript error console says that each._initialize() is not a > function in init.js. I checked my .st and .js files to make sure I was > not calling super initialize anywhere (I do have initialize methods in > a couple of classes on the instance side. > > Any ideas ? Is there a limit to how deeply nested the class hierarchy > can be ? If I have an initialize instance method am I supposed to send > super initialize in that method ? The issue is due to a bug with the generated output that has been fixed lately. You should use the latest version from github. Then you can "filein" in the workspace your .st file. Then commit again, and everything should work fine. Cheers, Nico > > One of these days I'll have examples to offer instead of problems and > questions. > > Leon -- Nicolas Petton http://nicolas-petton.fr |
Thanks Nico. I really appreciate the support from everyone here.
On Feb 13, 2:18 am, Nicolas Petton <[hidden email]> wrote: > On 12/02/12 20:39, leonsmith wrote: > > > I had a development environment working well then I manually > > refactored some things and now I can't reload the browser. I created a > > new subclass of Widget (TDWidget) and created four new subclasses of > > that class. I also moved one of my existing classes that was a > > subclass of Widget to be a subclass of TDWidget as well. > > > The Javascript error console says that each._initialize() is not a > > function in init.js. I checked my .st and .js files to make sure I was > > not calling super initialize anywhere (I do have initialize methods in > > a couple of classes on the instance side. > > > Any ideas ? Is there a limit to how deeply nested the class hierarchy > > can be ? If I have an initialize instance method am I supposed to send > > super initialize in that method ? > > The issue is due to a bug with the generated output that has been fixed > lately. You should use the latest version from github. > > Then you can "filein" in the workspace your .st file. Then commit again, > and everything should work fine. > > Cheers, > Nico > > > > > One of these days I'll have examples to offer instead of problems and > > questions. > > > Leon > > -- > Nicolas Pettonhttp://nicolas-petton.fr |
I did a git pull on the repository and still get the same error:
"Object class >> subclass:instanceVariableNames:category: is deprecated! (in BlockClosure >> value)" when I try and filein the .st file. I can fix the syntax manually if I know what it should be. Am I using the wrong repository or wrong git command ? On Feb 13, 4:43 pm, leonsmith <[hidden email]> wrote: > Thanks Nico. I really appreciate the support from everyone here. > > On Feb 13, 2:18 am, Nicolas Petton <[hidden email]> wrote: > > > > > > > > > On 12/02/12 20:39, leonsmith wrote: > > > > I had a development environment working well then I manually > > > refactored some things and now I can't reload the browser. I created a > > > new subclass of Widget (TDWidget) and created four new subclasses of > > > that class. I also moved one of my existing classes that was a > > > subclass of Widget to be a subclass of TDWidget as well. > > > > The Javascript error console says that each._initialize() is not a > > > function in init.js. I checked my .st and .js files to make sure I was > > > not calling super initialize anywhere (I do have initialize methods in > > > a couple of classes on the instance side. > > > > Any ideas ? Is there a limit to how deeply nested the class hierarchy > > > can be ? If I have an initialize instance method am I supposed to send > > > super initialize in that method ? > > > The issue is due to a bug with the generated output that has been fixed > > lately. You should use the latest version from github. > > > Then you can "filein" in the workspace your .st file. Then commit again, > > and everything should work fine. > > > Cheers, > > Nico > > > > One of these days I'll have examples to offer instead of problems and > > > questions. > > > > Leon > > > -- > > Nicolas Pettonhttp://nicolas-petton.fr |
But it is just a warning, right? To fix use "package:" instead of "category:" - I think.
regards, Göran -- Sent from my HP TouchPad On Feb 14, 2012 20:17, leonsmith <[hidden email]> wrote: I did a git pull on the repository and still get the same error: "Object class >> subclass:instanceVariableNames:category: is deprecated! (in BlockClosure >> value)" when I try and filein the .st file. I can fix the syntax manually if I know what it should be. Am I using the wrong repository or wrong git command ? On Feb 13, 4:43 pm, leonsmith <[hidden email]> wrote: > Thanks Nico. I really appreciate the support from everyone here. > > On Feb 13, 2:18 am, Nicolas Petton <[hidden email]> wrote: > > > > > > > > > On 12/02/12 20:39, leonsmith wrote: > > > > I had a development environment working well then I manually > > > refactored some things and now I can't reload the browser. I created a > > > new subclass of Widget (TDWidget) and created four new subclasses of > > > that class. I also moved one of my existing classes that was a > > > subclass of Widget to be a subclass of TDWidget as well. > > > > The Javascript error console says that each._initialize() is not a > > > function in init.js. I checked my .st and .js files to make sure I was > > > not calling super initialize anywhere (I do have initialize methods in > > > a couple of classes on the instance side. > > > > Any ideas ? Is there a limit to how deeply nested the class hierarchy > > > can be ? If I have an initialize instance method am I supposed to send > > > super initialize in that method ? > > > The issue is due to a bug with the generated output that has been fixed > > lately. You should use the latest version from github. > > > Then you can "filein" in the workspace your .st file. Then commit again, > > and everything should work fine. > > > Cheers, > > Nico > > > > One of these days I'll have examples to offer instead of problems and > > > questions. > > > > Leon > > > -- > > Nicolas Pettonhttp://nicolas-petton.fr |
On 14/02/12 22:34, [hidden email] wrote:
> But it is just a warning, right? Yes, that's just a deprecation warning. It should work fine. Cheers, Nico To fix use "package:" instead of > "category:" - I think. > > regards, Göran > > -- Sent from my HP TouchPad > > ------------------------------------------------------------------------ > On Feb 14, 2012 20:17, leonsmith <[hidden email]> wrote: > I did a git pull on the repository and still get the same error: > "Object class >> subclass:instanceVariableNames:category: is > deprecated! (in BlockClosure >> value)" > when I try and filein the .st file. I can fix the syntax manually if I > know what it should be. Am I using the wrong repository or wrong git > command ? > > > On Feb 13, 4:43 pm, leonsmith <[hidden email]> wrote: > > Thanks Nico. I really appreciate the support from everyone here. > > > > On Feb 13, 2:18 am, Nicolas Petton <[hidden email]> wrote: > > > > > > > > > > > > > > > > > On 12/02/12 20:39, leonsmith wrote: > > > > > > I had a development environment working well then I manually > > > > refactored some things and now I can't reload the browser. I > created a > > > > new subclass of Widget (TDWidget) and created four new subclasses of > > > > that class. I also moved one of my existing classes that was a > > > > subclass of Widget to be a subclass of TDWidget as well. > > > > > > The Javascript error console says that each._initialize() is not a > > > > function in init.js. I checked my .st and .js files to make sure > I was > > > > not calling super initialize anywhere (I do have initialize > methods in > > > > a couple of classes on the instance side. > > > > > > Any ideas ? Is there a limit to how deeply nested the class > hierarchy > > > > can be ? If I have an initialize instance method am I supposed to > send > > > > super initialize in that method ? > > > > > The issue is due to a bug with the generated output that has been > fixed > > > lately. You should use the latest version from github. > > > > > Then you can "filein" in the workspace your .st file. Then commit > again, > > > and everything should work fine. > > > > > Cheers, > > > Nico > > > > > > One of these days I'll have examples to offer instead of problems > and > > > > questions. > > > > > > Leon > > > > > -- > > > Nicolas Pettonhttp://nicolas-petton.fr -- Nicolas Petton http://nicolas-petton.fr |
It's not just a warning it terminates the load. I have changed all
references to category to be package instead. When I copy the .st file into my workspace, select everything and choose "fileIn", nothing happens and I get no errors on the Javascript console. Also, when I look at the repository on Github, all the files in "st" still use category instead of package. This is the "master" branch I guess. Is there some fork or something I should be using instead ? Somehow the older code I uploaded to my server last week has package instead of category in the js directory but not the st directory. You can see it work at: http://www.taverndice.com/projects/dice/dice.html and you can see the st sources there as well: http://www.taverndice.com/projects/dice/st/Dice.st and for the working js: http://www.taverndice.com/projects/dice/js/Dice.js I must be missing something stupid. On Feb 15, 2:34 am, Nicolas Petton <[hidden email]> wrote: > On 14/02/12 22:34, [hidden email] wrote: > > > But it is just a warning, right? > > Yes, that's just a deprecation warning. It should work fine. > > Cheers, > Nico > > To fix use "package:" instead of > > > > > > > > > > > "category:" - I think. > > > regards, Göran > > > -- Sent from my HP TouchPad > > > ------------------------------------------------------------------------ > > On Feb 14, 2012 20:17, leonsmith <[hidden email]> wrote: > > I did a git pull on the repository and still get the same error: > > "Object class >> subclass:instanceVariableNames:category: is > > deprecated! (in BlockClosure >> value)" > > when I try and filein the .st file. I can fix the syntax manually if I > > know what it should be. Am I using the wrong repository or wrong git > > command ? > > > On Feb 13, 4:43 pm, leonsmith <[hidden email]> wrote: > > > Thanks Nico. I really appreciate the support from everyone here. > > > > On Feb 13, 2:18 am, Nicolas Petton <[hidden email]> wrote: > > > > > On 12/02/12 20:39, leonsmith wrote: > > > > > > I had a development environment working well then I manually > > > > > refactored some things and now I can't reload the browser. I > > created a > > > > > new subclass of Widget (TDWidget) and created four new subclasses of > > > > > that class. I also moved one of my existing classes that was a > > > > > subclass of Widget to be a subclass of TDWidget as well. > > > > > > The Javascript error console says that each._initialize() is not a > > > > > function in init.js. I checked my .st and .js files to make sure > > I was > > > > > not calling super initialize anywhere (I do have initialize > > methods in > > > > > a couple of classes on the instance side. > > > > > > Any ideas ? Is there a limit to how deeply nested the class > > hierarchy > > > > > can be ? If I have an initialize instance method am I supposed to > > send > > > > > super initialize in that method ? > > > > > The issue is due to a bug with the generated output that has been > > fixed > > > > lately. You should use the latest version from github. > > > > > Then you can "filein" in the workspace your .st file. Then commit > > again, > > > > and everything should work fine. > > > > > Cheers, > > > > Nico > > > > > > One of these days I'll have examples to offer instead of problems > > and > > > > > questions. > > > > > > Leon > > > > > -- > > > > Nicolas Pettonhttp://nicolas-petton.fr > > -- > Nicolas Pettonhttp://nicolas-petton.fr |
OK, Sorry. I created a new local repository, copied everything over,
but didn't change the "prefix" in the LoadAmber portion of the html file in the new directory. One of those things where I changed so many things trying to get stuff to work.. I'll backup and delete the old directory right now. The side benefit is that I will now have a repository on Github that will be public. On Feb 15, 7:40 am, leonsmith <[hidden email]> wrote: > It's not just a warning it terminates the load. I have changed all > references to category to be package instead. When I copy the .st file > into my workspace, select everything and choose "fileIn", nothing > happens and I get no errors on the Javascript console. Also, when I > look at the repository on Github, all the files in "st" still use > category instead of package. This is the "master" branch I guess. Is > there some fork or something I should be using instead ? > > Somehow the older code I uploaded to my server last week has package > instead of category in the js directory but not the st directory. You > can see it work at:http://www.taverndice.com/projects/dice/dice.html > and you can see the st sources there as well:http://www.taverndice.com/projects/dice/st/Dice.st > and for the working js:http://www.taverndice.com/projects/dice/js/Dice.js > > I must be missing something stupid. > > On Feb 15, 2:34 am, Nicolas Petton <[hidden email]> wrote: > > > > > > > > > On 14/02/12 22:34, [hidden email] wrote: > > > > But it is just a warning, right? > > > Yes, that's just a deprecation warning. It should work fine. > > > Cheers, > > Nico > > > To fix use "package:" instead of > > > > "category:" - I think. > > > > regards, Göran > > > > -- Sent from my HP TouchPad > > > > ------------------------------------------------------------------------ > > > On Feb 14, 2012 20:17, leonsmith <[hidden email]> wrote: > > > I did a git pull on the repository and still get the same error: > > > "Object class >> subclass:instanceVariableNames:category: is > > > deprecated! (in BlockClosure >> value)" > > > when I try and filein the .st file. I can fix the syntax manually if I > > > know what it should be. Am I using the wrong repository or wrong git > > > command ? > > > > On Feb 13, 4:43 pm, leonsmith <[hidden email]> wrote: > > > > Thanks Nico. I really appreciate the support from everyone here. > > > > > On Feb 13, 2:18 am, Nicolas Petton <[hidden email]> wrote: > > > > > > On 12/02/12 20:39, leonsmith wrote: > > > > > > > I had a development environment working well then I manually > > > > > > refactored some things and now I can't reload the browser. I > > > created a > > > > > > new subclass of Widget (TDWidget) and created four new subclasses of > > > > > > that class. I also moved one of my existing classes that was a > > > > > > subclass of Widget to be a subclass of TDWidget as well. > > > > > > > The Javascript error console says that each._initialize() is not a > > > > > > function in init.js. I checked my .st and .js files to make sure > > > I was > > > > > > not calling super initialize anywhere (I do have initialize > > > methods in > > > > > > a couple of classes on the instance side. > > > > > > > Any ideas ? Is there a limit to how deeply nested the class > > > hierarchy > > > > > > can be ? If I have an initialize instance method am I supposed to > > > send > > > > > > super initialize in that method ? > > > > > > The issue is due to a bug with the generated output that has been > > > fixed > > > > > lately. You should use the latest version from github. > > > > > > Then you can "filein" in the workspace your .st file. Then commit > > > again, > > > > > and everything should work fine. > > > > > > Cheers, > > > > > Nico > > > > > > > One of these days I'll have examples to offer instead of problems > > > and > > > > > > questions. > > > > > > > Leon > > > > > > -- > > > > > Nicolas Pettonhttp://nicolas-petton.fr > > > -- > > Nicolas Pettonhttp://nicolas-petton.fr |
In reply to this post by Nicolas Petton
Appreciated! :)
On Mon, Feb 13, 2012 at 11:18 AM, Nicolas Petton <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |