josa42 / coc-sh

SH language server extension using bash-language-server for coc.nvim.
MIT License
205 stars 4 forks source link

Autocompletion not working in .bashrc file #73

Closed jrmd54 closed 10 months ago

jrmd54 commented 1 year ago

Hello,

I noticed that coc-sh autocompletion was not working with my .bashrc file. After doing some tests it seems that removing the following lines (that are present by default in the .bashrc file of my Ubuntu distribution) makes the file parsable by coc-sh, but doing so remove the title from the terminal.

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

Shouldn't these lines be normally parsed by coc-sh?

josa42 commented 10 months ago

Shouldn't these lines be normally parsed by coc-sh?

coc-sh does not parse anything, that is done by bash-language-server.

Closing the issue, because I cannot reproduce it.