Skip to content
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

Account autocompletion fails due to commodity price error. #38

Closed
dofine opened this issue Mar 17, 2020 · 4 comments
Closed

Account autocompletion fails due to commodity price error. #38

dofine opened this issue Mar 17, 2020 · 4 comments

Comments

@dofine
Copy link

dofine commented Mar 17, 2020

Update: see #38 (comment).

Fold structure and workspace settings are
{ "beancount.mainBeanFile": "main.bean", "beancount.python3Path": "/Users/dufan/anaconda3/bin/python3" }

In mean.bean I have included all other beancount files. In account.beancount there are all open commands. But no account auto complete when editing other files, like test.beancount.

@Lencerf
Copy link
Owner

Lencerf commented Mar 17, 2020

  1. Do you mean that in previous versions, say 0.5.3, account autocompletion can work, but now it does not work?
  2. What is the current version of your vscode? 1.43.0?
  3. In main.bean, can you see account autocompletion?
  4. Does autocompletion of narrations and payees work?
  5. Can you please open OUTPUT (besides TERMINAL) and switch to Beancount to see what is the output? example:

image

@dofine
Copy link
Author

dofine commented Mar 18, 2020

Hi, sorry to bother you. Not related to version. ( As I updated my beancount and plugin almost the same day, it's hard to find out.)

It hangs here forever because I have a seperate invest.beancount file to record stock investment and price change, while some prices for a commodity are missing.
image

  1. Directly run the command in terminal works.
    image
  2. Leave out the invest.beancount file, the plugin works as expected.

@dofine dofine changed the title Account autocompletion doesn't work in 0.5.4? Account autocompletion fails due to commodity price error. Mar 18, 2020
@Lencerf
Copy link
Owner

Lencerf commented Mar 18, 2020

Can you please try this version 0.5.5? To install it, please see https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix

beancount-0.5.5.zip

The problem comes from <unrealized_gains> in the output. Since beancount does not provide a valid file path, to fix the problem, I just simply replace <unrealized_gains> by main bean file path.

@dofine
Copy link
Author

dofine commented Mar 18, 2020

0.5.5 Works. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants