Comments (16)
I've been struggeling with this too!
Auto-completion only works for library and language keywords..
I'm on ubuntu 12.04.
from emacs-live.
Yeah, something's broken here. I'll take a look at it...
from emacs-live.
I'm having a similar, but slightly worse, experience. Autocomplete in a .clj file works if I type a "/" (gives me a list of directories at the system root), but that is all. No local definitions, clojure keywords, etc, etc.
I'm using current HEAD from github (fccaddb) and see the same thing on ubuntu 12.04 and mac OS X.
from emacs-live.
Scratch that - I missed the part about connecting to nrepl in the README, however when I do that I get the following when typing "(de" in the buffer:
Exception in thread "nREPL-worker-1" java.lang.NullPointerException
at clojure.core$refer.doInvoke(core.clj:3775)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_lib.doInvoke(core.clj:5252)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_libs.doInvoke(core.clj:5271)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:604)
at clojure.core$use.doInvoke(core.clj:5363)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.main$repl.doInvoke(main.clj:258)
at clojure.lang.RestFn.invoke(RestFn.java:1096)
at clojure.tools.nrepl.middleware.interruptible_eval$evaluate$fn__337.invoke(interruptible_eval.clj:51)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.core$apply.invoke(core.clj:600)
at clojure.core$with_bindings_STAR_.doInvoke(core.clj:1769)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.tools.nrepl.middleware.interruptible_eval$evaluate.invoke(interruptible_eval.clj:36)
at clojure.tools.nrepl.middleware.interruptible_eval$interruptible_eval$fn__374$fn__376.invoke(interruptible_eval.clj:162)
at clojure.core$comp$fn__3758.invoke(core.clj:2276)
at clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__367.invoke(interruptible_eval.clj:129)
at clojure.lang.AFn.run(AFn.java:24)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
from emacs-live.
More information: I can get beyond that error if I do the following:
lein2 repl
- start emacs
- M-x nrepl in emacs
- open a .clj file
- type "(de" and get the error above
- kill emacs (which has to be killed because it's frozen now)
- restart emacs
- M-x nrepl
- open a .clj file
Now autocomplete works without error (though the exception from the first emacs session is still sitting in the console).
from emacs-live.
Hi David,
I'm seeing similar errors too. I have submitted the following issues:
Perhaps you could add your comment above help the nrepl/ac-nrepl guys debug this?
from emacs-live.
should autocomplete in the current buffer work now? I'm not having any luck, but maybe I have other issues...
from emacs-live.
Actually, no it doesn't. It's something to do with the way I'm (obviously incorrectly) setting up autocomplete. Unfortunately this hasn't been a high priority for me of late, but I will get round to taking a look at it. Pull-requests appreciated!
from emacs-live.
Yey! Fixed, finally!
from emacs-live.
Still not working for me.
I've removed even more mentions of yasnippet and autocomplete works as expected for me.
Don't know what this means for yasnippet (I'm not using it).
Will do a pull-request
from emacs-live.
It won't work for you unless you're using the development packs. Not until I make a new release of the live packs.
from emacs-live.
I see. I do not understand the dev/live separation, but made it work for me.
from emacs-live.
@thomaschrstnsn inside the packs dir there are two subduers: dev and live. The dev dir is where I do the development work. When I think things are stable, I copy the code in the dev pack into the live packs which is what most users are using by default.
At some point soon I'll start the version number rolling on the live packs - I just want to feel that things are a little stable before I do so.
from emacs-live.
@thomaschrstnsn I've just updated the live packs :-)
from emacs-live.
Thanks :-)
This makes a huge difference for me. Excellent work.
from emacs-live.
Awesome! Sorry it took such a long time to fix. It was a pretty tricksy bug to find.
from emacs-live.
Related Issues (20)
- popwin / *Backtrace* / overwriting other buffers HOT 1
- How to archive the screenshot color effect? HOT 1
- Hard coding clojure-mode for cljs will cause problems HOT 7
- Setting the default font: live-set-default-font doesn't seem to be well documented HOT 1
- Emacs freezes when autocompleting for lisp prompt
- haskell-mode error: symbol definition is void: haskell-mode-contextual-space HOT 5
- Using -k with curl is insecure
- Can't load files over fusermount HOT 1
- the color-theme-cyberpunk highlight HOT 3
- Problem with Erlang checkout
- [Proposal] Remove packs/stable from the repo HOT 4
- File saving (save-buffer) broken in Emacs 25.1.1 HOT 11
- startup error "No such file or directory, swiper" HOT 2
- You might want to check out the Borg package manager HOT 4
- Newbie problems HOT 2
- emacs-live can not load file with chinese charactor in path HOT 1
- Symbol's value as variable is void: ivy-completing-read-handlers-alist at start in 27.1-2 HOT 6
- freesound method failure HOT 1
- How to add this glossy effect on my other emacs config?
- Is there a way to fuzzy open a file?
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 emacs-live.