Inappropriate ioctl for device with powerline
Expected behavior
I am using Emacs 28.1, the latest head of projectile, consult-projectile, and powerline v2.8.3. I am invoking projectile-switch-project to switch to a project and look through files.
Actual behavior
I get the following errors with powerline enabled as the Bash prompt.
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
^L
stty: 'standard input': Inappropriate ioctl for device
stty: 'standard input': Inappropriate ioctl for device
The above problem goes away after disabling powerline. I can reproduce this every time and across different systems. The OS is Ubuntu 20.04. I also do not see the errors with project.el and powerline.
Steps to reproduce the problem
Enable powerline from bash by following instructions from https://github.com/powerline/powerline.
git clone [email protected]:powerline/powerline.git
cd powerline
python3 -m pip install --user --editable=.
# Add this to $HOME/.bashrc
# https://powerline.readthedocs.io/en/latest/usage/shell-prompts.html
if [ -f "$(which powerline-daemon)" ]; then
powerline-daemon -q
export POWERLINE_BASH_CONTINUATION=1
export POWERLINE_BASH_SELECT=1
. $HOME/github/powerline/powerline/bindings/bash/powerline.sh
fi
Now use Emacs to switch projects and open files.
Environment & Version information
Ubuntu OS 20.04, Emacs 28.1, Powerline 2.8.3
Projectile version information
Include here the version string displayed by M-x projectile-version. Here's an example:
Projectile 2.6.0-snapshot
Emacs version
28.1
Operating system
Ubuntu 20.04
I'm puzzled how this can be caused by Projectile. I'd appreciate it if some powerline user helps with the debugging the problem.