Fork me on GitHub
#leiningen
<
2023-08-29
>
grav14:08:37

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.

grav16:08:18

@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.

vemv17:08:25

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

hifumi12321:08:01

@U052XLL3A I recommend discussing this on IRC with technomancy or filing an issue on Codeberg. He may have some insight on what to check

hifumi12321:08:26

FWIW I have never had this issue with Leiningen 2.10.0, and I switch between 1.8, 11, and 17 fairly often

👍 2
grav05:08:42

> 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?

hifumi12305:08:24

#C03S1KBA2 on libera.chat

👍 2
Chicão21:08:13

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?

mikerod23:08:28

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

mikerod23:08:38

Also look for any warnings about your checkouts not working.

Chicão13:08:39

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?

mikerod00:09:09

Yes. It should not use m2 files for the modules you have as checkouts if you have checkouts working

Chicão00:09:36

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

Chicão00:09:08

I do think it is something on clojure lsp with neovim. May they don't have this feature

mikerod00:09:16

That shouldn’t happen either. But it may depend on your IDE tooling that you are using.

👍 2
Chicão00:09:53

I will try with emacs to see if happens