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

Prompt appears once after installation and then stops working #327

Open
OzymandiasTheGreat opened this issue Jan 18, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@OzymandiasTheGreat
Copy link

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 OzymandiasTheGreat added the bug Something isn't working label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant