GNOME Bugzilla – Bug 511681
"unknown Security slot G" messages in console during QIF security import
Last modified: 2018-06-29 22:00:10 UTC
Please describe the problem: When Quicken exports a security list there can be an extra line in the QIF file for "investing goal" (aka an asset class). This line starts with a G. GnuCash currently ignores these - and rightly so because at the moment there is no concept of asset classes in GnuCash - but the importer prints the "unknown Security slot G" warning in the console for each security like this. That looks messy. Since we do know what the G line is for, I suggest adding logic to the importer to silently discard this info. Or at least explicitly say what's happening rather than just using the generic "unknown slot" message. Here is a sample: !Type:Security NVanguard 500 Index SVFINX TMutual Fund GLarge Cap Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 103596 [details] [review] Proposed patch I started looking at the code and I think the fix is so trivial that even I, completely ignorant of Scheme, can create a patch. So here it is.
Looks good to me... thanks! My first one was tiny too (see bug 491581).
In the future, please generate your diff from the top-level of the source tree ... in this case in particular, there are actually two "qif-file.scm"s in the source tree, so I had to inspect them manually to figure out which one to patch. :)
trunk@16908, awaiting backport for 2.2.4. thanks! :)
Applied to branches/2.2 as r16919 for GnuCash 2.2.4. Thanks a lot!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=511681. Please update any external references or bookmarks.