Unable to build multiple applications

17 views
Skip to first unread message

Raynier59

unread,
Jun 27, 2012, 1:17:08 PM6/27/12
to erlware-...@googlegroups.com
Hi All,

I am new to the Erlang/Sinan field and have a question on setting up and building a multi-app solution with Sinan.

SysInfo: I am working on a Win7 system, downloaded Sinan 4.1.1 from the GitHub site, running R15B01, ERTS 5.9.1
Error:    Unable to generate a project configuration from available metadata.
--------------------------------------------------------------

Step 1)  C:\<path>\ErlangSource\escript.exe sinan gen

This command works just fine and I can setup a multi-application project and define multiple applications inside it.
The expected directory structures for all applications are setup correctly.

Step 2)  C:\<path>\ErlangSource\escript.exe sinan build

This command fails with the error "Unable to generate a project configuration from available metadata" if my multi-application project has more than one application defined but the build succeeds if I define/place only a single application in an multi-application project. (It generates the _build directory etc, and all the other sinan commands work fine too)

Adding another application to a multi-application project that was created with a single application (which originally built fine as stated above) subsequently also breaks on the build step with the given error.

Any suggestions on how to place multiple applications in a "multi-application project"? Am I missing something? Which is very likely ;-)

Thanks for any suggestions you can provide

Kind regards

    Raynier (Vashon Island), WA.



Eric Merritt

unread,
Jun 27, 2012, 1:24:30 PM6/27/12
to erlware-...@googlegroups.com
Raynier,

What does your application look like? All sinan is saying is that it
cant figure out some details about the project and you haven't
explicitly told it those details with a config.

Eric
> --
> You received this message because you are subscribed to the Google Groups
> "erlware-questions" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/erlware-questions/-/2Mp3khQ40KAJ.
> To post to this group, send email to erlware-...@googlegroups.com.
> To unsubscribe from this group, send email to
> erlware-questi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/erlware-questions?hl=en.

Raynier59

unread,
Jun 27, 2012, 1:51:36 PM6/27/12
to erlware-...@googlegroups.com
Hi Eric,

Thanks for your quick reply.

