Hi! Tried amber init command - very useful for me, thanks :)
-- But.. I can`t commit changes: Commiting failed with reason: "File could not be created. Did you forget to create the src directory on the server?" The exact error is: Error: ENOENT, open './com.hubbatov.first/first.js' What is wrong? Project directory contains 'src' directory with .js and .st files. INDEX HTML: <!DOCTYPE html> <html> <head> <title>First</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="author" content="Khubbatov Rustem" /> <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: { 'com.hubbatov.first': 'src' //mapping compiled .js files and smalltalk source files }}); require([ 'amber/devel', 'com.hubbatov.first/first' ], function (smalltalk) { //used for all new packages in IDE smalltalk.initialize({ 'transport.defaultAmdNamespace': "com.hubbatov.first" }); }); </script> <button onclick="require('amber/helpers').globals.Browser._open()">legacy IDE</button> <button onclick="require('amber/helpers').popupHelios()">Helios IDE</button> </body> </html> 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/d/optout. |
Hubbatov,
I tried it with your name space com.hubbatov.first and it did not work either. However if I use a name space without dots it works find. HTH --Hannes On 4/22/14, XumuK <[hidden email]> wrote: > Hi! Tried amber init command - very useful for me, thanks :) > But.. I can`t commit changes: > > *Commiting failed with reason: "File could not be created. Did you forget > to create the src directory on the server?"* > *The exact error is: Error: ENOENT, open './com.hubbatov.first/first.js'* > > What is wrong? Project directory contains 'src' directory with .js and .st > files. > > *INDEX HTML:* > <!DOCTYPE html> > <html> > > <head> > <title>First</title> > <meta http-equiv="content-type" content="text/html; charset=utf-8" /> > <meta name="author" content="Khubbatov Rustem" /> > <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: { > 'com.hubbatov.first': 'src' //mapping compiled .js files and > smalltalk source files > }}); > require([ > 'amber/devel', > 'com.hubbatov.first/first' > ], function (smalltalk) { > //used for all new packages in IDE > smalltalk.initialize({ > 'transport.defaultAmdNamespace': "com.hubbatov.first" > }); > }); > </script> > <button > onclick="require('amber/helpers').globals.Browser._open()">legacy > IDE</button> > <button onclick="require('amber/helpers').popupHelios()">Helios > IDE</button> > </body> > > </html> > > -- > 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/d/optout. > -- 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/d/optout. |
Thanks, it`s works for me
-- вторник, 22 апреля 2014 г., 11:25:27 UTC+4 пользователь Hannes написал: Hubbatov, 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/d/optout. |
In reply to this post by XumuK
Yrs, requirejs has problems with dots in path. I used undetscores in place of dot in reverse path names.
I also added an issue: https://github.com/amber-smalltalk/grunt-init-amber/issues/11 XumuK <[hidden email]>napísal/a: Thanks, it`s works for me
-- вторник, 22 апреля 2014 г., 11:25:27 UTC+4 пользователь Hannes написал: Hubbatov, 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/d/optout. -- 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/d/optout. |
Free forum by Nabble | Edit this page |