-
Notifications
You must be signed in to change notification settings - Fork 272
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
ucm run : Numeric arguments are changed to find results #2805
Comments
same problem here
|
Can we change it from a pre-step to a per-argument thing, have it be part of the |
Even a workaround like clearing the numbered args would be better than nothing. |
sellout
added a commit
to sellout/unison
that referenced
this issue
Nov 27, 2024
Previously, it was impossible to, say, pass numbers to `run foo`, because they would be parsed as numbered args, and then would error when a non-string was given as a command-line arg. This now replaces all usage of `unsupportedStructuredArgument` (which would fail on numbers) with handling of the original string. This improves the following commands: - `load` - `display.to` - `debug.tab-complete` - `debug.lsp-name-completion` - `debug.fuzzy-options` - `help-topics` - `help` - `docs.to-html` - `run` - `compile` - `run.native` - `compile.native` - `create.author` - `release.draft` Fixes unisonweb#2805.
sellout
added a commit
to sellout/unison
that referenced
this issue
Nov 27, 2024
Previously, it was impossible to, say, pass numbers to `run foo`, because they would be parsed as numbered args, and then would error when a non-string was given as a command-line arg. This now replaces all usage of `unsupportedStructuredArgument` (which would fail on numbers) with handling of the original string. This improves the following commands: - `load` - `display.to` - `debug.tab-complete` - `debug.lsp-name-completion` - `debug.fuzzy-options` - `help-topics` - `help` - `docs.to-html` - `run` - `compile` - `run.native` - `compile.native` - `create.author` - `release.draft` Fixes unisonweb#2805.
sellout
added a commit
to sellout/unison
that referenced
this issue
Dec 4, 2024
This allows us to incrementally expand numbered arguments, only doing so when we want a Unison value and not unstructured text. Fixes unisonweb#2805.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running a main function in
ucm
a numeric argument is replaced by the potential last result of a find command:See this discussion on Slack: https://unisonlanguage.slack.com/archives/CLUNF0J5S/p1642108647023800
The text was updated successfully, but these errors were encountered: