[rabbitmq-discuss] [BUG] Erlang RabbitMQ client requires installed server code
rabbitmq-discuss_efine at usa.net
Mon Sep 8 00:43:30 BST 2008
On Sun, Sep 7, 2008 at 7:24 PM, Ben Hood <0x6e6562 at gmail.com> wrote:
> On Sun, Sep 7, 2008 at 11:07 PM, Edwin Fine
> <rabbitmq-discuss_efine at usa.net> wrote:
> > Maybe we can meet halfway. I didn't really want to get into
> > the RabbitMQ module structure (well, I wish I could, but I don't have
> > The mortgage payment beckons and all that incidental stuff).
> Sure. I don't think myself or Matthias thought that you would be able
> to go this far, because it is difficult enough for ourselves to do
> The main thing for us is that there is some active participation in
> the community which provides feedback about what is needed.
Well, since you asked ;-) ... My understanding is that OTP standards are
for the .app file to have the same name as the application behaviour
callback and the directory in which it is situated. For example, the OTP
compiler application is in the compiler directory, and under ebin, there is
compiler.app, and under src there is compiler.erl.
With RabbitMQ, the app config file is named rabbit.app, the app itself is
rabbit.erl, but the directory is named rabbitmq_server. This is
inconsistent. Now before you call me nitpicky, there is a practical issue
behind this. The client that is written uses things like
-include_lib("rabbitmq_server/include/rabbit.hrl"). This forces the server
code to stay in a directory named rabbitmq_server, because this is what
allows the includes to work via code:lib_dir(). The problem is that because
the app is named rabbit, automated dependency tools like Sinan have trouble
with the inconsistency.
Could you either rename the app to rabbitmq_server, or change all references
(and the dir name) to rabbit?
> Let us know if you need any help in reaching your short term goal.
Well, right now I have fudged what's needed to get going, but I the above
changes would be most appreciated if at all possible.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss