inshellisense icon indicating copy to clipboard operation
inshellisense copied to clipboard

Prompt appears once after installation and then stops working

Open OzymandiasTheGreat opened this issue 11 months ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

I'm a starship user and I wasn't able to use inshellisense previously as per #262 However I saw that that issue was closed as completed so I decided to try again. After installation and configuration everything seems to work for the first command I type, however second and every following command fails to present the autocompletion prompt. Inshellisense is still active, I can tell from the changed behavior of tab key, but there's no visual indication that it's running, so it's still not usable.

To Reproduce Steps to reproduce the behavior:

  1. Install inshellisense npm i -g @microsoft/inshellisense
  2. Configure the shell is init zsh >> ~/.zshrc
  3. Restart shell or source .zshrc
  4. Type cd D
  5. The prompt appears
  6. Accept or dismiss the suggestion
  7. Type cd M
  8. Nothing happens
  9. Press tab
  10. Instead of zsh presenting possible completions, first alphabetical option is autocompletedExpected behavior A clear and concise description of what you expected to happen.

Prompt should appear for every command

Environment

  • OS: macOS 15.2 Sequoia
  • Output of is --version: 0.0.1-rc.20
  • Nodejs Version: v22.12.0
  • Shell: zsh
  • Shell Version: 5.9

Additional context Add any other context about the problem here.

Here's my .zshrc in case it's relevant:

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
  source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi

export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH

export LANG=en_US.UTF-8
export EDITOR="micro"
export ANDROID_HOME=$HOME/Library/Android/sdk
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/24.0.8215888
export ANDROID_NDK=$ANDROID_HOME/ndk/24.0.8215888
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$(yarn global bin)
export PATH="$PATH:/Users/ozymandias/Library/Application Support/pear/bin"

source $HOME/.alias

if [[ -z "${ISTERM}" && $- = *i* && $- != *c* ]]; then
  if [[ -o login ]]; then
    is -s zsh --login ; exit
  else
    is -s zsh ; exit
  fi
fi

eval "$(starship init zsh)"

OzymandiasTheGreat avatar Jan 18 '25 06:01 OzymandiasTheGreat