It may be easier to tackle your last point first:

And finally: My expectation would be that the if I ask for the
dependencies for tiddler X, I will get _all_ dependencies for it.


The reason why you are only getting the immediate dependencies of the
tiddlers you parse is that the further dependencies can't be computed until
those immediate dependencies have been loaded and parsed. Your code is part
of the process of progressively loading those tiddlers, reading out their
dependencies, and recursing back to load them. The parser can't give you
all the dependencies of a tiddler until it's examined all the other
tiddlers that it references with the "include" dependency.

There will eventually be a method on the WikiStore object that aggregates
all the dependencies of a tiddler, but it will be synchronous, and so won't
be any use to you.

Best wishes

Jeremy

--
http://jermolene.com
http://tiddlywiki.com
http://osmosoft.com

On 10 Feb 2012, at 21:17, "[email protected]" <[email protected]>
wrote:

On Fri, 10 Feb 2012, Jeremy Ruston wrote:

Thanks. I can't duplicate the problem in my test rig, so I've been

looking at the tw5ikifier code. I'm probably being very stupid and

misreading the code, but I'm wondering if the problem isn't that it

doesn't seem to be processing the sub-dependencies of the tiddlers

that get loaded as primary dependencies. You don't need to do it for

"link" tiddlers, but I think you do need to do it for "include"

tiddlers.


Hmm. Doesn't the rendering happen after the store has been filled up,
and sub dependencies are looking at the same store as primary
dependencies?

In my examples, in any case, the sub-dependencies are tiddlers in
the same set as the primary dependencies, so presumably they shouldn't
need to be resolved again?

And finally: My expectation would be that the if I ask for the
dependencies for tiddler X, I will get _all_ dependencies for it.

-- 
Chris Dent                                   http://burningchrome.com/
                               [...]

-- 
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to