Skip to content

Error when using diff kitten between host and remote ssh file #7797

@ejuarezg

Description

@ejuarezg

Describe the bug
I'm trying to diff a file using the diff kitten where one file is on the host and the other file is on a remote system. However, I get an error related during the untarring of the data.

To Reproduce
Steps to reproduce the behavior:

  1. Start kitty with kitty --config NONE
  2. Change into kitty config directory (~/.config/kitty)
  3. Run kitten diff kitty.conf ssh:galaxy:~/.config/kitty/kitty.conf (galaxy is the hostname of my remote computer found in ssh config file)
  4. Observe the following error:
tar: Removing leading `/' from member names
Error: Failed to untar data from remote host galaxy to get file ~/.config/kitty/kitty.conf with error: open /tmp/3228633907-galaxy/var/home/user/.config/kitty/kitty.conf: no such file or directory

Screenshots
If applicable, add screenshots to help explain your problem.

Environment details

kitty 0.36.1 (95245ee473) created by Kovid Goyal
Linux ada 6.6.46-1-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Aug 14 17:17:23 UTC 2024 x86_64
Manjaro Linux 6.6.46-1-MANJARO  (ada) (/dev/tty)


DISTRIB_ID="ManjaroLinux"
DISTRIB_RELEASE="24.0.7"
DISTRIB_CODENAME="Wynsdey"
DISTRIB_DESCRIPTION="Manjaro Linux"
Running under: Wayland (GNOME Shell 46.4) missing: layer_shell
OpenGL: '3.1.0 NVIDIA 550.107.02' Detected version: 3.1
Frozen: True
Fonts:
  medium: 0xProtoRegular: /usr/share/fonts/TTF/0xProto-Regular.ttf:0
  bold: CascadiaMono-Bold: /usr/share/fonts/OTF/CascadiaMono-Bold.otf:0
  italic: 0xProtoItalic: /usr/share/fonts/TTF/0xProto-Italic.ttf:0
  bi: CascadiaMono-BoldItalic: /usr/share/fonts/OTF/CascadiaMono-BoldItalic.otf:0
Paths:
  kitty: /home/user/bin/kitty.app/bin/kitty
  base dir: /home/user/bin/kitty.app/lib/kitty
  extensions dir: /home/user/bin/kitty.app/lib/kitty-extensions
  system shell: /usr/bin/zsh
Loaded config files:
  /home/user/.config/kitty/kitty.conf
Loaded config overrides:
  allow_remote_control yes

Config options different from defaults:
allow_remote_control    yes
bold_font               Cascadia Mono Bold
bold_italic_font        Cascadia Mono Bold Italic
cursor_blink_interval   (0.0, kitty.options.utils.EasingFunction(), kitty.options.utils.EasingFunction())
cursor_text_color       None
disable_ligatures       2
enable_audio_bell       False
enabled_layouts         ['fat', 'tall', 'grid', 'vertical']
font_family             0xProto Regular
font_size               14.0
hide_window_decorations 1
italic_font             0xProto Italic
scrollback_lines        10000
scrollback_pager        ['bash', '-c', 'exec nvim 63<&0 0</dev/null -u NONE -c \'map <silent> q :qa!<CR>\' -c \'set shell=bash scrollback=100000 termguicolors laststatus=0 clipboard+=unnamedplus number relativenumber ignorecase smartcase\' -c \'autocmd TermEnter * stopinsert\' -c \'autocmd TermClose * call cursor(max([0,INPUT_LINE_NUMBER-1])+CURSOR_LINE, CURSOR_COLUMN)\' -c \'terminal sed </dev/fd/63 -e "s/\'$\'x1b\'\']8;;file:[^]*[]//g" && sleep 0.01 && printf "\'$\'x1b\'\']2;"\'']
symbol_map:
        U+23fb - U+23fe → Symbols Nerd Font Mono
        U+2665 - U+2665 → Symbols Nerd Font Mono
        U+26a1 - U+26a1 → Symbols Nerd Font Mono
        U+2b58 - U+2b58 → Symbols Nerd Font Mono
        U+e000 - U+e00a → Symbols Nerd Font Mono
        U+e0a0 - U+e0a2 → Symbols Nerd Font Mono
        U+e0a3 - U+e0a3 → Symbols Nerd Font Mono
        U+e0b0 - U+e0b3 → Symbols Nerd Font Mono
        U+e0b4 - U+e0c8 → Symbols Nerd Font Mono
        U+e0ca - U+e0ca → Symbols Nerd Font Mono
        U+e0cc - U+e0d7 → Symbols Nerd Font Mono
        U+e200 - U+e2a9 → Symbols Nerd Font Mono
        U+e300 - U+e3e3 → Symbols Nerd Font Mono
        U+e5fa - U+e6b5 → Symbols Nerd Font Mono
        U+e700 - U+e7c5 → Symbols Nerd Font Mono
        U+ea60 - U+ec1e → Symbols Nerd Font Mono
        U+ed00 - U+f2ff → Symbols Nerd Font Mono
        U+f300 - U+f375 → Symbols Nerd Font Mono
        U+f400 - U+f533 → Symbols Nerd Font Mono
        U+f0001 - U+f1af0 → Symbols Nerd Font Mono
tab_bar_min_tabs        1
tab_bar_style           powerline
tab_powerline_style     round
tab_title_template      {title}{' [{}]'.format(num_windows) if num_windows > 1 else ''}
window_border_width     (0.75, 'pt')
Added shortcuts:
        kitty_mod+alt+4 →  launch --location before --cwd current --title tree open-file-tree.sh
        kitty_mod+alt+f →  launch kmload
        kitty_mod+alt+p →  launch_overlay km
Changed shortcuts:
        kitty_mod+2 →  launch_overlay emacs -nw --with-profile magit --eval "(magit)"
        kitty_mod+enter →  new_window_with_cwd
        kitty_mod+f2 →  launch --type=overlay kitty +edit-config
        kitty_mod+t →  new_tab_with_cwd
Colors:
        active_border_color     #f8f8f2   
        active_tab_background   #f8f8f2   
        active_tab_foreground   #1e1f29   
        background              #1e1f29   
        color1                  #ff5555   
        color10                 #69ff94   
        color11                 #ffffa5   
        color12                 #d6acff   
        color13                 #ff92df   
        color14                 #a4ffff   
        color2                  #50fa7b   
        color3                  #f1fa8c   
        color4                  #bd93f9   
        color5                  #ff79c6   
        color6                  #8be9fd   
        color7                  #bbbbbb   
        color8                  #555555   
        color9                  #ff6e6e   
        cursor                  #f8f8f2   
        foreground              #f8f8f2   
        inactive_border_color   #6272a4   
        inactive_tab_background #6272a4   
        inactive_tab_foreground #1e1f29   
        mark1_background        #ff5555   
        mark1_foreground        #1e1f29   
        selection_background    #44475a   
        selection_foreground    #ffffff   
        url_color               #8be9fd   

Important environment variables seen by the kitty process:
        PATH                                /home/user/bin:/home/user/.bun/bin:/home/user/.local/share/cargo/bin:/home/user/.cargo/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin
        LANG                                en_US.UTF-8
        EDITOR                              vi
        SHELL                               /usr/bin/zsh
        DISPLAY                             :0
        WAYLAND_DISPLAY                     wayland-0
        USER                                user
        LC_TIME                             en_US.UTF-8
        XDG_SESSION_TYPE                    wayland
        LC_MONETARY                         en_US.UTF-8
        XDG_SESSION_CLASS                   user
        LC_ADDRESS                          en_US.UTF-8
        XDG_RUNTIME_DIR                     /run/user/1000
        XDG_MENU_PREFIX                     gnome-
        LC_TELEPHONE                        en_US.UTF-8
        XDG_CURRENT_DESKTOP                 GNOME
        XDG_SESSION_DESKTOP                 gnome
        LC_NAME                             en_US.UTF-8
        LC_MEASUREMENT                      en_US.UTF-8
        LC_IDENTIFICATION                   en_US.UTF-8
        XDG_DATA_DIRS                       /home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
        LC_NUMERIC                          en_US.UTF-8
        LC_PAPER                            en_US.UTF-8

This debug output has been copied to the clipboardx1b]2;
[Process exited 0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions