This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-02
Channels
- # announcements (1)
- # babashka (4)
- # beginners (39)
- # calva (36)
- # cherry (11)
- # cider (23)
- # clj-on-windows (3)
- # clojure (105)
- # clojure-brasil (1)
- # clojure-chicago (3)
- # clojure-conj (8)
- # clojure-denver (4)
- # clojure-europe (18)
- # clojure-germany (5)
- # clojure-hungary (13)
- # clojure-nl (1)
- # clojure-norway (31)
- # clojure-sweden (9)
- # clojure-uk (2)
- # clojurescript (22)
- # core-async (4)
- # cursive (8)
- # data-science (25)
- # datomic (14)
- # devops (1)
- # emacs (9)
- # events (5)
- # holy-lambda (32)
- # hyperfiddle (26)
- # introduce-yourself (2)
- # kaocha (1)
- # leiningen (11)
- # lsp (17)
- # malli (8)
- # off-topic (84)
- # pedestal (4)
- # polylith (2)
- # re-frame (17)
- # reitit (1)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (8)
- # sql (4)
- # tools-deps (8)
- # transit (5)
- # vim (1)
- # vscode (1)
- # xtdb (45)
Hi folks, I see that clojure-lsp should respect {:style/indent 2}
meta on macro but when i save file with eglot-format-buffer
, it formats it with indent 1. I am on the latest clojure-lsp, I have got no conflicting settings in my project/.cljfmt.edn
.
• Is your macro from your project? (just out of curiosity as I'm investigating a similar issue) • could you try remove .lsp/.cache, restart lsp and try again? (also investigating a issue on that feature)
I just tested with a local macro and it works, would need more details in a repro if my suggestion doesn't work
It is this one
https://github.com/metosin/compojure-api/blob/master/src/compojure/api/core.clj
i will try to delete .lsp/.cache
once i get back to my computer and let you know if it helped 😉
ah so it's an external macro right? not from your project? it's probably the issue I'm aware of, please open an issue so I can prioritize that
thanks, it should be easy to fix but need tests as well, will work on that this week probably
Does clojure-lsp support jumping to definition for a project (src) defined as a :local/root {"../foo"}
where foo contains a src directory with clj files?
For currently, it doesn't seem to work for me from project A to project B (with project B defined as a :local/root
)
works but probably needs a configuration, clojure-lsp is a project that uses :local/root
root
- lib
- cli
like a mono-repoyou just need to confirm if source-paths are correct, checking server-info is a start
Interestingly, it only seems to work for me if I remove :paths ["src" "resources"]
from my Project A deps.edn
I need more info about the project, like the deps.edn, the aliases, clojure-lsp has a good default and a lot of logic to find source-paths as explained https://clojure-lsp.io/settings/#source-paths-discovery