Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add full example call #22

Closed
koppor opened this issue Jul 15, 2024 · 1 comment · Fixed by #23
Closed

Add full example call #22

koppor opened this issue Jul 15, 2024 · 1 comment · Fixed by #23

Comments

@koppor
Copy link
Owner

koppor commented Jul 15, 2024

As of today, there is a NPE:

C:\git-repositories\jabref-all\jabref (main) >  jbang gcl@koppor/github-contributors-list --startrevision=v5.13 --endrevision=v5.15 --repos
itory=jabref/jabref/ .
INFO: Opening local git repository .... (call)
INFO: Connecting to jabref/jabref/... (call)
INFO: Analyzing 100 days: From 2024-04-01 to 2024-07-10 (getCommitRangeInformation)
java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because "this.jna" is null
        at org.jline.terminal.TerminalBuilder.doBuild(TerminalBuilder.java:443)
        at org.jline.terminal.TerminalBuilder.build(TerminalBuilder.java:362)
        at me.tongfei.progressbar.TerminalUtils.getTerminal(TerminalUtils.java:83)
        at me.tongfei.progressbar.TerminalUtils.hasCursorMovementSupport(TerminalUtils.java:37)
        at me.tongfei.progressbar.Util.createConsoleConsumer(Util.java:30)
        at me.tongfei.progressbar.Util.createConsoleConsumer(Util.java:26)
        at me.tongfei.progressbar.ProgressBar.<init>(ProgressBar.java:80)
        at me.tongfei.progressbar.ProgressBar.<init>(ProgressBar.java:38)
        at gcl.call(gcl.java:220)
        at gcl.call(gcl.java:69)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
        at picocli.CommandLine.execute(CommandLine.java:2174)
        at gcl.main(gcl.java:167)

The user should be informed what is wrong. (Also happens at minimal command line: jbang gcl@koppor/github-contributors-list.

@Siedlerchr
Copy link

Siedlerchr commented Jul 15, 2024

Refs jline/jline3#930 but the progressbar stuff does not yet use it

@koppor koppor mentioned this issue Jul 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants