This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-17
Channels
- # ai (1)
- # announcements (1)
- # aws (38)
- # babashka (25)
- # beginners (84)
- # biff (11)
- # calva (58)
- # clerk (14)
- # clj-kondo (14)
- # cljdoc (9)
- # cljs-dev (2)
- # clojars (2)
- # clojure (93)
- # clojure-czech (2)
- # clojure-dev (13)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-spec (13)
- # clojure-uk (2)
- # clojurescript (6)
- # conjure (1)
- # core-async (9)
- # cursive (12)
- # data-science (7)
- # datahike (47)
- # datalevin (10)
- # datalog (3)
- # datomic (35)
- # emacs (3)
- # events (4)
- # fulcro (49)
- # gratitude (7)
- # humbleui (1)
- # hyperfiddle (42)
- # jobs-discuss (19)
- # kaocha (5)
- # lsp (20)
- # malli (3)
- # meander (2)
- # membrane (2)
- # off-topic (22)
- # pathom (2)
- # polylith (14)
- # practicalli (1)
- # rdf (3)
- # reitit (2)
- # shadow-cljs (11)
- # squint (3)
- # tools-deps (32)
- # vim (9)
- # xtdb (16)
When reviewing PRs, we sometimes run into annoying diffs at work, where Cursive and LSP disagree on how the formatting of ns require
should look. I think they differ by one space:
Cursive, four spaces
(ns my.ns
(:require
[something :as s]))
^^^^
LSP, three spaces
(ns my.ns
(:require
[something :as s]))
^^^
What's a good solution to these issues?I use the option to ignore whitespace. GitHub has that option somewhere for code reviews, and git itself has:
alias dfno="git diff origin/main --name-only --ignore-space-at-eol -b -w --ignore-blank-lines"
alias ddf="git diff origin/main --ignore-space-at-eol -b -w --ignore-blank-lines"
LSP follows the same standard of cider, clojure-mode and Clojure code style, so I think would be nice to cursive does the same
Hey all,
Working with IntelliJ - when optimizing imports it changes my :require
params from vectors to lists (and obviously does not compile afterwards).
See attachments.
Any idea why?
Do your settings look like this?
Yes thank you!
Yes, that’s configurable as Caleb shows. But your ns should still compile with either lists or vectors.
hey are any notes or documentation on cursive’s expected file structure for clojure files? I get FNF errors unless I places things in a certain directory structure