Git Product home page Git Product logo

Comments (16)

boutros avatar boutros commented on June 6, 2024

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.

samaaron avatar samaaron commented on June 6, 2024

Yeah, something's broken here. I'll take a look at it...

from emacs-live.

dchelimsky avatar dchelimsky commented on June 6, 2024

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.

dchelimsky avatar dchelimsky commented on June 6, 2024

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.

dchelimsky avatar dchelimsky commented on June 6, 2024

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.

samaaron avatar samaaron commented on June 6, 2024

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.

jaycfields avatar jaycfields commented on June 6, 2024

should autocomplete in the current buffer work now? I'm not having any luck, but maybe I have other issues...

from emacs-live.

samaaron avatar samaaron commented on June 6, 2024

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.

samaaron avatar samaaron commented on June 6, 2024

Yey! Fixed, finally!

from emacs-live.

thomaschrstnsn avatar thomaschrstnsn commented on June 6, 2024

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.

samaaron avatar samaaron commented on June 6, 2024

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.

thomaschrstnsn avatar thomaschrstnsn commented on June 6, 2024

I see. I do not understand the dev/live separation, but made it work for me.

from emacs-live.

samaaron avatar samaaron commented on June 6, 2024

@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.

samaaron avatar samaaron commented on June 6, 2024

@thomaschrstnsn I've just updated the live packs :-)

from emacs-live.

thomaschrstnsn avatar thomaschrstnsn commented on June 6, 2024

Thanks :-)

This makes a huge difference for me. Excellent work.

from emacs-live.

samaaron avatar samaaron commented on June 6, 2024

Awesome! Sorry it took such a long time to fix. It was a pretty tricksy bug to find.

from emacs-live.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.