Comments (12)
Which version are you using, and what corresponding configuration do you have in your emacs init files?
from ac-nrepl.
I using todays version on Melpa.
;; init.el
(require 'auto-complete-config)
(require 'ac-nrepl)
(ac-config-default)
(add-hook 'cider-repl-mode-hook 'ac-nrepl-setup)
(add-hook 'cider-interaction-mode-hook 'ac-nrepl-setup)
(eval-after-load "auto-complete"
'(add-to-list 'ac-modes 'cider-repl-mode))
(defun set-auto-complete-as-completion-at-point ()
(setq completion-at-point-functions '(auto-complete)))
(add-hook 'auto-complete-mode-hook 'set-auto-complete-as-completion-at-point)
(add-hook 'cider-repl-mode-hook 'set-auto-complete-as-completion-at-point)
(add-hook 'cider-interaction-mode-hook 'set-auto-complete-as-completion-at-point)
from ac-nrepl.
Sometimes this can result from trying to auto-complete in a Clojure buffer which defines a namespace that has not yet been created, so you might just need to compile the file you're working on so that the namespace is fully defined.
from ac-nrepl.
Well, this is true for simple functions like "dec" or "defn" also :/
Btw, does this mean that I should AOT my clojure code to get auto-completion/docs?
from ac-nrepl.
No, but you should generally C-c C-k
your files before working in them, so if you create a new file which defines a new namespace, you should hit C-c C-k
after adding the (ns ...)
form.
So can you confirm whether doing this makes a difference in your case?
from ac-nrepl.
I entered my source file. Used cider-jack-in, and C-c C-k.
No difference. cider-doc works just fine though
from ac-nrepl.
Okay, cool. That gives me more to go on. And do you get any ac-nrepl
completion results in the Clojure buffer? These would be results with the symbol "v", "c", "m", "n" or "s" on the right-hand-side of the auto-complete
dropdown?
from ac-nrepl.
I had a similar problem. I think it's because cider-interaction-mode
is now just cider-mode
. Some things are aliased, but dropping the 'interaction' fixed it for me.
from ac-nrepl.
Thanks Neale. That would make sense. I just yesterday (?) updated the suggested ac-nrepl
setup code to reflect this, because someone pointed out to me that the mode had been renamed.
from ac-nrepl.
Hey @bbatsov: it would probably make sense to just drop the cider-interaction-mode
alias rather than risk breakage like this, if that is indeed the cause.
from ac-nrepl.
@purcell Will do! I've added the aliases with the idea to avoid breakages, but oddly enough they had the opposite effect. I guess mode aliases are problematic.
from ac-nrepl.
Changing from cider-interaction-mode to cider-mode did the trick, thanks for all help :)
from ac-nrepl.
Related Issues (20)
- Long docstrings in ac-nrepl-popup-doc get cut off HOT 3
- nrepl.el needs huge amounts of time to do autocompletion HOT 7
- nrepl.el needs huge amounts of time to do autocompletion HOT 1
- Support company-mode? HOT 44
- Is it possible to use ac-nrepl with ritz? HOT 5
- Intermittent error HOT 16
- ac-source-nrepl-vars conflict with yasnippet? HOT 3
- ac-nrepl displays nothing, java hogs cpu HOT 2
- ac-nrepl-popop-doc causes "Wrong type argument"
- ac-nrepl perceptibly slow. Any way to speed up? HOT 5
- Namespace hint gets expanded into the code HOT 12
- No completion for unsourced namespace HOT 3
- references to nrepl-current-ns break when used with cider HOT 1
- ac-nrepl makes auto-complete very slow HOT 1
- Solved: ac-nrepl installed via package.el doesn't work because `cider-0.1' is unavailable HOT 2
- Remove eval'd clojure code in favor of cider's cider-dispatch-complete-symbol HOT 9
- ac-fuzzy-complete not works HOT 5
- .emacs slowdown HOT 5
- No pop up document is showing HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ac-nrepl.