devcontainers / devcontainers/cli

neovim not working properly using devcontainer exec

Ouverte
#958 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
3k
Forks
457
Merge moyen
13 h 17 min
PR mergées (30 j)
6

Description

I am trying to rebuild the vscode remote containers feature for nvim and run into the following issue:

- nvim does not refresh the view correctly when running it using the devcontainer cli as follows: `devcontainer exec --workspace-folder . zsh -c "D=\$(pwd) && cd ~/dotfiles && devbox run nvim \$D"`
- using docker exec directly works though: `docker exec --user vscode -it reverent_neumann zsh -c "D=\$(pwd) && cd ~/dotfiles && devbox run nvim $D"`

Has someone an idea why this might happen?
I read about the $TERM variable which might cause this weird behavior.

Here is a screenshot that visualizes the issue. I use wezterm as terminal.

![Image](https://github.com/user-attachments/assets/02454205-f910-429b-8545-73030f118b25)

This is how it should look like:

![Image](https://github.com/user-attachments/assets/79ef9331-e34c-4896-852a-3c3d12eaee5c)

Possibly related: https://github.com/loft-sh/devpod/issues/1187

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.