hledger-api broken on Windows

Created on 28 Dec 2017  路  6Comments  路  Source: simonmichael/hledger

I'm trying to run hledger-api on Windows, but it will only ever print out the usage text.

I tried digging into the issue but it looks like it is caused by docopt which is exiting due to the parseArgsOrExit no matter which arguments are supplied.

I tried adding the following code to find the issue (at the start of main in hledger-api.hs):

args <- getArgs
print parseArgs doc args

and it always prints:
Left "argv" (line 1, column 1):unknown parse error

That's as far as I managed to get. Has anyone else managed to get this to run on Windows? I'm using Windows 10, build 17046.

A BUG api wont-fix windows

Most helpful comment

Yes it is, I recommend ignoring hledger-api, hledger-web gets more testing and is probably the focus going forward.

All 6 comments

Yikes.. thanks for the troubleshooting. Is there another windows user who can help investigate ?

What would be the reason that this happens with hledger-api but not hledger or hledger-web?
And, for a workaround, is the output of -web json api the same as -api's?

Yes it is, I recommend ignoring hledger-api, hledger-web gets more testing and is probably the focus going forward.

I think we could close this issue, now that hledger-api is mothballed.

Agreed, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cwarden picture cwarden  路  4Comments

artkpv picture artkpv  路  3Comments

simonmichael picture simonmichael  路  9Comments

trevorld picture trevorld  路  14Comments

alerque picture alerque  路  3Comments