From us at netTrek.de Mon Sep 18 16:46:10 2006 From: us at netTrek.de (=?iso-8859-1?Q?Saban_=DCnl=FC_=5B_netTrek_=5D?=) Date: Mon Sep 18 16:48:40 2006 Subject: [as2api-dev] ActionScript::Parse::IdentifierToken Message-ID: <1E8A35FDD31965458DC329A44446A1F9EDC028@mapibe12.exchange.xchg> Hi, is anybody there who can descript me the meaning of following error message: com/osis/zoomify/core/Application.as: Expected 'ActionScript::Parse::IdentifierToken' but found '#'C:/DOKUME~1/netTrek/LOKALE~1/Temp/eee.225/lib/parse/parser.rb:458:in `err' It would be great if someone can tell me what to do to fix this error. Best regards SABAN _________________________ netTrek - web solution Saban ?nl? S?ringstrasse 9a 48653 Coesfeld _________________________ www.netTrek.de us@netTrek.de Tel.: +49 25 41 - 8 39 97 Fax: +49 25 41 - 98 27 02 _________________________ From dave at badgers-in-foil.co.uk Mon Sep 18 17:04:04 2006 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon Sep 18 17:04:06 2006 Subject: [as2api-dev] ActionScript::Parse::IdentifierToken In-Reply-To: <1E8A35FDD31965458DC329A44446A1F9EDC028@mapibe12.exchange.xchg> References: <1E8A35FDD31965458DC329A44446A1F9EDC028@mapibe12.exchange.xchg> Message-ID: <20060918170404.GA17987@badgers-in-foil.co.uk> On Mon, Sep 18, 2006 at 06:46:10PM +0200, Saban ?nl? [ netTrek ] wrote: > Hi, > > is anybody there who can descript me the meaning of following error message: > > com/osis/zoomify/core/Application.as: Expected 'ActionScript::Parse::IdentifierToken' but found '#'C:/DOKUME~1/netTrek/LOKALE~1/Temp/eee.225/lib/parse/parser.rb:458:in `err' > > It would be great if someone can tell me what to do to fix this error. When I wrote the ActionScript2 parser inside as2api, I didn't understand that some things that appear to be 'keywords' (e.g. "var"), are in fact allowed to appear as 'identifiers' (identifiers are things like the names of classes, variables and methods). So in this case, I suspect that you have a variable or method named 'as', and this is confusing as2api. Sorry about that! There are probably a bunch of things that should be removed from the Keywords section over here: http://svn.badgers-in-foil.co.uk/as2api/trunk/as2api/lib/parse/aslexer.rb One rather poor workaround for the problem is of course to rename the part of your Application API which uses the text 'as' :) dave -- http://david.holroyd.me.uk/ From us at netTrek.de Mon Sep 18 17:46:33 2006 From: us at netTrek.de (=?iso-8859-1?Q?Saban_=DCnl=FC_=5B_netTrek_=5D?=) Date: Mon Sep 18 20:56:37 2006 Subject: AW: [as2api-dev] ActionScript::Parse::IdentifierToken In-Reply-To: <20060918170404.GA17987@badgers-in-foil.co.uk> Message-ID: <1E8A35FDD31965458DC329A44446A1F9EDC037@mapibe12.exchange.xchg> Hi David, Thx a lot! Have renamed the 'as' package to 'asUtils' and now it works. However, it's strange that a package name will be interpreted as an identifiere. But now I've noticed that private methods will not be parsed. My client demanded a description for private methods also. Do you have any ideas for this "problem"? Best regards SABAN _________________________ netTrek - web solution Saban ?nl? S?ringstrasse 9a 48653 Coesfeld _________________________ www.netTrek.de us@netTrek.de Tel.: +49 25 41 - 8 39 97 Fax: +49 25 41 - 98 27 02 _________________________ |--> -----Urspr?ngliche Nachricht----- |--> Von: David Holroyd [mailto:dave@badgers-in-foil.co.uk] |--> Gesendet: Montag, 18. September 2006 19:04 |--> An: Saban ?nl? [ netTrek ] |--> Cc: as2api-dev@lists.badgers-in-foil.co.uk |--> Betreff: Re: [as2api-dev] ActionScript::Parse::IdentifierToken |--> |--> On Mon, Sep 18, 2006 at 06:46:10PM +0200, Saban ?nl? [ netTrek ] wrote: |--> > Hi, |--> > |--> > is anybody there who can descript me the meaning of following error |--> message: |--> > |--> > com/osis/zoomify/core/Application.as: Expected |--> 'ActionScript::Parse::IdentifierToken' but found |--> '# @source="com/osis/zoomify/core/Application.as", @lineno=6, |--> @body="as">'C:/DOKUME~1/netTrek/LOKALE~1/Temp/eee.225/lib/parse/parser. |--> rb:458:in `err' |--> > |--> > It would be great if someone can tell me what to do to fix this |--> error. |--> |--> When I wrote the ActionScript2 parser inside as2api, I didn't |--> understand |--> that some things that appear to be 'keywords' (e.g. "var"), are in fact |--> allowed to appear as 'identifiers' (identifiers are things like the |--> names of classes, variables and methods). |--> |--> So in this case, I suspect that you have a variable or method named |--> 'as', and this is confusing as2api. Sorry about that! |--> |--> There are probably a bunch of things that should be removed from the |--> Keywords section over here: |--> |--> http://svn.badgers-in- |--> foil.co.uk/as2api/trunk/as2api/lib/parse/aslexer.rb |--> |--> |--> One rather poor workaround for the problem is of course to rename the |--> part of your Application API which uses the text 'as' :) |--> |--> |--> dave |--> |--> -- |--> http://david.holroyd.me.uk/ From us at netTrek.de Tue Sep 19 07:45:36 2006 From: us at netTrek.de (=?iso-8859-1?Q?Saban_=DCnl=FC_=5B_netTrek_=5D?=) Date: Tue Sep 19 07:56:32 2006 Subject: [as2api-dev] Including private members in as2api0.4 Message-ID: <1E8A35FDD31965458DC329A44446A1F9EDC0AC@mapibe12.exchange.xchg> Hi there, do anybody know how I can include private members in my documentation? Best regards Saban ?nl? _________________________ netTrek - web solution Saban ?nl? S?ringstrasse 9a 48653 Coesfeld _________________________ www.netTrek.de us@netTrek.de Tel.: +49 25 41 - 8 39 97 Fax: +49 25 41 - 98 27 02 _________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/as2api-dev/attachments/20060919/bc50e3a4/attachment.html From us at netTrek.de Tue Sep 19 16:10:44 2006 From: us at netTrek.de (=?iso-8859-1?Q?Saban_=DCnl=FC_=5B_netTrek_=5D?=) Date: Tue Sep 19 16:15:02 2006 Subject: [as2api-dev] AW: Including private members in as2api0.4 Message-ID: <1E8A35FDD31965458DC329A44446A1F9EDC2A8@mapibe12.exchange.xchg> Just change in parser.rb ( in parser folder ) - line 15 @visibility.to_s == "private" To @visibility.to_s == "ignore_the_private" Notice the is quick and dirty but it seems to work very well ;) Best regards SABAN _________________________ netTrek - web solution Saban ?nl? S?ringstrasse 9a 48653 Coesfeld _________________________ www.netTrek.de us@netTrek.de Tel.: +49 25 41 - 8 39 97 Fax: +49 25 41 - 98 27 02 _________________________ ________________________________ Von: Saban ?nl? [ netTrek ] Gesendet: Dienstag, 19. September 2006 09:46 An: 'as2api-dev@lists.badgers-in-foil.co.uk' Betreff: Including private members in as2api0.4 Hi there, do anybody know how I can include private members in my documentation? Best regards Saban ?nl? _________________________ netTrek - web solution Saban ?nl? S?ringstrasse 9a 48653 Coesfeld _________________________ www.netTrek.de us@netTrek.de Tel.: +49 25 41 - 8 39 97 Fax: +49 25 41 - 98 27 02 _________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/as2api-dev/attachments/20060919/89811640/attachment.htm From dave at badgers-in-foil.co.uk Wed Sep 20 11:31:46 2006 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed Sep 20 11:31:48 2006 Subject: [as2api-dev] Re: as2api - 'compile' to one executable file In-Reply-To: <0MKwpI-1GPwpG0Jcw-0004W8@mrelayeu.kundenserver.de> References: <0MKwpI-1GPwpG0Jcw-0004W8@mrelayeu.kundenserver.de> Message-ID: <20060920113146.GA16906@badgers-in-foil.co.uk> On Wed, Sep 20, 2006 at 09:49:07AM +0200, Ralf Lindemann wrote: > Hi Dave, > > first: good job on as2api ;) > > second: we did some chances due to "special" requirements. Cool! What sort of stuff are you up to? > The question: HOW, the hell ;), do we have to compile the package to get ONE > single executable file? > > We tried rubyscript2exe, but this one needs to be copied with gtk-lib, to > run on other computers, and we tried exerb, this on doesn't run if called > form another directory AND needs to be copied with all files and libs. > We are looking for a solution with only one exe-file, like your original > file. > > Could you please give us some hints? Well, I used rubyscript2exe to create the windows .exe of the cmdline tool. [A very early version of as2api included a toy GUI using the FXRuby UI toolkit, and that was packaged with rubyscript2exe too.] I think it's possible to package GTK ruby apps with this tool, but I've not done that myself. Have you read this..? http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_rubyscript2exe ..I don't know if it helps at all. As a last resort, I suppose you could try to get users to intall GTK first? ;) ta, dave From dave at badgers-in-foil.co.uk Wed Sep 20 12:58:00 2006 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed Sep 20 12:58:13 2006 Subject: [as2api-dev] Re: as2api - 'compile' to one executable file In-Reply-To: <0ML21M-1GQ0bL1o4u-0002jd@mrelayeu.kundenserver.de> References: <20060920113146.GA16906@badgers-in-foil.co.uk> <0ML21M-1GQ0bL1o4u-0002jd@mrelayeu.kundenserver.de> Message-ID: <20060920125759.GB16906@badgers-in-foil.co.uk> On Wed, Sep 20, 2006 at 01:51:01PM +0200, Ralf Lindemann wrote: > thanks for your fast reply. > Well, I tried rs2exe, but I wasn't able to get it work. > > I followed this one the "Creating an executable..." to install Ruby, GTK, > ruby-gtk and so on. > But, when I wanted the project compiled, nothing happens. > :>Ruby rubyscript2exe.rb project.rb > One short moment... and prompt was back It doesn't even say something like "Tracing project..."? > No .exe has been created > I don't know, what I did wrong or I didn't do. > > Maybe you have any idea? > > Well, I did not create those "pre-setup-file", everything else was done. > With no success. > > Meanwhile I got more and more ambitious. There must be a way to get one > single exe-file, mustn't it? Does it work ok if you just run it like that on it's own (i.e. just :>Ruby project.rb )? Does 'project.rb' print anything? Maybe you could 'puts "hello"' at the top to see if it actually executes? Does it work on another platform (i.e. Linux rather than Windows)? ta, dave From dave at badgers-in-foil.co.uk Wed Sep 20 15:13:12 2006 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed Sep 20 15:13:25 2006 Subject: [as2api-dev] Re: as2api - 'compile' to one executable file In-Reply-To: <0ML21M-1GQ2Wb0YGB-0002me@mrelayeu.kundenserver.de> References: <20060920125759.GB16906@badgers-in-foil.co.uk> <0ML21M-1GQ2Wb0YGB-0002me@mrelayeu.kundenserver.de> Message-ID: <20060920151312.GA19835@badgers-in-foil.co.uk> On Wed, Sep 20, 2006 at 03:54:14PM +0200, Ralf Lindemann wrote: > Hi Dave, > > me again ;) > > The project itself runs without any problems, if I "compile" it like > >:ruby project.rb > > I do not have the possibility, to test the project on another platform like > Linux or Apple. > > And, as I wrote before, running rs2exe does not generate any .exe-File. > > I don't know, perhaps I did something wrong, when installing the > "environment". > What does your "rubyscript2exe"-enviroment looks like? I just have a copy of the script dumped in a folder, and then invoke it on as2api like, path\to\ruby.exe -I lib path\to\rubyscript2exe.rb as2api.rb (The '-I lib' tells Ruby to pick up the source files from the as2api 'lib' folder, which is in the current directory when I run this.) Do you get some kind of usage message from rubyscript2exe if you just do, path\to\ruby path\to\rubyscript2exe.rb ? ta, dave From dave at badgers-in-foil.co.uk Thu Sep 21 13:54:57 2006 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Thu Sep 21 13:55:07 2006 Subject: [as2api-dev] Re: as2api - 'compile' to one executable file In-Reply-To: <0MKxQS-1GQOuL11NI-0005k5@mrelayeu.kundenserver.de> References: <20060920151312.GA19835@badgers-in-foil.co.uk> <0MKxQS-1GQOuL11NI-0005k5@mrelayeu.kundenserver.de> Message-ID: <20060921135457.GB4303@badgers-in-foil.co.uk> On Thu, Sep 21, 2006 at 03:48:16PM +0200, Ralf Lindemann wrote: > Hi Dave, > > I have done a big step forward. > But, not finished yet. > > Question: > If I take your source-package of as2api and "compile" it with > rubyscript2exe, everything seems to be right. > > But... > > Starting the "compiled" .exe-file results in an error. > Your "untouched" package doesn't load ui/cli > > Extending the system-var $: by paths at the package results in "load error > -> fileutils" > > To copy the fileutils.rb to a directory included to $: doesn't solve the > problem. It's good that you're providing this analysis, but what error are you actually seeing? Also, how are you invoking rubyscript2exe? Are you looking at the code from Subversion, or one of the releases? (Not altogether sure if I left the rubyscript2exe stuff in the Makefile currently in Svn in a working state or not...) ta, dave