I try to compile the following Test1.st file. It compiles fine in 0.12.1 and 0.12.2, but fails in 0.12.3. Test1.st Smalltalk current createPackage: 'Test1'!
Object subclass: #Zaraza instanceVariableNames: '' package: 'Test1'! !Zaraza methodsFor: 'as yet unclassified'! ! command line is: $> ../../lib/amber/bin/amberc -v -l SUnit,Canvas -n com_test1 -D ../js/ Test1.st
result: [...] HTMLCanvas class >> initialize JavaScript exception: ReferenceError: jQuery is not defined [ReferenceError: jQuery is not defined]
Cheers, Javier -- Lic. Javier Pimás Ciudad de Buenos Aires You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Javier Pimás wrote: > I try to compile the following Test1.st file. It compiles fine in > 0.12.1 and 0.12.2, but fails in 0.12.3. > > Test1.st > > Smalltalk current createPackage: 'Test1'! > Object subclass: #Zaraza > instanceVariableNames: '' > package: 'Test1'! > > !Zaraza methodsFor: 'as yet unclassified'! > > ! > > command line is: > > $> ../../lib/amber/bin/amberc -v -l SUnit,Canvas -n com_test1 -D > ../js/ Test1.st > > result: > > [...] > HTMLCanvas class >> initialize > JavaScript exception: ReferenceError: jQuery is not defined > [ReferenceError: jQuery is not defined] The [...] is interesting here. Why is HTMLCanvas class initialized, when it only has to load? > Cheers, > Javier > -- > Lic. Javier Pimás > Ciudad de Buenos Aires Herby -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Just to mention, this is just checking out from the repo without modifications (git checkout 0.12.x), I didn't modify any amber file. The complete output from 0.12.3 is Resolving: Test1.st Resolving: boot.js Resolving: smalltalk.js Resolving: globals.js Resolving: nil.js Resolving: _st.js Resolving: Kernel-Objects.js
Resolving: Kernel-Classes.js Resolving: Kernel-Methods.js Resolving: Kernel-Collections.js Resolving: Kernel-Infrastructure.js Resolving: Kernel-Exceptions.js Resolving: Kernel-Transcript.js
Resolving: Kernel-Announcements.js Resolving: SUnit.js Resolving: Canvas.js Resolving: boot.js Resolving: smalltalk.js Resolving: globals.js Resolving: nil.js
Resolving: _st.js Resolving: Kernel-Objects.js Resolving: Kernel-Classes.js Resolving: Kernel-Methods.js Resolving: Kernel-Collections.js Resolving: Kernel-Infrastructure.js
Resolving: Kernel-Exceptions.js Resolving: Kernel-Transcript.js Resolving: Kernel-Announcements.js Resolving: parser.js Resolving: Kernel-ImportExport.js Resolving: Compiler-Exceptions.js
Resolving: Compiler-Core.js Resolving: Compiler-AST.js Resolving: Compiler-Exceptions.js Resolving: Compiler-IR.js Resolving: Compiler-Inlining.js Resolving: Compiler-Semantic.js
Resolving: SUnit.js Resolving: Canvas.js Loading file: /proyects/test1/www/lib/amber/support/boot.js Loading file: /proyects/test1/www/lib/amber/support/smalltalk.js Loading file: /proyects/test1/www/lib/amber/support/globals.js
Loading file: /proyects/test1/www/lib/amber/support/nil.js Loading file: /proyects/test1/www/lib/amber/support/_st.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Objects.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Classes.js
Loading file: /proyects/test1/www/lib/amber/js/Kernel-Methods.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Collections.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Infrastructure.js
Loading file: /proyects/test1/www/lib/amber/js/Kernel-Exceptions.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Transcript.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Announcements.js
Loading file: /proyects/test1/www/lib/amber/support/parser.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-ImportExport.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js
Loading file: /proyects/test1/www/lib/amber/js/Compiler-Core.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-AST.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js
Loading file: /proyects/test1/www/lib/amber/js/Compiler-IR.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-Inlining.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-Semantic.js
Loading file: /proyects/test1/www/lib/amber/js/SUnit.js Loading file: /proyects/test1/www/lib/amber/js/Canvas.js HTMLCanvas class >> initialize JavaScript exception: ReferenceError: jQuery is not defined
[ReferenceError: jQuery is not defined] while in 0.12.2 I get Checking: Test1.st Resolving: boot.js Resolving: smalltalk.js
Resolving: nil.js Resolving: _st.js Resolving: Kernel-Objects.js Resolving: Kernel-Classes.js Resolving: Kernel-Methods.js Resolving: Kernel-Collections.js
Resolving: Kernel-Infrastructure.js Resolving: Kernel-Exceptions.js Resolving: Kernel-Transcript.js Resolving: Kernel-Announcements.js Resolving: SUnit.js Resolving: Canvas.js
Resolving: boot.js Resolving: smalltalk.js Resolving: nil.js Resolving: _st.js Resolving: Kernel-Objects.js Resolving: Kernel-Classes.js Resolving: Kernel-Methods.js
Resolving: Kernel-Collections.js Resolving: Kernel-Infrastructure.js Resolving: Kernel-Exceptions.js Resolving: Kernel-Transcript.js Resolving: Kernel-Announcements.js
Resolving: parser.js Resolving: Importer-Exporter.js Resolving: Compiler-Exceptions.js Resolving: Compiler-Core.js Resolving: Compiler-AST.js Resolving: Compiler-Exceptions.js
Resolving: Compiler-IR.js Resolving: Compiler-Inlining.js Resolving: Compiler-Semantic.js Resolving: SUnit.js Resolving: Canvas.js Loading file: /proyects/test1/www/lib/amber/support/boot.js
Loading file: /proyects/test1/www/lib/amber/support/smalltalk.js Loading file: /proyects/test1/www/lib/amber/support/nil.js Loading file: /proyects/test1/www/lib/amber/support/_st.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Objects.js
Loading file: /proyects/test1/www/lib/amber/js/Kernel-Classes.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Methods.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Collections.js
Loading file: /proyects/test1/www/lib/amber/js/Kernel-Infrastructure.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Exceptions.js Loading file: /proyects/test1/www/lib/amber/js/Kernel-Transcript.js
Loading file: /proyects/test1/www/lib/amber/js/Kernel-Announcements.js Loading file: /proyects/test1/www/lib/amber/support/parser.js Loading file: /proyects/test1/www/lib/amber/js/Importer-Exporter.js
Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-Core.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-AST.js
Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-IR.js Loading file: /proyects/test1/www/lib/amber/js/Compiler-Inlining.js
Loading file: /proyects/test1/www/lib/amber/js/Compiler-Semantic.js Loading file: /proyects/test1/www/lib/amber/js/SUnit.js Loading file: /proyects/test1/www/lib/amber/js/Canvas.js Compiler loaded
Compiling collected .st files Importing: Test1.st Verifying if all .st files were compiled cheers
On Mon, Feb 3, 2014 at 9:32 AM, Herby Vojčík <[hidden email]> wrote:
Lic. Javier Pimás Ciudad de Buenos Aires You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Javier Pimás wrote: > Just to mention, this is just checking out from the repo without > modifications (git checkout 0.12.x), I didn't modify any amber file. > > The complete output from 0.12.3 is > > Resolving: Test1.st > ... > Resolving: Canvas.js > Loading file: /proyects/test1/www/lib/amber/support/boot.js > ... > Loading file: /proyects/test1/www/lib/amber/js/Canvas.js > HTMLCanvas class >> initialize > JavaScript exception: ReferenceError: jQuery is not defined > [ReferenceError: jQuery is not defined] Hm, so there is nothing in the stack before it. It seems all -l libraries are loaded and only then smalltalk is initialized. @NicolasPetton, what do you think about it? Shouldn't it be so that only compiler part is fully initialized, and -l libraries in amberc should only be loaded to be present, but not actually initialized? Herby -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
In reply to this post by melkyades
Hi Javier!
Thanks for reporting the issue. Could you add it to the issue tracker here: https://github.com/amber-smalltalk/amber/issues?state=open Thanks! Nico Javier Pimás writes: > Just to mention, this is just checking out from the repo without > modifications (git checkout 0.12.x), I didn't modify any amber file. > > The complete output from 0.12.3 is > > Resolving: Test1.st > Resolving: boot.js > Resolving: smalltalk.js > Resolving: globals.js > Resolving: nil.js > Resolving: _st.js > Resolving: Kernel-Objects.js > Resolving: Kernel-Classes.js > Resolving: Kernel-Methods.js > Resolving: Kernel-Collections.js > Resolving: Kernel-Infrastructure.js > Resolving: Kernel-Exceptions.js > Resolving: Kernel-Transcript.js > Resolving: Kernel-Announcements.js > Resolving: SUnit.js > Resolving: Canvas.js > Resolving: boot.js > Resolving: smalltalk.js > Resolving: globals.js > Resolving: nil.js > Resolving: _st.js > Resolving: Kernel-Objects.js > Resolving: Kernel-Classes.js > Resolving: Kernel-Methods.js > Resolving: Kernel-Collections.js > Resolving: Kernel-Infrastructure.js > Resolving: Kernel-Exceptions.js > Resolving: Kernel-Transcript.js > Resolving: Kernel-Announcements.js > Resolving: parser.js > Resolving: Kernel-ImportExport.js > Resolving: Compiler-Exceptions.js > Resolving: Compiler-Core.js > Resolving: Compiler-AST.js > Resolving: Compiler-Exceptions.js > Resolving: Compiler-IR.js > Resolving: Compiler-Inlining.js > Resolving: Compiler-Semantic.js > Resolving: SUnit.js > Resolving: Canvas.js > Loading file: /proyects/test1/www/lib/amber/support/boot.js > Loading file: /proyects/test1/www/lib/amber/support/smalltalk.js > Loading file: /proyects/test1/www/lib/amber/support/globals.js > Loading file: /proyects/test1/www/lib/amber/support/nil.js > Loading file: /proyects/test1/www/lib/amber/support/_st.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Objects.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Classes.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Methods.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Collections.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Infrastructure.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Exceptions.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Transcript.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Announcements.js > Loading file: /proyects/test1/www/lib/amber/support/parser.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-ImportExport.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Core.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-AST.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-IR.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Inlining.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Semantic.js > Loading file: /proyects/test1/www/lib/amber/js/SUnit.js > Loading file: /proyects/test1/www/lib/amber/js/Canvas.js > HTMLCanvas class >> initialize > JavaScript exception: ReferenceError: jQuery is not defined > [ReferenceError: jQuery is not defined] > > > while in 0.12.2 I get > > Checking: Test1.st > Resolving: boot.js > Resolving: smalltalk.js > Resolving: nil.js > Resolving: _st.js > Resolving: Kernel-Objects.js > Resolving: Kernel-Classes.js > Resolving: Kernel-Methods.js > Resolving: Kernel-Collections.js > Resolving: Kernel-Infrastructure.js > Resolving: Kernel-Exceptions.js > Resolving: Kernel-Transcript.js > Resolving: Kernel-Announcements.js > Resolving: SUnit.js > Resolving: Canvas.js > Resolving: boot.js > Resolving: smalltalk.js > Resolving: nil.js > Resolving: _st.js > Resolving: Kernel-Objects.js > Resolving: Kernel-Classes.js > Resolving: Kernel-Methods.js > Resolving: Kernel-Collections.js > Resolving: Kernel-Infrastructure.js > Resolving: Kernel-Exceptions.js > Resolving: Kernel-Transcript.js > Resolving: Kernel-Announcements.js > Resolving: parser.js > Resolving: Importer-Exporter.js > Resolving: Compiler-Exceptions.js > Resolving: Compiler-Core.js > Resolving: Compiler-AST.js > Resolving: Compiler-Exceptions.js > Resolving: Compiler-IR.js > Resolving: Compiler-Inlining.js > Resolving: Compiler-Semantic.js > Resolving: SUnit.js > Resolving: Canvas.js > Loading file: /proyects/test1/www/lib/amber/support/boot.js > Loading file: /proyects/test1/www/lib/amber/support/smalltalk.js > Loading file: /proyects/test1/www/lib/amber/support/nil.js > Loading file: /proyects/test1/www/lib/amber/support/_st.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Objects.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Classes.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Methods.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Collections.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Infrastructure.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Exceptions.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Transcript.js > Loading file: /proyects/test1/www/lib/amber/js/Kernel-Announcements.js > Loading file: /proyects/test1/www/lib/amber/support/parser.js > Loading file: /proyects/test1/www/lib/amber/js/Importer-Exporter.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Core.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-AST.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Exceptions.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-IR.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Inlining.js > Loading file: /proyects/test1/www/lib/amber/js/Compiler-Semantic.js > Loading file: /proyects/test1/www/lib/amber/js/SUnit.js > Loading file: /proyects/test1/www/lib/amber/js/Canvas.js > Compiler loaded > Compiling collected .st files > Importing: Test1.st > Verifying if all .st files were compiled > > cheers > > > On Mon, Feb 3, 2014 at 9:32 AM, Herby Vojčík <[hidden email]> wrote: > >> >> >> Javier Pimás wrote: >> >>> I try to compile the following Test1.st file. It compiles fine in 0.12.1 >>> and 0.12.2, but fails in 0.12.3. >>> >>> Test1.st >>> >>> Smalltalk current createPackage: 'Test1'! >>> Object subclass: #Zaraza >>> instanceVariableNames: '' >>> package: 'Test1'! >>> >>> !Zaraza methodsFor: 'as yet unclassified'! >>> >>> ! >>> >>> command line is: >>> >>> $> ../../lib/amber/bin/amberc -v -l SUnit,Canvas -n com_test1 -D ../js/ >>> Test1.st >>> >>> result: >>> >>> [...] >>> HTMLCanvas class >> initialize >>> JavaScript exception: ReferenceError: jQuery is not defined >>> [ReferenceError: jQuery is not defined] >>> >> >> The [...] is interesting here. >> Why is HTMLCanvas class initialized, when it only has to load? >> >> >> Cheers, >>> Javier >>> -- >>> Lic. Javier Pimás >>> Ciudad de Buenos Aires >>> >> >> Herby >> >> -- >> You received this message because you are subscribed to the Google Groups >> "amber-lang" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [hidden email]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Lic. Javier Pimás > Ciudad de Buenos Aires -- Nicolas Petton http://nicolas-petton.fr -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
On Tue, Feb 4, 2014 at 6:34 AM, Nicolas Petton <[hidden email]> wrote: Hi Javier! Lic. Javier Pimás Ciudad de Buenos Aires You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/groups/opt_out. |
Free forum by Nabble | Edit this page |