Giter Club home page Giter Club logo

vscode-ledger's Introduction

IMPORTANT: I'm no longer actively working on this project

I recently started using beancount/fava instead of ledger and I'm probably not going to spend much time on this project.

If you have improvements I'll try to merge and publish pull requests. If you're interested in maintaining the project please get in touch and we can figure out the best way to work together or to transfer it to you.

Content of this repository

This repository contains both the code for the client and server side of the Visual Studio Code extension. Their directories contain the code and more details.

How to develop

The process is a bit more convoluted than I'd like, anyway here are the steps you'll need to follow to get something running:

  • npm install in both the client and server directories
  • open two Visual Studio Code windows, one for the client and one for the server
  • in the server's window, hit CTRL + Shift + B. It will build the server and copy into the client folder
  • in the client folder, hit CTRL + Shift + B to build and then F5 when you want to launch a new Visual Studio Code window with a debugger attached.

vscode-ledger's People

Contributors

jeevcat avatar mariosangiorgio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vscode-ledger's Issues

Cannot read journal file

Every time I open a .ledger file I get an error:

Cannot read journal file "/c%3A/path/to/ledger/file.ledger"

This is running 1.08 on VSCode 1.13.1 on Windows 10.

Support icu4c version 66

Can you update to support icu4c version 66?

Homebrew on my Mac upgraded icu4c from version 64 to version 66 and broke this ledger extension in VS Code.

I am getting the following error when opening a ledger file in VS Code:

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicudata.64.dylib Referenced from: /usr/local/opt/boost/lib/libboost_regex-mt.dylib Reason: image not found

I do not have /usr/local/opt/icu4c/lib/libicudata.64.dylib but I do have /usr/local/opt/icu4c/lib/libicudata.66.dylib and the ledger extension is not recognizing it.

Improve project structure

I'm not convinced by how server is being packaged up. It is pulling into the client both the actual source and the tests, which is a bit too much.

Also, it forces the client to know about the src directory, which should be only an implementation detail, to find the compiled file.

Double quotes in payee

The plugin crashes while opening my .ledger file.
I found that a combination of unclosed double quotes and commas in payee (description) may cause the problem.

a sample file

2017/08/22 "open quotes""
  A  1
  B

2017/08/23 Test a,b
  C  1
  A
  
2017/08/24 "close quotes""
  B  1
  A

error log

events.js:165
      throw err;
      ^

Error: Uncaught, unspecified "error" event. (Failed to parse balance: Could not get amount from string: B)
    at RegisterParser.emit (events.js:163:17)
<<skip>>
[Error - 10:44:20] Connection to server got closed. Server will not be restarted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.