gradle / gradle/gradle-completion

./gradlew autocompletion fails with `command not found: gradlew`

Open
#136 9 comments 2 reactions 0 assignees View on GitHub
a:bug in:zsh
Dominant language
Shell
Stars
1.1k
Forks
155
Avg merge
4d 18h
Merged PRs (30d)
4

Description

When trying to autocomplete when using the wrapper in the project ./gradlew it gives the following error

` ./gradlew _gradle:95: command not found: gradlew `

This is on
OS: MacOS 13
Arch: aarch64
Shell: zsh

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure in zsh on macOS with the project wrapper command ./gradlew and inspect the completion path reported as _gradle:95. Done means autocompletion for a project-local ./gradlew no longer produces “command not found: gradlew”.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.