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

Completing subproject tasks does not work properly as it inserts the project name a second time #133

Open
Vampire opened this issue Mar 27, 2023 · 2 comments

Comments

@Vampire
Copy link
Contributor

Vampire commented Mar 27, 2023

I'm on the latest commit 1c731fe

  • go to the Gradle repository
  • enter ./gradlew build-cache-htt
  • press <TAB>
  • it gets completed to ./gradlew build-cache-http:
  • press <TAB> again
  • it gets completed to ./gradlew build-cache-http:build-cache-http:
  • you are at a dead end

  • clear the input line
  • enter ./gradlew :build-cache-http:reasona
  • press <TAB>
  • it gets completed to ./gradlew :build-cache-http:build-cache-http:reasonableDepsReportMain
  • you are at a dead end
@Vampire
Copy link
Contributor Author

Vampire commented Mar 27, 2023

Ah, I used it on Git Bash from Git for Windows where no bash-completion is available: git-for-windows/git#4366

Unfortunately the Gradle completion just ignores that problem and does faulty completion instead.
Maybe the check should be changed, so that a warning is displayed if there is a colon in the result and the necessary function is not available instead of silently ignoring it and completing wrongly.

@Vampire
Copy link
Contributor Author

Vampire commented Mar 27, 2023

Or maybe that function should be copied to the Gradle completion, as Git for windows will not fix it and I guess nowadays it is pretty common to run Gradle from Git Bash from Git for windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant