rcarriga / vim-ultest

The ultimate testing plugin for (Neo)Vim
MIT License
385 stars 15 forks source link

Error “The input device is not a TTY” when used with Docker #24

Closed davidvalaz closed 3 years ago

davidvalaz commented 3 years ago

I am getting this error when using Neovim Nightly (Lua) with PyTest via Docker. Moving my cursor over the title of the test throws out a box with "The input device is not a TTY"

My config is:

    g['test#python#runner'] = 'pytest'
    g['test#python#pytest#options'] = '--color=yes'
    g['test#python#pytest#executable'] = 'docker-compose -f "./docker-compose.yml" exec -w /usr/src/app web pytest'
davidvalaz commented 3 years ago

I solved it by adding a -T to the Docker command:

    g['test#python#pytest#executable'] = 'docker-compose -f "./docker-compose.yml" exec -T -w /usr/src/app web pytest'
rcarriga commented 3 years ago

Ah good to know thank you!