I have an error "Commit failed... "

24 views
Skip to first unread message

Александр Р

unread,
May 2, 2014, 6:19:08 AM5/2/14
to amber...@googlegroups.com
Hi!
I have an error "Commit failed for namespace "test_amber". Do you want to commit to another path? " (I do not use dots in the namespace.)

Directory (\new_test\src\) exists. In the directory there are two files (AmberTest.st & AmberTest.js) created by the wizard initialization (amber init).

Where the error is probably hiding?

Herby Vojčík

unread,
May 2, 2014, 6:29:16 AM5/2/14
to amber...@googlegroups.com
Include your index.html, please.

Александр Р wrote:
> Hi!
> I have an error "/Commit failed for namespace "test_amber". Do you
> want to commit to another path? /" (I do not use dots in the namespace.)
>
> Directory (\new_test\src\) exists. In the directory there are two
> files (AmberTest.st & AmberTest.js) created by the wizard
> initialization (amber init).
>
> Where the error is probably hiding?
>
> --
> 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 amber-lang+...@googlegroups.com
> <mailto:amber-lang+...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Александр Р

unread,
May 2, 2014, 6:38:26 AM5/2/14
to amber...@googlegroups.com
<html>

  <head>
    <title>Ambertest</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="author" content="" />
    <script type='text/javascript' src='bower_components/amber/support/requirejs/require.min.js'></script>
    <script type='text/javascript' src='bower_components/amber/support/amber.js'></script>
  </head>

  <body>
    <script type='text/javascript'>
      require.config({ paths: {
          'test_amber': 'src' //mapping compiled .js files and smalltalk source files
      }});
      require([
          'amber/devel',
          'test_amber/AmberTest'
      ], function (smalltalk) {
          //used for all new packages in IDE
          smalltalk.initialize({
            'transport.defaultAmdNamespace': "test_amber"
          });
      });
    </script>
    <button onclick="require('amber/helpers').globals.Browser._open()">legacy IDE</button>
    <button onclick="require('amber/helpers').popupHelios()">Helios IDE</button>
  </body>

</html>

пятница, 2 мая 2014 г., 14:29:16 UTC+4 пользователь Herby написал:
Include your index.html, please.


H. Hirzel

unread,
May 2, 2014, 6:52:00 AM5/2/14
to amber...@googlegroups.com
Did you check if you have not inadvertently stopped

amber serve

?

--Hannes

On 5/2/14, Александр Р <gen...@live.ru> wrote:
>
>
> <html> <head> <title>Ambertest</title> <meta
> http-equiv="content-type" content="text/html; charset=utf-8" /> <meta
> name="author" content="" /> <script type='text/javascript'
> src='bower_components/amber/support/requirejs/require.min.js
> <view-source:file:///C:/amber_rep/new_test/bower_components/amber/support/requirejs/require.min.js>'></script>
> <script type='text/javascript'
> src='bower_components/amber/support/amber.js
> <view-source:file:///C:/amber_rep/new_test/bower_components/amber/support/amber.js>'></script>
> </head> <body> <script type='text/javascript'> require.config({
> paths: { 'test_amber': 'src' //mapping compiled .js files and
> smalltalk source files }}); require([ 'amber/devel',
> 'test_amber/AmberTest' ], function (smalltalk) { //used
> for all new packages in IDE smalltalk.initialize({
> 'transport.defaultAmdNamespace': "test_amber" }); });
> </script> <button
> onclick="require('amber/helpers').globals.Browser._open()">legacy
> IDE</button> <button
> onclick="require('amber/helpers').popupHelios()">Helios IDE</button>
> </body></html>
>
>
> пятница, 2 мая 2014 г., 14:29:16 UTC+4 пользователь Herby написал:
>>
>> Include your index.html, please.
>>
>>
>>
>
> --
> 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 amber-lang+...@googlegroups.com.

Herby Vojčík

unread,
May 2, 2014, 7:00:02 AM5/2/14
to amber...@googlegroups.com
Yes, I though of that as well. Did you run amber serve and ran it from http://localhost:4000/? If you just loaded index.html, of course commit will fail.

Александр Р

unread,
May 2, 2014, 7:28:29 AM5/2/14
to amber...@googlegroups.com
Thanks! My mistake. I've done amber serve from the /bin directory... Right thing to do from the project directory. :)

пятница, 2 мая 2014 г., 15:00:02 UTC+4 пользователь Herby написал:

H. Hirzel

unread,
May 2, 2014, 7:41:19 AM5/2/14
to amber...@googlegroups.com
You are welcome, I have added your question to
https://github.com/amber-smalltalk/amber/wiki/FAQ

On 5/2/14, Александр Р <gen...@live.ru> wrote:
Reply all
Reply to author
Forward
0 new messages