jacktasia / dumb-jump

an Emacs "jump to definition" package for 50+ languages
GNU General Public License v3.0
1.57k stars 150 forks source link

xref jump fails on Tramp opened files #413

Closed TrunovS closed 4 months ago

TrunovS commented 2 years ago

I observe some strange behavior with xref backend which doesn't shows with obsolete dumb-jump-go. When working over Tramp, through xref, jump to candidate goes in context of local machine, and opening local buffer as no such file exists. The same jump to candidate through obsolete dumb-jump-go works just fine. xref-file-name-display has no power here too: project-relative, abs

mrunhap commented 2 years ago

Same issue here, when I use xref to jump to def it jump to local dir and it does not exist, and emacs say

Use M-x make-directory RET RET to create the directory and its parents

gsingh93 commented 1 year ago

This patch fixes this issue for me: https://github.com/jacktasia/dumb-jump/pull/432