This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-24
Channels
- # announcements (1)
- # aws (140)
- # beginners (41)
- # calva (47)
- # cider (43)
- # clj-kondo (36)
- # clojure (178)
- # clojure-europe (12)
- # clojure-gamedev (2)
- # clojure-italy (1)
- # clojure-nl (17)
- # clojure-russia (3)
- # clojure-spec (37)
- # clojure-uk (97)
- # clojurescript (173)
- # core-async (16)
- # cursive (18)
- # data-science (2)
- # datascript (6)
- # datomic (32)
- # dirac (16)
- # duct (16)
- # events (2)
- # figwheel-main (7)
- # fulcro (8)
- # graalvm (18)
- # immutant (3)
- # joker (2)
- # kaocha (8)
- # nrepl (6)
- # nyc (2)
- # off-topic (62)
- # quil (3)
- # re-frame (18)
- # reitit (6)
- # ring-swagger (1)
- # shadow-cljs (119)
- # spacemacs (4)
- # specter (2)
- # tools-deps (10)
- # vim (58)
- # xtdb (9)
@pez @filipematossilva https://clojurians.slack.com/archives/CHY97NXE2/p1571868283186300
you're getting that error because alias is not valid in CLJS (or at least clj-kondo thinks so). so when you wrap it in a conditional #?(:clj ...)
the warning goes away
yes, it was a local thing. sorry for the noise. i'm not using the vanilla clojure-mode so i should have known 🙂
it turned out there was one more twist -- depending on whether i launched emacs from a terminal or not, exec-path was different. that was also an "installation thing", but at a lower level. til -- flycheck automatically disables checkers for various reasons -- M-x flycheck-verify-setup can be of some help, but it seemed convoluted to have to use C-u M-x flycheck-disable-checker to re-enable...
clj-kondo was my first real reason to use flycheck -- i suppose most other folks who use flycheck-clj-kondo are likely to be flycheck users already?
The lsp server should also work with emacs. Maybe with inspiration from @snoe's https://github.com/snoe/clojure-lsp#emacs code people can try it out and see if they can get it working on Windows, document it etc.
Code for the lsp server: https://github.com/borkdude/clj-kondo.lsp
i tried to get clojure-lsp to work with emacs before but didn't have much luck -- i wonder if things have changed...
@sogaiu my coworker is using it with hydra and stuff setup for it. https://github.com/dpsutton/tangled/blob/master/init.org#lsp
@snoe If you would consider adopting clj-kondo into clojure-lsp, by borrowing some code from https://github.com/borkdude/clj-kondo.lsp it should just be a few lines of code.
also feedback on clj-kondo.lsp is welcome. this was my first time doing anything with lsp
@snoe -- i will take a look -- just having failed again, happy to have more pointers 🙂
ah, that config had some extra bits that the repository README seemed to be lacking -- seems to have done the trick -- thanks @snoe! at long last, i can try clojure-lsp 🙂
(:refer-clojure :rename {requirng-resolve rr})
clj-kondo didn't pick up that I typo'd the left-hand side here. Shall I raise an issue?
huh, wait. You don't actually seem to warn me if I :refer a non-existent var. I thought it did.
about clojure.core we know all the vars, but we don't know all the vars from other namespaces