Skip to content

fixing clap argument resolution panic#57

Merged
rob-p merged 1 commit intoCOMBINE-lab:devfrom
alevar:clap_fix
Jan 9, 2026
Merged

fixing clap argument resolution panic#57
rob-p merged 1 commit intoCOMBINE-lab:devfrom
alevar:clap_fix

Conversation

@alevar
Copy link
Contributor

@alevar alevar commented Jan 8, 2026

When attempting to compile from source - get panic on unresolved clap groups and arguments. Small fixes to address the issue.

@rob-p rob-p changed the base branch from main to dev January 8, 2026 23:39
@rob-p
Copy link
Contributor

rob-p commented Jan 8, 2026

Thanks for the PR @alevar! I'm just rebasing on dev and will pull it in for a new release.

Can you share what cmd-line invocation triggered the panic for you?

Thanks!

@alevar
Copy link
Contributor Author

alevar commented Jan 8, 2026

I was running "oarfish --help" in debug which triggered the panic. The software was build from source (both direct clone and source files from the 0.9.0 release).

@rob-p
Copy link
Contributor

rob-p commented Jan 9, 2026

Oh wow! Super surprised to not have caught that. Sometimes, I really wish CLAP had some less stringly-typed behavior.

@rob-p rob-p merged commit fb3055e into COMBINE-lab:dev Jan 9, 2026
5 checks passed
@alevar
Copy link
Contributor Author

alevar commented Jan 9, 2026

It could be an issue on my end. Would like to know if you were able to replicate the error.

@rob-p
Copy link
Contributor

rob-p commented Jan 9, 2026

Hi @alevar,

Indeed I could, but as you note, only in debug mode. I think I never caught it because it seems not to trigger in release mode. I guess Clap does more checks in debug mode than release mode. Nonetheless, I’ve merged the PR and cut a new release. Thanks for the fix!

—Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants