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

Auto-generated tar.nu has a syntax error #257

Closed
RReverser opened this issue Jun 23, 2022 · 6 comments
Closed

Auto-generated tar.nu has a syntax error #257

RReverser opened this issue Jun 23, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@RReverser
Copy link

Error: nu::parser::parse_mismatch (link)

  × Parse mismatch during operation.
    ╭─[C:\Users\me\Documents\nu_scripts\custom-completions\auto-generate\completions\tar.nu:10:1]
 10 │   --get(-x)                                       # Extract from archive
 11 │   --help(-\?)                                     # Display short option summary
    ·  ─────┬─────
    ·       ╰── expected short flag
 12 │   --usage                                 # List available options
    ╰────
@fdncred fdncred added the bug Something isn't working label Jun 23, 2022
@fdncred
Copy link
Collaborator

fdncred commented Jun 23, 2022

ya, i don't think \? is a thing in nushell. prs welcome of course.

@RReverser
Copy link
Author

Perhaps it's worth automatically checking generated .nu files for validity, and automatically removing the invalid ones from the repo for now?

@fdncred
Copy link
Collaborator

fdncred commented Jun 23, 2022

that would be nice but we don't have a clippy or fmt checker for nushell. all we have now is nu-highlight. we might just change the auto-gen script to handle ? correctly, whatever "correctly" is.

@RReverser
Copy link
Author

Hm. Wouldn't it be possible to literally launch another instance of nu just with the use ...generated module... and check the exit code?

@fdncred
Copy link
Collaborator

fdncred commented Jun 24, 2022

I'm not sure. I've seen that running nu inside of nu sometimes can give weird results. Maybe that's been fixed? There is a pr now for nu-check which I just saw this morning. Maybe that'll land soon.

@AucaCoyan
Copy link
Contributor

Hi! This was fixed in #783 and later exported in #815
I think this can be closed

@fdncred fdncred closed this as completed Apr 21, 2024
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

No branches or pull requests

3 participants