amberc complainting "ReferenceError: ChunkParser is not defined"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

amberc complainting "ReferenceError: ChunkParser is not defined"

Stefan Krecher
Hi,
no matter what and how i try to compile files with amberc - the above Error Message is shown.
Even when i try to compile Compiler.st (which contains ChunkParser) ...
Tried it on windows with node.exe 0.5.7
Is it a bug or am i missing something?
regards,
Stefan
Reply | Threaded
Open this post in threaded view
|

Re: amberc complainting "ReferenceError: ChunkParser is not defined"

Nicolas Petton
It works for me under Linux (I compiled server/FileServer.st).
Can you show me the full stack trace?

Cheers,
Nico

On Tue, 2011-11-08 at 08:25 -0800, Stefan Krecher wrote:
> Hi,
> no matter what and how i try to compile files with amberc - the above
> Error Message is shown.
> Even when i try to compile Compiler.st (which contains
> ChunkParser) ...
> Tried it on windows with node.exe 0.5.7
> Is it a bug or am i missing something?
> regards,
> Stefan


Reply | Threaded
Open this post in threaded view
|

Re: amberc complainting "ReferenceError: ChunkParser is not defined"

Stefan Krecher-2
bin/amberc -m FileServer server/FileServer.st fserver
when i start the generated fserver.js it doesn't work because the the Package FileServer is not in the fserver.js

Here's the stacktrace resulting from amberc ...

Loading libraries /cygdrive/c/git/amber/js/boot.js /cygdrive/c/git/amber/js/Kernel-Objects.js /cygdrive/c/git/amber/js/Kernel-Classes.js /cygdrive/c/git/amber/js/Kernel-Methods.js /cygdrive/c/git/amber/js/Kernel-Collections.js /cygdrive/c/git/amber/js/Kernel-Exceptions.js /cygdrive/c/git/amber/js/Kernel-Transcript.js /cygdrive/c/git/amber/js/parser.js Compiler.js /cygdrive/c/git/amber/js/init.js /cygdrive/c/git/amber/bin/nodecompile.js and compiling ...

node.js:208
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
ReferenceError: ChunkParser is not defined
    at Object.<anonymous> (C:\git\amber\amberc.S7TB8O\compiler.js:14188:21)
    at Module._compile (module.js:425:26)
    at Object..js (module.js:443:10)
    at Module.load (module.js:344:31)
    at Function._load (module.js:303:12)
    at Array.<anonymous> (module.js:463:10)
    at EventEmitter._tickCallback (node.js:200:26)
Adding libraries  /cygdrive/c/git/amber/js/boot.js /cygdrive/c/git/amber/js/Kernel-Objects.js /cygdrive/c/git/amber/js/Kernel-Classes.js /cygdrive/c/git/amber/js/Kernel-Methods.js /cygdrive/c/git/amber/js/Kernel-Collections.js /cygdrive/c/git/amber/js/Kernel-Exceptions.js /cygdrive/c/git/amber/js/Kernel-Transcript.js  ...
Adding Amber code FileServer.js ...
Adding initializer /cygdrive/c/git/amber/js/init.js ...
Adding call to FileServer class >> main ...
Writing fserver.js ...
Done.


2011/11/8 Nicolas Petton <[hidden email]>
It works for me under Linux (I compiled server/FileServer.st).
Can you show me the full stack trace?

Cheers,
Nico

On Tue, 2011-11-08 at 08:25 -0800, Stefan Krecher wrote:
> Hi,
> no matter what and how i try to compile files with amberc - the above
> Error Message is shown.
> Even when i try to compile Compiler.st (which contains
> ChunkParser) ...
> Tried it on windows with node.exe 0.5.7
> Is it a bug or am i missing something?
> regards,
> Stefan





--
Dipl.-Wirtsch.-Inf. Stefan Krecher
Neulander Str. 17, 27374 Visselhövede
Tel +49(0)4262 958848
mobil +49(0)172 3608616
http://krecher.com
Reply | Threaded
Open this post in threaded view
|

Re: amberc complainting "ReferenceError: ChunkParser is not defined"

Stefan Krecher
sorry, my fault. It seems to work when i'm, in the same directory as the code i want to compile (e.g. in /server or /st)
The error message is a bit misleading.
regards,
Stefan