Sinan Circular Dependency Error

34 views
Skip to first unread message

Tristan Sloughter

unread,
Apr 25, 2012, 8:07:24 PM4/25/12
to erlware-...@googlegroups.com
This sequence of error->fix->circular kernel dependency happens for any dependency or app file related problem when building:

λ sinan dist
bcmvc_models: Missing parameter in .app file: registered

λ sinan dist
Can't copy a directory to itself ("/home/tristan/Devel/bcmvc/_build/bcmvc/lib/kernel-2.15" to "/home/tristan/Devel/bcmvc/_build/bcmvc/lib/kernel-2.15")
sin_utils:334 [circular_recursion]

Then I do a clean and its all fine:

λ sinan clean
λ sinan dist

Jordan Wilberding

unread,
Apr 28, 2012, 8:50:58 AM4/28/12
to erlware-...@googlegroups.com
Maybe I am missing something, but what is the error if sinan clean fixes it? 

2012/4/25 Tristan Sloughter <tristan....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "erlware-questions" group.
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.

Tristan Sloughter

unread,
Apr 28, 2012, 8:56:25 AM4/28/12
to erlware-...@googlegroups.com
There should never be that error. "Rebooting" after an error and it no longer being there is not a fix ;)

2012/4/28 Jordan Wilberding <jwilb...@gmail.com>

Eric Merritt

unread,
Apr 28, 2012, 9:40:51 AM4/28/12
to erlware-...@googlegroups.com
I am with Tristan on this one. It *shouldn't* occur, at the very
least it should'n be anything percolated to the user.

2012/4/28 Tristan Sloughter <tristan....@gmail.com>:

Martin Logan

unread,
Apr 28, 2012, 1:53:13 PM4/28/12
to erlware-...@googlegroups.com
I have to take issue with that statement. Rebooting after an error and
returning to a known good base state is what light process based
models are all about :)
Martin Logan
Erlang & OTP in Action (Manning) http://manning.com/logan
http://twitter.com/martinjlogan
http://erlware.org

Jordan Wilberding

unread,
Apr 29, 2012, 12:04:33 AM4/29/12
to erlware-...@googlegroups.com
It all depends on the assumptions you make. Sinan caches certain things for certain benefits. This is acceptable usage in other build tools I have used before, where you must do a make clean to get things into a proper order if you edit certain files.

2012/4/28 Tristan Sloughter <tristan....@gmail.com>

Tristan Sloughter

unread,
Apr 29, 2012, 10:47:16 AM4/29/12
to erlware-...@googlegroups.com
Hmm, also if I add deps to an apps .app file and do not do a 'sinan clean' it is unable to find those apps. Like:

Undefined applications: [ibrowse,erlcloud]

After a clean it builds fine.

2012/4/28 Jordan Wilberding <jwilb...@gmail.com>

Eric Merritt

unread,
Apr 30, 2012, 10:34:42 AM4/30/12
to erlware-...@googlegroups.com
Hmm, this seems like its not tracking app file changes correctly. I
will take a look.

Eric
Reply all
Reply to author
Forward
0 new messages