I am working along side your Vimeo video (http://vimeo.com/34177001) but get stumped at the build point in the video. It looks like something in the process breaks if there are multiple directories (applications) in the project foo/lib directory. If I remove say the \bar and \baz application directories it happily builds my project into the project /_build dir. If I do several builds for each \foo, \bar and \baz separately, each of them builds to the \build directory  (so it looks it is not related to the applications themselves) but as soon as there is more than one app-dir in the foo\lib directory I get the Unable to generate a project configuration from available metadata error.

So there is not really any code in the applications yet. It wasn't clear from the video that I need to provide additional config info? Any more info I can provide?

Thanks,

   Raynier


On Wednesday, June 27, 2012 10:24:30 AM UTC-7, Eric Merritt wrote:
Raynier,

What does your application look like? All sinan is saying is that it
cant figure out some details about the project and you haven't
explicitly told it those details with a config.

Eric

> To post to this group, send email to erlware-questions@googlegroups.com.
> To unsubscribe from this group, send email to
> erlware-questions+unsubscribe@googlegroups.com.

Eric Merritt

unread,
Jun 27, 2012, 2:04:44 PM6/27/12
to erlware-...@googlegroups.com
Raynier,

Is it possible for you to tar up your project and send it my way?
Thats going to be easiest. If not we can work through the issues.

Eric
>> > To post to this group, send email to erlware-...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > erlware-questi...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/erlware-questions?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "erlware-questions" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/erlware-questions/-/KlDZd8ksNS4J.
>
> To post to this group, send email to erlware-...@googlegroups.com.
> To unsubscribe from this group, send email to
> erlware-questi...@googlegroups.com.

Raynier59

unread,
Jun 27, 2012, 2:46:48 PM6/27/12
to erlware-...@googlegroups.com
Hi Eric,

zip file with project attached. I left out the sinan escript but it would be in the ErlangVimeoCode directory as a sibling to the xhive directory. I verified that the sinan build is 4.1.1 by looking inside the sinan script.

"escript.exe sinan build" in the ErlangVimeoCode directory causes the break.

Thanks again.

   Raynier




On Wednesday, June 27, 2012 11:04:44 AM UTC-7, Eric Merritt wrote:
Raynier,

Is it possible for you to tar up your project and send it my way?
Thats going to be easiest. If not we can work through the issues.

Eric

>> > To post to this group, send email to erlware-questions@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > erlware-questions+unsubscribe@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/erlware-questions?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "erlware-questions" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/erlware-questions/-/KlDZd8ksNS4J.
>
> To post to this group, send email to erlware-questions@googlegroups.com.
> To unsubscribe from this group, send email to
> erlware-questions+unsubscribe@googlegroups.com.
ErlangVimeoCode.zip

Eric Merritt

unread,
Jun 28, 2012, 10:09:26 AM6/28/12
to erlware-...@googlegroups.com
I will take a look.

On Wed, Jun 27, 2012 at 1:46 PM, Raynier59 <rayn...@live.com> wrote:
> Hi Eric,
>
> zip file with project attached. I left out the sinan escript but it would be
> in the ErlangVimeoCode directory as a sibling to the xhive directory. I
> verified that the sinan build is 4.1.1 by looking inside the sinan script.

You can do this also by running "sinan version"
>> >> > erlware-...@googlegroups.com.
>> >> > To unsubscribe from this group, send email to
>> >> > erlware-questi...@googlegroups.com.
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/erlware-questions?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "erlware-questions" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/erlware-questions/-/KlDZd8ksNS4J.
>> >
>> > To post to this group, send email to erlware-...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > erlware-questi...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/erlware-questions?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "erlware-questions" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/erlware-questions/-/aJcJUvMI5fIJ.
>
> To post to this group, send email to erlware-...@googlegroups.com.
> To unsubscribe from this group, send email to
> erlware-questi...@googlegroups.com.

Eric Merritt

unread,
Jun 28, 2012, 10:17:01 AM6/28/12
to erlware-...@googlegroups.com
Raynier,

So on linux this works just fine. That makes me believe that this is a
windows problem. We wrote sinan to be platform agnostic but none of us
have actually run or tested this on windows. I will try to get a
windows vm built up and test it out, thats going to take a few days
though.

Eric

Raynier59

unread,
Jun 29, 2012, 1:47:55 PM6/29/12
to erlware-...@googlegroups.com
Hi Eric,

How could I complain about you helping me :-)

Thanks for looking into the problem. There is no immediate urgency. I'll keep track of the thread.

Take care,

    Raynier


On Thursday, June 28, 2012 7:17:01 AM UTC-7, Eric Merritt wrote:
Raynier,

So on linux this works just fine. That makes me believe that this is a
windows problem. We wrote sinan to be platform agnostic but none of us
have actually run or tested this on windows. I will try to get a
windows vm built up and test it out, thats going to take a few days
though.

Eric

>>> >> > erlware-questions@googlegroups.com.
>>> >> > To unsubscribe from this group, send email to
>>> >> > erlware-questions+unsubscribe@googlegroups.com.
>>> >> > For more options, visit this group at
>>> >> > http://groups.google.com/group/erlware-questions?hl=en.
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "erlware-questions" group.
>>> > To view this discussion on the web visit
>>> > https://groups.google.com/d/msg/erlware-questions/-/KlDZd8ksNS4J.
>>> >
>>> > To post to this group, send email to erlware-questions@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > erlware-questions+unsubscribe@googlegroups.com.
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/erlware-questions?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "erlware-questions" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/erlware-questions/-/aJcJUvMI5fIJ.
>>
>> To post to this group, send email to erlware-questions@googlegroups.com.
>> To unsubscribe from this group, send email to
>> erlware-questions+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages