-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sources are bad in cases of definition of data in upper level #138
Comments
To sum up the issue: So currently the list of I understand the use case, on the other hand I also find it useful to be able to see all We could modify current behaviour (I guess that omitting the "empty" parents will not break any functionality, but one never knows...) or we could make available both lists. @lukaszachy, @FrNecas, thoughts? |
as you said, both functionality makes sense I can imagine e.g. just instead of print
so that debug print of source files will be same, and also finally there are maybe 3 usefu cases:
|
Hi,
I've met the issue, that fmf
sources
are sometimes bad:fmf show --debug
produces:so that item
/a/x
is not defined in a.fmf anyhow, just inmain.fmf
so from that perspective sources in this case is just potential place where you can put some data, but it is not real place where any data of node are defined.I understand that this example is little bit artifical but clean to understand the issue.
It had bigger impact especially to modification or using plugins where there are then allowed to use eg.
a.py
anda.fmf
files as sources of data. (I wanted to usea.fmf
for modification usage in case there is not defined method in plugin to modify original source. so that It could be relatively easy override it by newfmf
file but I've found that when I create it, it will be applied whenever there are no definition for some nodes.Also bad is, that it may be little bit worse to user to uderstand where data are defined, in case it shows also files where there is no definition of node. In this case it shows the top priority file, where you can define data, but no real data here.
FIX
fix is theoretically easy, just pass through source paramater to Tree
init
, and add it just in case there are any data nof node instead of adding sources whengrow
andchild
andmerge
methods but practically implementation could be hard because of need complex refactoring. Potentially it may lead also to more readable code.The text was updated successfully, but these errors were encountered: