Skip to content

Commit bc85f9d

Browse files
committed
Merge branch 'unexclude-tools-reader'
2 parents 8e9bd94 + f189e94 commit bc85f9d

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@ Once you're sure that `flycheck-clojure` is in fact initialized, you can debug f
251251
messages between cider and the clojure process. These will be in the
252252
`*nrepl-messages...` buffer, but only if you have `(setq nrepl-log-messages t)`; messages are no longer
253253
being logged by default.
254+
255+
If something mysterious is happening, you may find it helpful to look at the
256+
`*nrepl-messages...` buffers, where CIDER silently logs all traffic between EMACS
257+
and Clojure. Note, per the [cider docs](https://cider.readthedocs.io/en/latest/troubleshooting/)
258+
that you must have such logging turned on, either by setting `nrepl-log-messages` to true or running
259+
`nrepl-toggle-message-logging`.
260+
254261
Among other things, you'll find here the Clojure expressions that
255262
were evaluated to initiate the checking, e.g.
256263

elisp/flycheck-clojure/flycheck-clojure.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ If injecting the dependencies is not preferred set `flycheck-clojure-inject-depe
200200
(when (and flycheck-clojure-inject-dependencies-at-jack-in
201201
(boundp 'cider-jack-in-dependencies))
202202
(cider-add-to-alist 'cider-jack-in-dependencies "acyclic/squiggly-clojure" flycheck-clojure-dep-version)
203-
(cider-add-to-alist 'cider-jack-in-dependencies-exclusions "acyclic/squiggly-clojure" '("org.clojure/tools.reader"))))
203+
;; reader is needed by kibit and no longer provided via cider
204+
;;(cider-add-to-alist 'cider-jack-in-dependencies-exclusions "acyclic/squiggly-clojure" '("org.clojure/tools.reader"))
205+
))
204206

205207
;;;###autoload
206208
(defun flycheck-clojure-setup ()

project.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:url "http://www.eclipse.org/legal/epl-v10.html"}
66
:dependencies [[org.clojure/clojure "1.9.0"]
77
[environ "1.1.0"]
8+
[org.clojure/tools.reader "1.3.2"]
89
[org.clojure/core.typed "0.5.3" :exclusions [org.clojure/clojure] :classifier "slim"]
910
[org.clojure/data.json "0.2.6"]
1011
[jonase/eastwood "0.2.8" :exclusions [org.clojure/clojure]]

sample-project/project.clj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
:license {:name "Eclipse Public License"
55
:url "http://www.eclipse.org/legal/epl-v10.html"}
66
:dependencies [[org.clojure/clojure "1.9.0"]
7-
[org.clojure/core.typed "0.5.3" :classifier "slim"]]
7+
;; Uncomment to enable core.typed annotations
8+
[org.clojure/core.typed "0.5.3" :classifier "slim"]
9+
]
810

911
;; Use lein-environ plugin if you want to set checker configuration in profile.
1012
:plugins [[lein-environ "1.1.0"]]
1113

1214
;; Configuration here may be overridden by namespace metadata.
13-
:profiles {:dev {:env {:squiggly {:checkers [:eastwood :typed]
15+
:profiles {:dev {:env {:squiggly {:checkers [:eastwood
16+
;; Uncomment to include type-checking
17+
;; :typed
18+
]
1419
:eastwood-exclude-linters [:unlimited-use]
1520
:eastwood-options {;; :builtin-config-files ["myconfigfile.clj"]
1621

sample-project/src/sample_project/core.clj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
(ns sample-project.core
2-
{:squiggly {:checkers [:kibit :eastwood :typed]
2+
{:squiggly {:checkers [:kibit :eastwood
3+
;; Uncomment to include type checking
4+
;; :typed
5+
]
36
:eastwood-exclude-linters [:unlimited-use]
47
:eastwood-options {:not-a-real-option "foo"}}
58
:lang :core.typed}
6-
(:require [clojure.core.typed :as t])
9+
; (:require [clojure.core.typed :as t])
710
;; (:use [clojure.stacktrace]) ;; warning suppressed by :eastwood-exclude-linters
811
)
912

0 commit comments

Comments
 (0)