Fork me on GitHub
#clojure
<
2023-12-31
>
igrishaev13:12:28

I've got some strange behaviour: I cannot require jsonista.core although it's in classpath:

M-x cider-classpath
...
/Users/ivan/.m2/repository/metosin/jsonista/0.3.8/jsonista-0.3.8.jar
The error says, there is something wrong with like 150 in the core namespace, but I'm not getting it.

vemv13:12:51

the class is imported from here https://github.com/metosin/jsonista/blob/88267219e0c1ed6397162e7737d21447e97f32d6/src/clj/jsonista/core.clj#L71C38-L71C38 That's the dep that you should check for in your classpath. Maybe a different version is being pulled?

igrishaev13:12:42

Actually, there is something with transitive deps. I have a library X which has jsoninsta in deps, and I expected jsonista to be loaded. When I added it to the deps explicitly, everything works

vemv13:12:35

It's good practice to explicitly depend on whatever you use anyway, as far as I've seen in teams 🙂 But yeah transitive dep resolution often bites, especially for java stuff like Jackson

Samuel Ludwig18:01:48

unrelated, but do you have a link to/name for that colorscheme? the dark colors look nice on the blue (not as much of a fan of the keywords/classnames, but I'd like to give it an honest try simple_smile)

igrishaev19:01:31

It's light-blue:

(load-theme 'light-blue t)

Samuel Ludwig19:01:26

ah im guessing its an emacs-native theme then

wmealing14:12:26

May seem like an odd question, but when i start jetty (as per https://github.com/wmealing/car/blob/main/src/catch_and_release/handler.clj the "handle" function) the cider repl no longer seems to evaluate input.. is that expected, did i do something wrong ? I did not expect the cider repl prompt to return if it was a blocking operation.

p-himik14:12:48

From the docs of run-jetty:

:join?                  - blocks the thread until server ends
                          (defaults to true)
> how is one supposed to deal with that, fork off a new thread ? In this case, just pass false to that parameter. Also, when adding more info to the initial post, please edit the post or post in a thread - makes it a bit easier for all the current/future readers and mods.

👍 1
wmealing14:12:03

ok will do, and want me to clean that up now ?

p-himik14:12:28

No need. :) But won't hurt either.

wmealing14:12:42

someone messaged me saying to clean it up , thought i'd try and do the right thing.

👍 1