Comments (11)
Please can you first confirm that auto-complete is working in other buffers, e.g. emacs lisp?
from ac-nrepl.
One thing you can try is manually triggering auto-completion using Meta-TAB
or M-x auto-complete
.
from ac-nrepl.
Manual triggering works, although it displays completion variants in minibuffer, not in popup.
from ac-nrepl.
Aha, then you are triggering nrepl's built-in completion, not AC. Try adding this to your config:
;; hook AC into completion-at-point
(defun set-auto-complete-as-completion-at-point-function ()
(setq completion-at-point-functions '(auto-complete)))
(add-hook 'auto-complete-mode-hook 'set-auto-complete-as-completion-at-point-function)
(add-hook 'nrepl-mode-hook 'set-auto-complete-as-completion-at-point-function)
(add-hook 'nrepl-interaction-mode-hook 'set-auto-complete-as-completion-at-point-function)
That should make TAB trigger AC instead.
from ac-nrepl.
Hello, i made this changes but nothing changed, editor demonstrates competely same behaviour.
from ac-nrepl.
As requested earlier, though, please can you first confirm that auto-complete is working in other buffers, e.g. emacs lisp?
from ac-nrepl.
No, AC not working in other buffers either
from ac-nrepl.
Using the default auto-complete config you should at least be able to complete words using dictionary words or words in the same buffer. If that simple case does not work, then the problem lies in your basic auto-complete setup.
You could try
(setq ac-trigger-key (kbd "TAB"))
so that you can trigger AC directly with TAB, but even without that code, AC popups should appear after a 2 second delay.
What happens when you try M-x auto-complete
?
And which Emacs version are you using?
from ac-nrepl.
GNU Emacs 23.3.1
M-x auto-complete:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
read-from-string(nil)
ac-nrepl-candidates()
ac-candidates-1(((candidates . ac-nrepl-candidates) (available . ac-nrepl-available-p) (candidate-face . ac-nrepl-candidate-face) (selection-face . ac-nrepl-selection-face) (prefix . ac-nrepl-symbol-start-pos) (symbol . "n") (document . ac-nrepl-documentation)))
ac-candidates()
ac-update(t)
ac-update-greedy(t)
auto-complete()
call-interactively(auto-complete t nil)
execute-extended-command(nil)
call-interactively(execute-extended-command nil nil)
from ac-nrepl.
Okay, so there are 2 separate problems here: a) auto-complete triggering isn't working for you, and b) ac-nrepl completion is throwing an error.
For a), I'm not sure why my suggested code snippet above didn't work for you, because that's exactly what I do. Perhaps you can post the full config you're now using, and I'll try to reproduce the problem locally.
Regarding b), the stacktrace above indicates a problem that has been fixed in nrepl, but not yet released. I've now patched it in ac-nrepl, so please update to version 0.5, or switch to using the Melpa snapshot packages of nrepl and ac-nrepl (http://melpa.milkbox.net). (Background: the error occurred because the clojure namespace of the current file was undefined -- try compiling the file with C-c C-k
, then try M-x auto-complete
again.)
from ac-nrepl.
Thank you very much for help, issue is resolved by upgrading to emacs 24.
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
- Documentation pop-up only in repl, not in file buffers HOT 12
- 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.