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

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


Copy link

norio-nomura commented Feb 22, 2018

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

Xcode 9.3 beta 3

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]]

Copy link
Contributor Author

norio-nomura commented Feb 22, 2018

[ and ] characters in arguments definitions should be escaped.

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


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

Copy link

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
None yet

No branches or pull requests

2 participants