Hi Matthias

As far as I understand, `tup parse` instructs tup to run the parse phase,
e.g. read all files that have changed and update the database accordingly.
This obviously needs to be done before you could generate a todo. I think
the reason why parse is separate from todo is for use cases like `tup ref`.
tup parse is somewhat irreversible, and so you don't want it triggered on
accident, whereas todo is just formatting information from the database. It
would probably be helpful to have something like `tup todo -f` that forces
a parse if needed, and in my experience Mike has been very receptive pull
requests.

Erik

On Thu, Nov 24, 2016, 12:26 <[email protected]> wrote:

> Hi!
>
> I have the following directory structure:
>
>     doit.lua
>     Tupfile
>     subdir/in.txt
>
> The Tupfile contains the following single rule:
>
>     : |> lua doit.lua |> out.txt
>
> When I run `tup init` followed by `tup todo`, I get this output:
>
>     # tup todo
>     [ tup ] Scanning filesystem...
>     Tup phase 2: The following directories must be parsed:
>       50% .
>      100% subdir
>     Run 'tup parse' to proceed to phase 3.
>
> According to the documentation of `tup todo`, I expected it to utter
> that `lua doit.lua` will be run. Instead, tup says I should run
> `tup parse`, which is not mentioned in the manual.
>
> The simple question is: Is this the expected behaviour?
>
> I'm running tup v0.7.4-27-g4804ea7 on Windows.
>
> Regards,
> Matthias
>
> --
> --
> tup-users mailing list
> email: [email protected]
> unsubscribe: [email protected]
> options: http://groups.google.com/group/tup-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "tup-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
> Diese Mail wurde aus Datenschutzgründen verschlüsselt versandt.
>
> --
> --
> tup-users mailing list
> email: [email protected]
> unsubscribe: [email protected]
> options: http://groups.google.com/group/tup-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "tup-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to