syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.9k forks source link

Elixir/Alchemist Go To Definition brings "Visit tags table" quickfix #9756

Closed svileng closed 4 years ago

svileng commented 7 years ago

Description :octocat:

I recently re-installed my OS and got Spacemacs again. I'm using the Elixir layer that includes with Alchemist, that provides things like Go to definition.

Previously (not sure which version I had, sadly) pressing SPC m g g would just navigate to the function in whichever Elixir module it is, simple as that, nothing else.

Currently, the same shortcut also brings the Quickfix bottom window with the following text, expecting some input:

Visit tags table (default TAGS): ~/Development/.....

which just stays there, even after I do SPC m , to go back. The only way to get rid of it is to do SPC w j + Ctrl g, but If I try to Ctrl g while I'm looking at the newly opened buffer, this closes the buffer as well.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Quickfix comes up with the mentioned annoying message, until dismissed, which dismisses the currently opened buffer as well.

Expected behaviour: :heart: :smile: Quickfix should not be there to bother you.

System Info :computer:

Backtrace :paw_prints:

N/A

CeleritasCelery commented 7 years ago

You should report this upstream at https://github.com/jacktasia/dumb-jump

svileng commented 7 years ago

Thanks @CeleritasCelery! I'm closing this one.

svileng commented 7 years ago

@CeleritasCelery According to @jacktasia this is not an issue with the dumb-jump package, since it doesn't use tags: jacktasia/dumb-jump/issues/167 . It seems that when I do SPC h d k SPC m g g the jump to definition is part of Spacemacs' core. I'll reopen the issue. Thanks!

CeleritasCelery commented 7 years ago

looks like it is more complex then I expected. From looking at the value of spacemacs-jump-handlers-elixir-mode and spacemacs-jump-handlers it looks like it is alchemist-goto-definition-at-point. So looks like the alchemist package is where you need to look.

jeremyjh commented 6 years ago

@CeleritasCelery I respectfully disagree. alchemist does not contain a reference to helm or gtags, so I do not think it is responsible for invoking this.

@svileng I was able to get rid of this by removing the gtags layer from my configuration. Of course you may need that for other languages.

svileng commented 6 years ago

@jeremyjh Thanks for the tip! I just checked my .spacemacs and I don't seem to have gtags explicitly added. That's my current list:

   '(
     markdown
     html
     javascript
     yaml
     elixir
     ivy
     (auto-completion :variables
                      auto-completion-enable-snippets-in-popup t)
     emacs-lisp
     git
     osx
     )

Is it possible, and how can I find out, if one of these packages includes gtags behind the scenes?

sdwolfz commented 6 years ago

This might be related to #9873 , try adding this to your dotspacemacs/user-config and restart:

(setq spacemacs-default-jump-handlers
  (remove 'evil-goto-definition spacemacs-default-jump-handlers))
svileng commented 6 years ago

@sdwolfz Brilliant, that worked! Cheers 🍻

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!