This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-29
Channels
- # babashka (54)
- # beginners (24)
- # biff (23)
- # calva (14)
- # catalyst (4)
- # cider (20)
- # clj-kondo (17)
- # clojure (65)
- # clojure-europe (14)
- # clojure-norway (177)
- # clojure-uk (1)
- # clojurescript (11)
- # core-typed (4)
- # cursive (10)
- # datomic (39)
- # emacs (21)
- # gratitude (33)
- # honeysql (8)
- # hyperfiddle (57)
- # introduce-yourself (7)
- # jobs (5)
- # leiningen (17)
- # lsp (6)
- # meander (3)
- # missionary (5)
- # pathom (2)
- # polylith (4)
- # re-frame (7)
- # releases (2)
What's up here?
$ lein repl
nREPL server started on port 42023 on host 127.0.0.1 -
REPL-y 0.5.1, nREPL 1.0.0
Clojure 1.11.1
OpenJDK 64-Bit Server VM 11.0.19+7-jvmci-22.3-b18
[snip]
user=> #inst"2023"
Syntax error reading source at (REPL:1:12).
No reader function for tag inst
No dependencies.
If I switch to Java 8, the issue disappears!
I've tried Java 11, 17 and 20 as well, same problem.
Not the same problem with clj
.Did you check out https://github.com/technomancy/leiningen/issues/2692 ?
@U45T93RA6 Yes, I did see that issue - but it's pretty old, and my Leiningen version is newer. Sorry, I actually thought it said so in the above output, but:
$ lein --version
Leiningen 2.10.0 on Java 11.0.19 OpenJDK 64-Bit Server VM
Weird thing is that it used to work, and Leiningen was installed via arch-linux's Pacman, and I didn't update for quite a while.
Seems there's some oddity elsewhere in my system.Pretty weird :/ No ~/.lein/profiles.clj either? Or plugins, anything else. I've seen this sort of thing but it was either quite a few years ago, or it wasn't an empty project so there was at least some lead to investigate
@U052XLL3A I recommend discussing this on IRC with technomancy or filing an issue on Codeberg. He may have some insight on what to check
FWIW I have never had this issue with Leiningen 2.10.0, and I switch between 1.8, 11, and 17 fairly often
> No ~/.lein/profiles.clj either? Or plugins, anything else.
No - I tried removing the .lein
folder, and it didn't fix the issue. Anywhere else where there might be some sort of bad state on the filesystem relating to java/leiningen?
@U0479UCF48H Which IRC channel should I use to get in contact?
when i use lein checkouts and change some lib that i'm using in my code and I jump into the namespce with my editor the I was expecting going to the checkouts/lib-i-m-editing/... but i'm going to m2/ is the behavior? if yes, is there anyway to edit some lib and point my project.clj to the local lib?
It should navigate to the file on classpath. Which would be your checkouts location. I suspect you have something wrong with checkouts. Also you have to restart the repl when you add checkouts. Lein must know it at startup time when building repl classpath
thanks for answer me I will look for warnings to see but even if i had the lib on m2 should land me to checkouts, am i right it?
Yes. It should not use m2 files for the modules you have as checkouts if you have checkouts working
It is working the code is point to checkouts. But right it now when I do a go to definition it goes to m2. But the coding run the checkouts version
I do think it is something on clojure lsp with neovim. May they don't have this feature