compiling with amberc

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

compiling with amberc

Andy Balholm-2
What parameters should I use when I want to compile a single package with amberc from the command line? When I try it, I get the following error:

$ amberc Models.st 

module.js:340
    throw err;
          ^
Error: Cannot find module 'amdefine'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.start (/usr/local/amber/bin/amberc.js:74:24)
    at Object.callback (/usr/local/amber/bin/amberc.js:401:11)
    at Object.Combo.check (/usr/local/amber/bin/amberc.js:116:18)
    at /usr/local/amber/bin/amberc.js:109:9
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)

--
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.
Reply | Threaded
Open this post in threaded view
|

Re: compiling with amberc

Manfred Kröhnert
Hello Andy,

I think you need to run 'npm install' in the toplevel Amber directory.
On the commandline we need an equivalent to require.js which is installed via npm dependencies.
Herby will correct me if this is wrong :-)

Best,
Manfred




On Thu, Oct 3, 2013 at 4:29 PM, Andy Balholm <[hidden email]> wrote:
What parameters should I use when I want to compile a single package with amberc from the command line? When I try it, I get the following error:

$ amberc Models.st 

module.js:340
    throw err;
          ^
Error: Cannot find module 'amdefine'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.start (/usr/local/amber/bin/amberc.js:74:24)
    at Object.callback (/usr/local/amber/bin/amberc.js:401:11)
    at Object.Combo.check (/usr/local/amber/bin/amberc.js:116:18)
    at /usr/local/amber/bin/amberc.js:109:9
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)

--
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.

--
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.
Reply | Threaded
Open this post in threaded view
|

Re: compiling with amberc

Andy Balholm-2
On Saturday, October 5, 2013 10:29:24 AM UTC-7, Manfred Kröhnert wrote:
Hello Andy,

I think you need to run 'npm install' in the toplevel Amber directory.
On the commandline we need an equivalent to require.js which is installed via npm dependencies.
Herby will correct me if this is wrong :-)

That helps. I get past that error now, and get a different one:

$ amberc Models.st
Importing: Models.st

undefined:29438
throw anError;
      ^
Error: 
 

--
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.
Reply | Threaded
Open this post in threaded view
|

Re: compiling with amberc

Dave Mason-3
If you use the verbose option to amberc, it will print out a lot of information, but at the bottom you will see the real error.

../Dave

../Dave


On Sat, Oct 5, 2013 at 8:01 PM, Andy Balholm <[hidden email]> wrote:
On Saturday, October 5, 2013 10:29:24 AM UTC-7, Manfred Kröhnert wrote:
Hello Andy,

I think you need to run 'npm install' in the toplevel Amber directory.
On the commandline we need an equivalent to require.js which is installed via npm dependencies.
Herby will correct me if this is wrong :-)

That helps. I get past that error now, and get a different one:

$ amberc Models.st
Importing: Models.st

undefined:29438
throw anError;
      ^
Error: 
 

--
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.

--
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.
Reply | Threaded
Open this post in threaded view
|

Re: compiling with amberc

Andy Balholm-2
In reply to this post by Andy Balholm-2

On Oct 5, 2013, at 5:11 PM, Manfred Kröhnert <[hidden email]> wrote:

> You can add the '-v' flag to produce a more verbose output which should give you more details.
>
> Probably you are also missing Amber packages that Model.st depends on.
> Those can be added with the '-l' flag.

You're right. Here is the command line that works:

amberc -v -l Canvas -n com_balholm_aftermath Models.st

--
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.