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

Autocomplete: __minikube_handle_flag:29: bad math expression: operand expected at end of string #19083

Open
RobbeVW opened this issue Jun 17, 2024 · 6 comments
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@RobbeVW
Copy link

RobbeVW commented Jun 17, 2024

What Happened?

After installing autocomplete for ZSH, autocompletion throws __minikube_handle_flag:29: bad math expression: operand expected at end of string

	$ minikube completion zsh > ~/.minikube-completion  # for zsh users
	$ source ~/.minikube-completion

.zshrc


autoload -Uz compinit
compinit

# Load Angular CLI autocompletion.
source <(ng completion script)

# Minikube
source <(minikube completion zsh)  # This ensures Minikube completion is sourced
source <(kubectl completion zsh)

alias kubectl="minikube kubectl --"
alias k="minikube kubectl --"

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/robbe.vanwortswinkel/Documents/google-cloud-sdk 2/path.zsh.inc' ]; then . '/Users/robbe.vanwortswinkel/Documents/google-cloud-sdk 2/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/robbe.vanwortswinkel/Documents/google-cloud-sdk 2/completion.zsh.inc' ]; then . '/Users/robbe.vanwortswinkel/Documents/google-cloud-sdk 2/completion.zsh.inc'; fi

Attach the log file

log.txt

Operating System

macOS (Default)

Driver

Docker

@wgzhao
Copy link

wgzhao commented Aug 19, 2024

I met the same error

  • OS: Ubuntu 24.04
  • minikube: v1.33.1
  • Driver: docker-ce 27.1.2
  • ZSH: 5.2.21

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 17, 2024
@Ritikaa96
Copy link

This kind of error occur in Mac due to extra tab /indentation too, there can be other reasons as well.
such as zsh setup was not done correctly , try exec zsh or source ./zshrc

  • If this is because zsh trying to indicate insecure repositories, try
    compaudit | xargs chmod g-w to

@Ritikaa96
Copy link

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Dec 11, 2024
@Ritikaa96
Copy link

if the issue is resolved , you can close it using /close
in case it persists , please show the output of compaudit

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants