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

hledger-api broken on Windows #682

Closed
jeevcat opened this issue Dec 28, 2017 · 6 comments
Closed

hledger-api broken on Windows #682

jeevcat opened this issue Dec 28, 2017 · 6 comments
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. old:api The hledger-api tool, deprecated in 2019. platform:windows wont-fix
Milestone

Comments

@jeevcat
Copy link
Collaborator

jeevcat commented Dec 28, 2017

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.

@simonmichael simonmichael added A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. old:api The hledger-api tool, deprecated in 2019. platform:windows easy? good-first-issue If you're a new contributor, this might be a good one for you. labels Dec 29, 2017
@simonmichael
Copy link
Owner

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

@simonmichael
Copy link
Owner

I have opened docopt/docopt.hs#31 .

@simonmichael simonmichael added needs:other-task To unblock: needs some other issue/task/event, possibly outside our project needs:debugging To unblock: needs debugging/investigation labels Dec 30, 2017
@simonmichael simonmichael added this to the 1.6 milestone Dec 31, 2017
@simonmichael simonmichael added the hacktoberfest Come on you merry Hacktobers, I dare you to fix something label Oct 14, 2018
@simonmichael simonmichael removed hacktoberfest Come on you merry Hacktobers, I dare you to fix something labels Nov 11, 2018
@alensiljak
Copy link

alensiljak commented May 14, 2019

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?

@simonmichael
Copy link
Owner

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

@mhansen
Copy link
Contributor

mhansen commented Jan 1, 2020

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

@simonmichael simonmichael added wont-fix and removed easy? good-first-issue If you're a new contributor, this might be a good one for you. needs:debugging To unblock: needs debugging/investigation needs:other-task To unblock: needs some other issue/task/event, possibly outside our project labels Jan 1, 2020
@simonmichael
Copy link
Owner

Agreed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-BUG Something wrong, confusing or sub-standard in the software, docs, or user experience. old:api The hledger-api tool, deprecated in 2019. platform:windows wont-fix
Projects
None yet
Development

No branches or pull requests

4 participants