Zotonic
Zotonic
zotonic@conference.zotonic.com
Sunday, 6 October 2013< ^ >
Arjan has set the subject to: Zotonic - The Erlang Web Framework & CMS
Room Configuration

GMT+2
[00:03:46] Maas leaves the room
[01:15:25] cillian.deroiste leaves the room
[02:56:24] <z-bot> [d9k_] hi!
[02:56:39] <z-bot> [d9k_] is anybody here>
[02:56:40] <z-bot> [d9k_] ?
[02:58:38] d9k joins the room
[03:00:28] <d9k> Hi! Please help me to choose IDE with for zotonic.
I've tried Erlide, but code completion doesn't work properly.
[03:00:43] <d9k> *IDE for zotonic
[03:03:49] Mawuli Adzaku joins the room
[03:04:11] <Mawuli Adzaku> Hi d9k
[03:05:59] <Mawuli Adzaku> I personally use Emacs with Erlang mode and the zotonic-tpl-mode, and it works great.
[03:07:00] <Mawuli Adzaku> However, any IDE or text editor with an Erlang 'mode' or bindings should be ok for writing Zotonic Erlang codes.
[03:09:21] Mawuli Adzaku leaves the room
[03:10:26] Mawuli Adzaku joins the room
[03:35:47] <d9k> Mawuli Adzaku, thx!
Please, some other answers?
[03:36:18] <Mawuli Adzaku> Ok
[03:37:53] <d9k> I wonder how correctly setup ErlyBird or Erlide for correctly working autocompletion and "Go to declaration" button.
[03:39:10] <Mawuli Adzaku> Nice, first time hearing of Erlybird. Looks good :)
[03:39:43] <d9k> I've tried this tutorial for Erlide by Douglas, but failed: https://groups.google.com/forum/#!topic/zotonic-users/CdLhhQdXKSY
Autocompletion works for core erlang modules only
[03:43:42] <Mawuli Adzaku> Ah, same for me on Emacs until I added some custom autocomplete stuff.
[03:44:38] <Mawuli Adzaku> It's unfortunate the Zotonic developers are not around now. They could have been of great help, as I don't know much about some of these tools
[03:44:50] <Mawuli Adzaku> but eh, have you tried Sublime?
[03:45:08] <Mawuli Adzaku> I used it sometime ago, and it was really cool :)
[04:00:41] <d9k> Yes, I have this thing. How to setup it for erlang and zotonic modules functions autocompletion and navigation to functions declaration?
[04:03:26] <Mawuli Adzaku> You mean you have the Sublime text editor?
[04:03:46] <d9k> Sublime Text 2.0.2 build 2221
[04:04:20] <d9k> I have wbond packege control installed too
[04:04:30] <d9k> *package
https://sublime.wbond.net/
[04:05:56] <Mawuli Adzaku> Ok, it ships with Erlang support
[04:07:24] <d9k> yes, but.. highlight only, not complicated IDE features?
[04:07:26] <Mawuli Adzaku> but to extend the Erlang support, you must install a plugin like this one https://github.com/ostinelli/SublimErl
[04:09:48] <d9k> Mawuli Adzaku, ok, thanks, I installed it. How to add Zotonic classes to code completion?
[04:10:06] <d9k> z_db or smth
[04:16:03] <Mawuli Adzaku> d9k: please install the sublimeerl plugin in the sublime text package directory on your machine
[04:16:44] <Mawuli Adzaku> Once you do that, open any of the Erlang files and try it out
[04:17:18] <Mawuli Adzaku> I don' t think there is any need to add the Zotonic modules to the plugin's path. It does that for you :)
[04:17:34] <d9k> I did this already, it doesn't complete zotonic core classes.
[04:17:50] <d9k> maybe some permissions problems?
[04:18:02] <d9k> because I can't save modified files
[04:18:03] <Mawuli Adzaku> Oh, it works here like a charm :)
[04:18:39] <d9k> during install zotonic made user "zotonic" and all zotonic files belong to him
[04:18:44] <Mawuli Adzaku> Which OS or platform are you using?
[04:18:49] <d9k> *During installation
[04:18:55] <d9k> Debian 6
[04:19:03] <d9k> in virtual box
[04:19:47] <d9k> xfce4 graphic environment
[04:20:13] <Mawuli Adzaku> ah, not sure why
[04:20:53] <d9k> d9k@d9k-debian:/home/zotonic/zotonic$ touch README.md
touch: cannot touch `README.md': Permission denied
[04:21:38] <Mawuli Adzaku> oh ok. How about you fix the permissions problem and see if it works
[04:21:50] <d9k> thanks)
[04:22:28] <Mawuli Adzaku> I am using Sublime text 2 and with the SublimeErl plugin and code completion works alright
[04:22:40] <Mawuli Adzaku> You are welcome. :)
[04:23:04] <Mawuli Adzaku> Pls let me know how it goes :)
[04:23:11] <d9k> Ok) Why have you switched to Emacs, share your expirience)
[04:25:38] <Mawuli Adzaku> Well, I started using Emacs just recently
[04:26:15] <Mawuli Adzaku> It was partly because some of the Zotonic developers use it and recommend it. Also because it is popular in the Erlang community
[04:26:41] <Mawuli Adzaku> I also wanted to learn something new, especially Emacs lisp
[04:27:52] <d9k> interesting) How long it took to get used to emacs shortcuts?
[04:28:16] <Mawuli Adzaku> Still struggling with it!
[04:28:27] <d9k> :D
[04:28:38] <Mawuli Adzaku> but I have made some progress after several attempts
[04:28:48] <d9k> How many weeks do you struggling?
[04:28:54] <Mawuli Adzaku> my configs is almost right, and enjoying it now
[04:29:48] <Mawuli Adzaku> Well, a couple of weeks. Mostly to learn Emacs lisp and then the text editor itself
[04:30:12] <Mawuli Adzaku> but finally found Prelude, and saved me lots of time https://github.com/bbatsov/prelude
[04:30:59] <Mawuli Adzaku> I am still learning to use Emacs well, but Prelude has made it easier for me. Also added some customs settings and everything is just fine!
[04:32:09] <d9k> ok, I've made
sudo chmod -R g+w zotonic/
useradd -G zotonic [username]
rebooted and waiting for effect
[04:32:18] <d9k> *sudo useradd
[04:32:49] <Mawuli Adzaku> Ok
[04:36:41] <d9k> still no autocompletion for zotonic in sublime(
[04:38:38] <Mawuli Adzaku> hmm
[04:39:05] <d9k> I can modify all files
[04:39:15] <d9k> in zotonic folder
[04:42:47] <Mawuli Adzaku> Open one of the zotonic Erlang modules and try typing the some of the module names and see
[04:44:41] <d9k> wow! wow!
it began to work))
[04:44:52] <Mawuli Adzaku> :D
[04:44:56] <d9k> after second time
[04:45:14] <d9k> stranged
[04:45:28] <d9k> I did it second time AFTER changing permissions
[04:45:43] <Mawuli Adzaku> Nice. Glad it worked
[04:48:07] <d9k> it stopped to work again 0o
[04:49:57] <d9k> please, tell me exact steps and exact file names
[04:50:10] <d9k> erlide autocomplete doesn't work too
[04:52:27] <Mawuli Adzaku> hmm, not sure what's wrong
[04:53:25] <d9k> it worked for one minute ==
I saw many classes beginning with z_ in autocomplete window
[04:53:39] <d9k> *begining
[04:55:10] <Mawuli Adzaku> Ah, it is supposed to also autocomplete module names
[04:55:17] <Mawuli Adzaku> and more
[04:55:41] <d9k> manu modules, not many classes, sorry)
[04:55:44] <d9k> *many
[04:56:07] <d9k> I'm novice in Erlang)
[04:57:53] <Mawuli Adzaku> Ok, same here. Also new to Erlang. Make sure you have the following executables: erl, rebar, escript, and dilayzer
[04:58:33] <d9k> no rebar and dilayzer
[04:58:37] <Mawuli Adzaku> you might not need all for the Sublimetext autocomplete to work, but just check that you have all
[04:59:00] <d9k> are they mandatory?
[04:59:16] <Mawuli Adzaku> rebar: https://github.com/basho/rebar
[04:59:55] <Mawuli Adzaku> not really...
[05:02:41] <d9k> ok, thanks for your help, anyway!)
[05:03:13] <d9k> Sorry, I'm leaving chat. Good bye!)
[05:03:27] <d9k> Mawuli Adzaku,
[05:04:55] d9k leaves the room: Miranda NG (http://miranda-ng.org/.)
[09:52:35] cillian.deroiste joins the room
[10:39:42] Mawuli Adzaku leaves the room
[10:40:33] Mawuli joins the room
[10:44:38] Maas joins the room
[10:56:01] Mawuli leaves the room
[10:57:02] Mawuli joins the room
[11:28:08] Mawuli leaves the room
[11:28:43] Mawuli joins the room
[11:38:16] Mawuli leaves the room
[11:38:56] Mawuli joins the room
[11:42:18] Mawuli leaves the room
[11:42:28] Mawuli joins the room
[12:06:26] d9k joins the room
[12:10:46] Mawuli leaves the room
[12:12:14] Mawuli joins the room
[12:30:05] d9k leaves the room: Miranda NG (http://miranda-ng.org/.)
[13:19:06] cillian.deroiste leaves the room
[13:37:59] cillian.deroiste joins the room
[13:38:29] cillian.deroiste leaves the room
[13:39:14] cillian.deroiste joins the room
[13:39:33] cillian.deroiste leaves the room
[13:51:19] cillian.deroiste joins the room
[15:08:15] <Maas> Having fun with engine.io. With a A bit of reverse engineering...
[15:08:24] <Maas> it now does polling...
[15:12:16] <Maas> Client side: z_engine.send('this').send('is').send('a').send('test');
[15:12:33] <Maas> Server side: 13:11:53.918 [info] DEBUG: controller_engine_io:193 <<"5:4this">>
13:11:53.925 [info] DEBUG: controller_engine_io:193 <<"3:4is2:4a5:4test">>
[15:14:23] <Maas> Now checking if I can upgrade to a websocket connection...
[15:41:37] Maas leaves the room
[15:41:59] Mawuli leaves the room
[17:21:29] Maas joins the room
[17:49:30] Maas leaves the room
[18:00:37] Maas joins the room
[18:08:50] <Maas> Yes, upgrade to websocket...
[18:08:53] <Maas> 15:57:11.792 [info] DEBUG: controller_engine_io:217 {ws_msg,<0.13490.20>,<<"4this">>}
15:57:11.844 [info] DEBUG: controller_engine_io:217 {ws_msg,<0.13490.20>,<<"4is">>}
15:57:11.844 [info] DEBUG: controller_engine_io:217 {ws_msg,<0.13490.20>,<<"4a">>}
15:57:11.844 [info] DEBUG: controller_engine_io:217 {ws_msg,<0.13490.20>,<<"4test">>}
[18:14:31] Maas4769 joins the room
[18:14:31] Maas4769 is now known as Maas71185
[18:14:31] Maas71185 leaves the room
[18:14:31] Maas4769 joins the room
[18:14:31] Maas4769 leaves the room
[18:14:31] Maas86132 joins the room
[18:21:01] Maas leaves the room
[18:35:23] Steffen Hanikel joins the room
[18:57:09] Maas86132 leaves the room
[19:07:43] Steffen Hanikel leaves the room
[20:24:00] Maas joins the room
[20:28:24] Maas57872 joins the room
[20:28:24] Maas57872 leaves the room
[20:28:24] Maas64151 joins the room
[20:28:24] Maas64151 is now known as Maas92332
[20:28:24] Maas92332 leaves the room
[20:28:24] Maas92332 joins the room
[20:28:24] Maas92332 leaves the room
[20:28:24] Maas88877 joins the room
[20:56:39] Maas88877 leaves the room
[21:14:23] Maas leaves the room
[21:15:06] Maas joins the room
[21:35:03] Maas leaves the room
[21:41:23] Maas joins the room
[21:44:30] Maas leaves the room
[21:44:45] Maas joins the room
[22:09:07] cillian.deroiste leaves the room
[22:10:09] cillian.deroiste joins the room
[23:18:46] Maas84690 joins the room
[23:18:46] Maas84690 is now known as Maas72209
[23:18:46] Maas72209 leaves the room
[23:18:46] Maas72209 joins the room
[23:28:05] Maas88160 joins the room
[23:28:05] Maas88160 leaves the room
[23:28:05] Maas54213 joins the room
[23:28:05] Maas54213 is now known as Maas88160
[23:28:05] Maas88160 leaves the room
[23:28:05] Maas1823 joins the room
[23:28:05] Maas1823 leaves the room
[23:28:05] Maas3526 joins the room
[23:28:19] Maas72209 leaves the room
[23:28:20] Maas leaves the room
[23:29:17] Maas joins the room
[23:29:39] Maas3526 leaves the room
[23:34:39] Maas10427 joins the room
[23:34:39] Maas10427 is now known as Maas22161
[23:34:39] Maas22161 leaves the room
[23:34:39] Maas59261 joins the room
[23:34:39] Maas59261 leaves the room
[23:34:39] Maas17262 joins the room
[23:46:34] Maas17262 leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!