Skip to content

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

Closed

Description

@norio-nomura
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]]

Activity

  1. norio-nomura commented on Feb 22, 2018

    @norio-nomura
    ContributorAuthor

    [ 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\]]"
    
  2. swift-ci commented on Mar 3, 2018

    @swift-ci
    Contributor

    Comment by MIZUNO Hiroki (JIRA)

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

  3. transferred this issue fromswiftlang/swifton May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions