You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I first tried to run ledger-web, I received an error when it attempted to load the ledger files into the database:
Loading database
Dumping ledger to file...
Dump finished
Clearing ledger table....
Done clearing ledger table
Loading into database....
Called #<Proc:0x007f84b9d61038@/Library/Ruby/Gems/2.0.0/gems/ledger_web-1.5.2/lib/ledger_web/watcher.rb:20>#call(<DirectoryWatcher::Event type: stable path: '/tmp/all_quoteless.dat'>) and all I got was this lousy exception Missing or stray quote in line 542
I was eventually able to determine that it was tripping over very long lines. Since these were all caused by comments, which all begin with a semicolon, I was able to fix it by stripping out anything that starts with a semicolon (and any leftover lines that start with whitespace) like so: sed "s/;.*//g" ledger.dat | sed "/^ +\$/d".
The text was updated successfully, but these errors were encountered:
When I first tried to run ledger-web, I received an error when it attempted to load the ledger files into the database:
I was eventually able to determine that it was tripping over very long lines. Since these were all caused by comments, which all begin with a semicolon, I was able to fix it by stripping out anything that starts with a semicolon (and any leftover lines that start with whitespace) like so:
sed "s/;.*//g" ledger.dat | sed "/^ +\$/d"
.The text was updated successfully, but these errors were encountered: