Strange with "clj" tool

543 views
Skip to first unread message

ru

unread,
Jul 31, 2019, 7:16:31 AM7/31/19
to Clojure
Hi,

The tool "clj" starts normally in any folder, except in one, that I cloned from github:

error.png


Please, explain me this behavior.


Sincerely,

  Ru


ru

unread,
Jul 31, 2019, 7:39:44 AM7/31/19
to Clojure
From the error message, we can conclude that "cojure.main" is present in all folders except this one.

среда, 31 июля 2019 г., 14:16:31 UTC+3 пользователь ru написал:

Oleksandr Shulgin

unread,
Jul 31, 2019, 7:41:36 AM7/31/19
to clo...@googlegroups.com
On Wed, Jul 31, 2019 at 1:16 PM ru <sor...@oogis.ru> wrote:

The tool "clj" starts normally in any folder, except in one, that I cloned from github:

error.png


Please, explain me this behavior.

Do you by chance have some non-absolute path in your PATH environment variable in that shell session?  Something like "bin" or "." ?

I also wonder if you are intentionally stopping the prompts of clj invokations that did work (using Ctrl+Z?) instead of making them exit (by sending EOF: Ctrl+D)?

--
Alex

Jesús Gómez

unread,
Jul 31, 2019, 8:04:47 AM7/31/19
to clo...@googlegroups.com
Maybe there is something in the `deps.edn` inside the `simpro-scene` folder that is changing the `path` in a way that it can't find `clojure.main`.

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/3d705af9-9ed9-4142-871f-303a91e80236%40googlegroups.com.

ru

unread,
Jul 31, 2019, 9:00:18 AM7/31/19
to Clojure
Thanks Alex!
All paths in PATH are absolute. I did not know about Ctrl+D before :( Tnx for this.

среда, 31 июля 2019 г., 14:41:36 UTC+3 пользователь Oleksandr Shulgin написал:

Alex Miller

unread,
Jul 31, 2019, 3:12:23 PM7/31/19
to Clojure
The error indicates a classpath that does not include the clojure dependency. That shouldn't ever happen (as clojure is included as the default dependency set).

So not sure what would cause that, but it would help to know if there is a deps.edn file at the location of the failure and what it is in it.

Also, you might have something bad in the ./.cpcache/ dir in that folder - you could try either using clj -Sforce (to avoid using it) or just deleting the directory if it exists.

ru

unread,
Jul 31, 2019, 4:20:39 PM7/31/19
to Clojure
One time use of "clj -Sforce" solved the problem.

Thanks, Alex (and others).

-- cheers,

   Ru

среда, 31 июля 2019 г., 22:12:23 UTC+3 пользователь Alex Miller написал:
Reply all
Reply to author
Forward
0 new messages