Closed JaneSmith closed 3 years ago
Okay, I realised I could run Fava via the terminal to check there for any error outputs. Perhaps Fava Investor could display the error message itself to make it easier to troubleshoot? "Message Corrupt" is very vague!
From the terminal, I could see clearly that it was complaining that it couldn't convert AMD to GBP and suggested that I was missing a price directive. After adding a price directive for AMD in GBP, it works.
However, I am still confused as to whether this is a bug or not. I already had a price directive for AMD in USD, a price directive for GBP in USD, and a price directive for USD in GBP. Surely from these, it should have been possible to work out AMD in GBP?
Glad you found the problem. Perhaps the README should mention checking the console for errors.
Plugins unfortunately don't have much control over the error message to display. There may be a way, or upgrades to fava may be required, I haven't looked.
You're right, it's currently a limitation that currency conversion chains are not followed. One problem is, multiple chains can cause multiple valid but different answers. Another is determining the preferred currency automatically. More in #32. I'll get to it at some point, probably not soon. But PRs are most welcome.
Glad you found the AA useful!
Thanks a lot for clearing that up.
I'm a little bit confused as to why the extension doesn't support currency conversion chains. As far as I can tell, Fava itself does. As in this example, I've had price directives for AMD to USD and then for USD to GBP. If I look at my Balance Sheet in Fava, choose "Converted to GBP" and view my Assets, I can see that the AMD shares are correctly converted to GBP. Couldn't Fava Investor just handle it the same way as Fava, whatever that way is?
In any case, I'll follow the issue you linked. Should this one be closed?
Mostly because I just haven't had the time as the sole contributor :). This is not completely trivial, but likely isn't difficult either, just requires, time, thought, and testing.
I think there are two steps to supporting currency conversion chains: 1) Look for how Fava converts all to one currency, and hook up the code to use the same thing, including using the UI elements. Note that this has to also work for the library/command line version of the asset allocator, meaning some parameterization is required at least. If there is fava specific code to do the conversion, that can't be used and has to be rewritten. Break up the UI elements so "At Cost" is not an option. Might require changes to fava.
2) Understand what currency conversion chains mean for asset allocation. Allocations for the same portfolio may vary when using different chains. First, is this truly a problem in practice, or is the variance so small that this is not worth worrying about? If deeper examination is needed, what does this mean for the user?
Yes please, let's continue the discussion in #32. I'll close this one, feel free to reopen or open a new issue as needed.
README updated in fe16c06ad
I'm trying to get Fava Investor working but am having some trouble.
I'll say first of all that it works fine if I open the included example file. However when I use my own ledger file, clicking "Asset Allocation Classes" gives me the following error message:
I can view the "Asset Allocation Accounts", "Cash Drag" and "Tax Loss Harvestor" pages just fine. The problem only occurs on the "Asset Allocation Classes" page, which is the most important one to me and the entire reason why I wanted to use the extension.
Since it works with the example file, I'm not sure whether this is a bug in the extension or something I'm doing wrong with my ledger. Obviously I don't want to post my real ledger files for privacy reasons. As far as I can tell, I'm doing the same thing as in the example though.
I have this at the top of my file:
And I also define all the commodities I'm using. Here are some examples:
Any idea why this isn't working or what I can do to troubleshoot it?