Closed fommil closed 8 years ago
looks like this might be https://github.com/clojure-emacs/squiggly-clojure/issues/29
by following the hints in the linked ticket, I changed the profiles to
{:repl {
:plugins [[cider/cider-nrepl "0.11.0"]]
}
:user {
:dependencies [[acyclic/squiggly-clojure "0.1.4"]]
}
}
and restarted Emacs. I no longer get pauses or errors on save, although errors now fail in a compile phase when I run lein run
(which is good) but still no squigglies.
Hey, @fommil , welcome to the Clojure world!
About the errors in checking: I don't believe you're actually using the right (i.e. latest) versions of either cider-nrepl or squiggly-clojure, which might be part of your problem.
Both of these projects now auto-inject these values for you without you having to set up a ~/.lein/profiles.clj
at all now (this is a somewhat recent change, so not all documentation is making this overly clear yet). Try just deleting your ~/.lein/profile.clj
if you don't have anything not-cider related in it and see if it fixes the problem.
About the long pauses: I have a pull request open to fix this issue (https://github.com/clojure-emacs/squiggly-clojure/pull/38) , but it seems to have hung in having a decision made around it @pnf ?
ok, cool! That actually worked. Let's leave this open as a documentation ticket. i.e. the fix is "ignore the docs, they are wrong."
There is a very small comment on it in the documentation (see the paragraph immediately above https://github.com/clojure-emacs/squiggly-clojure#configuration ), but we should probably make that a bit more obvious :) .
@tanzoniteblack I was hoping for a comment from @expez on https://github.com/clojure-emacs/squiggly-clojure/pull/38, as it seemed to be a partial revert of one his commits. I think I'll go ahead and merge it though, as it looks right to me.
@fommil Welcome to clojureland. After your indoctrination is complete, I may enlist you in my effort to foist transducers on a certain scala shop.
The configuration instructions are a perennial mess. We should be using squiggly-clojure 0.1.5
and cider-nrepl 0.11.0-snapshot
, to be consistent with the "latest" cider. Cloning your repo and using a minimal .lein/profiles.clj
that specifies these for the :repl
profile, I get the expected
3 1 warning Constant value is discarded: "I can say hello."... (clojure-cider-eastwood)
I'm tempted to just refer people to the main cider docs for all cider-related dependencies.
With the last commit, the README encourages use of cider-jack-in
dependency injection and refers cider-connect
ers to the Cider docs for exact version numbers.
I am afraid my indocrination is suffering major problems, as I can't get OAuth 1.0A to work against twitter. Pretty much every auth library I can see in clojure has been dormant for 5 years.
It is a JVM language, you know.
On Mar 19, 2016, at 13:47, Sam Halliday notifications@github.com wrote:
I am afraid my indocrination is suffering major problems, as I can't get OAuth 1.0A to work against twitter. Pretty much every auth library I can see in clojure has been dormant for 5 years.
— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub
I've just started with clojure, this is my complete emacs config
and my
~/.lein/profiles.clj
looks like thisI added the
:plugins
bit after following the CIDER installation instructions and I added the:dependencies
bit after following your instructions (although I think your README is missing a closing}
).I am not seeing any squigglies in my clojure code (my example project is https://github.com/fommil/twitter-teflon/blob/7a1a50b33c6336865ba1d6cf1951750764585cb6/src/fommil/teflon/core.clj ) e.g. if I introduce any errors in that file such as
(Thread/slee 1)
I don't see anything.And when I save the buffer, Emacs freezes for a few seconds and I see the following messages in
*Messages*
enabling
debug-on-error
and saving the file gives