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

[SR-7053] SwiftPM command line autocompletion script for zsh produces error: "invalid option definition:…" on completion #4835

Closed
norio-nomura opened this issue Feb 22, 2018 · 2 comments
Labels

Comments

@norio-nomura
Copy link
Contributor

norio-nomura commented Feb 22, 2018

Previous ID SR-7053
Radar None
Original Reporter @norio-nomura
Type Bug
Status Closed
Resolution Done
Environment

Xcode 9.3 beta 3
swift-4.1-DEVELOPMENT-SNAPSHOT-2018-02-20-a

Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Bug, StarterBug
Assignee mzp (JIRA)
Priority Medium

md5: bd8582bb0367803d27d6656d0c77c194

Issue Description:

Reproducing steps:

  1. execute swift package completion-tool generate-zsh-script>/usr/local/share/zsh/site-functions/_swift

  2. launch zsh

  3. type swift package

  4. hit tab key

    $ swift package
    _arguments:comparguments:312: invalid option definition: --enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]

@norio-nomura
Copy link
Contributor Author

norio-nomura commented Feb 22, 2018

[ and ] characters in arguments definitions should be escaped.
from

        "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"

to

        "--enable-build-manifest-caching[Enable llbuild manifest caching \[Experimental\]]"

@swift-ci
Copy link
Contributor

swift-ci commented Mar 3, 2018

Comment by MIZUNO Hiroki (JIRA)

I fixed this issue #1514 at try! Swift OpenSource Swift workshop.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants