ReferenceError: undefinedsmalltalk is not defined

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

ReferenceError: undefinedsmalltalk is not defined

PabloEstefo
Hi everyone,

I'm working on the automation of exporting Roassal from Pharo to Amber.

I've been compiling several Roassal's packages and it worked fine, but when trying to compile Roassal-PlatformIndependent (http://pastebin.com/ZE7nPQCB) and I had the following error:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

/Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661
undefinedsmalltalk.init(smalltalk.Object); //metaclasses are in through Class
^
ReferenceError: undefinedsmalltalk is not defined
    at Object.<anonymous> (/Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Failed compilation of Roassal-PlatformIndependent.js, exiting.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

I couldn't find out where the issue is, any idea?

Thank you in advance,
Reply | Threaded
Open this post in threaded view
|

Re: ReferenceError: undefinedsmalltalk is not defined

Manfred Kröhnert
Hi Pablo,

On Thu, Jan 10, 2013 at 9:53 PM, Pablo Estefó <[hidden email]> wrote:
Hi everyone,

I'm working on the automation of exporting Roassal from Pharo to Amber.

I've been compiling several Roassal's packages and it worked fine, but when trying to compile Roassal-PlatformIndependent (http://pastebin.com/ZE7nPQCB) and I had the following error:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

/Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661
undefinedsmalltalk.init(smalltalk.Object); //metaclasses are in through Class
^
ReferenceError: undefinedsmalltalk is not defined
    at Object.<anonymous> (/Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Failed compilation of Roassal-PlatformIndependent.js, exiting.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

I couldn't find out where the issue is, any idea?

Thank you in advance,


the issue you are facing is related to this bug report:


In my case I am getting the same error when trying to compile Amber kernel packages as a result of Kernel-Objects.st failing to compile.
Afterwards the file Kernel-Object.js seems to be imported as just 'undefined'.
And this in turn gets concatenated in a wrong way (no space after undefined).

If you leave Kernel-Objects.st out of the compile loop you will get further but not necessarily finish the compilation.

Two questions though.
Are you using Amber from git master?
How/where do you call the compiler?

Best,
Manfred
Reply | Threaded
Open this post in threaded view
|

Re: ReferenceError: undefinedsmalltalk is not defined

PabloEstefo
Hi Manfred,

El 10-01-2013, a las 18:35, Manfred Kröhnert <[hidden email]> escribió:

Hi Pablo,

On Thu, Jan 10, 2013 at 9:53 PM, Pablo Estefó <[hidden email]> wrote:
Hi everyone,

I'm working on the automation of exporting Roassal from Pharo to Amber.

I've been compiling several Roassal's packages and it worked fine, but when trying to compile Roassal-PlatformIndependent (http://pastebin.com/ZE7nPQCB) and I had the following error:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

/Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661
undefinedsmalltalk.init(smalltalk.Object); //metaclasses are in through Class
^
ReferenceError: undefinedsmalltalk is not defined
    at Object.<anonymous> (/Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Failed compilation of Roassal-PlatformIndependent.js, exiting.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

I couldn't find out where the issue is, any idea?

Thank you in advance,


the issue you are facing is related to this bug report:


In my case I am getting the same error when trying to compile Amber kernel packages as a result of Kernel-Objects.st failing to compile.
Afterwards the file Kernel-Object.js seems to be imported as just 'undefined'.
And this in turn gets concatenated in a wrong way (no space after undefined).

If you leave Kernel-Objects.st out of the compile loop you will get further but not necessarily finish the compilation.
How can I do that?


Two questions though.
Are you using Amber from git master?
Well, actually I forked the repository from this version: https://github.com/pestefo/amber/commit/fd186dddd9ef5afac6ad73283965bb9532238c2c

How/where do you call the compiler?

$ path_to_amber/bin/amberc -l pkg1,pkg2,pkg3 path_to_st_files/APackage.st

Thanks,

Reply | Threaded
Open this post in threaded view
|

Re: ReferenceError: undefinedsmalltalk is not defined

Nicolas Petton

We have some issues with the compiler from the master git version. Could
you give it a try by importing from the workspace in the IDE? There's a
fileIn button there.

Nico

Pablo Estefó <[hidden email]> writes:

> Hi Manfred,
>
> El 10-01-2013, a las 18:35, Manfred Kröhnert <[hidden email]> escribió:
>
>> Hi Pablo,
>>
>> On Thu, Jan 10, 2013 at 9:53 PM, Pablo Estefó <[hidden email]> wrote:
>> Hi everyone,
>>
>> I'm working on the automation of exporting Roassal from Pharo to Amber.
>>
>> I've been compiling several Roassal's packages and it worked fine, but when trying to compile Roassal-PlatformIndependent (http://pastebin.com/ZE7nPQCB) and I had the following error:
>>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>>
>> /Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661
>> undefinedsmalltalk.init(smalltalk.Object); //metaclasses are in through Class
>> ^
>> ReferenceError: undefinedsmalltalk is not defined
>>     at Object.<anonymous> (/Users/pestefo/projects/practica2/roassal-amber/amber/RoassalAmber/amberc.PP7Hco/compiler.js:37661:1)
>>     at Module._compile (module.js:449:26)
>>     at Object.Module._extensions..js (module.js:467:10)
>>     at Module.load (module.js:356:32)
>>     at Function.Module._load (module.js:312:12)
>>     at Module.runMain (module.js:492:10)
>>     at process.startup.processNextTick.process._tickCallback (node.js:244:9)
>> Failed compilation of Roassal-PlatformIndependent.js, exiting.
>>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>>
>> I couldn't find out where the issue is, any idea?
>>
>> Thank you in advance,
>>
>>
>> the issue you are facing is related to this bug report:
>>
>> https://github.com/NicolasPetton/amber/issues/275
>>
>> In my case I am getting the same error when trying to compile Amber kernel packages as a result of Kernel-Objects.st failing to compile.
>> Afterwards the file Kernel-Object.js seems to be imported as just 'undefined'.
>> And this in turn gets concatenated in a wrong way (no space after undefined).
>>
>> If you leave Kernel-Objects.st out of the compile loop you will get further but not necessarily finish the compilation.
> How can I do that?
>
>>
>> Two questions though.
>> Are you using Amber from git master?
> Well, actually I forked the repository from this version: https://github.com/pestefo/amber/commit/fd186dddd9ef5afac6ad73283965bb9532238c2c
>
>> How/where do you call the compiler?
>
> $ path_to_amber/bin/amberc -l pkg1,pkg2,pkg3 path_to_st_files/APackage.st
>
> Thanks,
>

--
Nicolas Petton
http://nicolas-petton.fr