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

Jumping does not work for files relying on dumb-jump-get-mode-base-name #408

Open terlar opened 2 years ago

terlar commented 2 years ago

I have some jenkinsfiles named like: Jenkinsfile.abc I have associated these files with groovy-mode, so using the function (dumb-jump-get-mode-base-name) and (dumb-jump-get-language (buffer-file-name)) both returns groovy.

However when I try to jump to any definition I just get: "No definitions found for: ..."

If I add the extension abc and associate it with groovy everything works fine.

If I enable debugging I get no output.

What can short-circuit this behavior to make the resolution via dumb-jump-get-language not work?

I did see dumb-jump-process-results using (lang (dumb-jump-get-language-by-filename cur-file) but updating that to use dumb-jump-get-language instead did not seem to suffice.