-
Notifications
You must be signed in to change notification settings - Fork 19
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
Can't view "Asset Allocation Classes": I get the error "Message Corrupt" #56
Comments
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:
|
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 fe16c06 |
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?
The text was updated successfully, but these errors were encountered: