leiningen

grav 2023-08-29T14:24:37.014409Z

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.

vemv 2023-08-29T14:57:15.306879Z

Did you check out https://github.com/technomancy/leiningen/issues/2692 ?

grav 2023-08-29T16:01:18.374259Z

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

vemv 2023-08-29T17:20:25.999129Z

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

hifumi123 2023-08-29T21:28:01.861289Z

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

👍 1
hifumi123 2023-08-29T21:28:26.529409Z

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

👍 1
grav 2023-08-30T05:05:42.041309Z

> 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? @hifumi123 Which IRC channel should I use to get in contact?

hifumi123 2023-08-30T05:07:24.345089Z

#clojure on libera.chat

👍 1
chico 2023-08-29T21:35:13.744049Z

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?

chico 2023-08-30T13:09:39.864739Z

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?

2023-08-29T23:43:28.969089Z

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

2023-08-29T23:43:38.964829Z

Also look for any warnings about your checkouts not working.

2023-09-02T00:24:09.588889Z

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

chico 2023-09-02T00:25:36.042099Z

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

chico 2023-09-02T00:26:08.521879Z

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

2023-09-02T00:26:16.019459Z

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

👍 1
chico 2023-09-02T00:26:53.161159Z

I will try with emacs to see if happens