tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.74k stars 139 forks source link

Not able to jump to source when namespace alias is used #342

Closed sushovannits closed 5 years ago

sushovannits commented 5 years ago

The jump to source [C-d does not work when namespace alias is used as below:

(ns test.api.core
  (:require [liberator.core as liberator]))
(liberator/defresource ...)
 |----> Cursor here and [C-d is pressed

Is it not possible or am I missing something in setup?

Thanks

tpope commented 5 years ago

That should work, assuming you required the current file. I don't suppose it's giving a useful error message?

sushovannits commented 5 years ago

Thanks for the response. Well figured out there was failure when doing:%Eval and that was due to a wrong jdk version (wrong as incompatible with a dependency). It is working now.

sushovannits commented 5 years ago

Hi @tpope Apologies for commenting on a closed issue but not sure if a new one has to be opened. The thing is it is again not working for me: For example; while running this vim command Source <some-namspace-alias>/<some-symbol> works, a [Cd or [d gives a "Definition not found" or "Source not found". I am not sure how to debug this even. Some help would be great.

tpope commented 5 years ago

Are those the exact error messages?

sushovannits commented 5 years ago

Are those the exact error messages?

The exact message for [Cd is:

And for [d it just says Source not found

Whereas Source <some-namspace-alias>/<some-symbol> works fine. Please let me know if anything else will help.

sushovannits commented 5 years ago

Well the culprit was:

set iskeyword-=/

in my ~/.vim_runtime/my_plugins/vim/after/ftplugin/clojure.vim I put it in there because for searching with the key mapping *

sushovannits commented 5 years ago

@tpope Anyway to use special word boundary for fireplace

tpope commented 5 years ago

Something like #370 would work.