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

Run the do block with a parameter not supported #4522

Closed
hustcer opened this issue Feb 18, 2022 · 0 comments · Fixed by #4798
Closed

Run the do block with a parameter not supported #4522

hustcer opened this issue Feb 18, 2022 · 0 comments · Fixed by #4798
Labels
🐛 bug Something isn't working
Milestone

Comments

@hustcer
Copy link
Contributor

hustcer commented Feb 18, 2022

Describe the bug

Run the do block with a parameter not supported

How to reproduce

Run do { |x| $x + 100 } 55 will get:

〉do { |x| $x + 100 } 55                                                                                                                                                  
Error: nu::parser::parse_mismatch (link)

  × Parse mismatch during operation.
   ╭─[entry #43:1:1]
 1 │ do { |x| $x + 100 } 55
   ·      ─┬─
   ·       ╰── expected 0 block parameter
   ╰────

Expected behavior

In nu v0.44 will get 155

Screenshots

No response

Configuration

key value
version 0.59.0
branch main
short_commit b8b2737
commit_hash b8b2737
commit_date 2022-02-17 01:42:40 +00:00
build_os macos-x86_64
rust_version rustc 1.58.1 (db9d1b20b 2022-01-20)
rust_channel stable-x86_64-apple-darwin
cargo_version cargo 1.58.0 (f01b232bc 2022-01-19)
pkg_version 0.59.0
build_time 2022-02-17 09:45:06 +08:00
build_rust_channel release
features dataframe, default, which, zip
installed_plugins gstat, inc, query, query json, query web, query xml

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants