all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#40067: clojure does not find namespace "clojure.set"
@ 2020-03-15  4:04 Jesse Gibbons
  2021-03-15 20:20 ` Alex ter Weele
  2023-05-04 21:21 ` Eugen Stan
  0 siblings, 2 replies; 3+ messages in thread
From: Jesse Gibbons @ 2020-03-15  4:04 UTC (permalink / raw)
  To: 40067

A simple way to tell if clojure can find a namespace is to use the dir
macro on the repl. The following command should output items in the
clojure.string namespace followed by the items in the clojure.set
namespace:

java -jar `guix build clojure`/share/java/clojure.jar <<EOF
(dir clojure.string)
(dir clojure.set)
EOF

The first command is successful, but when it gets to the second command
it fails with the following error:

user=> Execution error at user/eval9637 (REPL:1).
No namespace: clojure.set found




I unzip'd the jar and found that the set$*.class files are indeed in
there. This is with openjdk, built with guix commit
ce226e9d8d52d2530f057f2000d36c0d55380ade. It also happens with openjdk.


-Jesse

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#40067: clojure does not find namespace "clojure.set"
  2020-03-15  4:04 bug#40067: clojure does not find namespace "clojure.set" Jesse Gibbons
@ 2021-03-15 20:20 ` Alex ter Weele
  2023-05-04 21:21 ` Eugen Stan
  1 sibling, 0 replies; 3+ messages in thread
From: Alex ter Weele @ 2021-03-15 20:20 UTC (permalink / raw)
  To: 40067

Hi Jesse,

I found that dir works once the namespace has been "require"d, so this
works:

user=> (require 'clojure.set)
nil
user=> (dir clojure.set)
difference
index
...


Given that, I'm not sure why (dir clojure.string) works, but I'm
guessing that once clojure starts, something has already done (require
'clojure.string).

I don't think there's a bug with the Guix clojure package here.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#40067: clojure does not find namespace "clojure.set"
  2020-03-15  4:04 bug#40067: clojure does not find namespace "clojure.set" Jesse Gibbons
  2021-03-15 20:20 ` Alex ter Weele
@ 2023-05-04 21:21 ` Eugen Stan
  1 sibling, 0 replies; 3+ messages in thread
From: Eugen Stan @ 2023-05-04 21:21 UTC (permalink / raw)
  To: 40067-done

[-- Attachment #1: Type: text/plain, Size: 130 bytes --]

I can confirm solution from Alex ter Weele .

This issue can be closed.

-- 
Eugen Stan

+40770 941 271  / https://www.netdava.com

[-- Attachment #2: eugen_stan.vcf --]
[-- Type: text/vcard, Size: 181 bytes --]

begin:vcard
fn:Eugen Stan
n:Stan;Eugen
email;internet:eugen.stan@netdava.com
tel;cell:+40720898747
x-mozilla-html:FALSE
url:https://www.netdava.com
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-05  6:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-15  4:04 bug#40067: clojure does not find namespace "clojure.set" Jesse Gibbons
2021-03-15 20:20 ` Alex ter Weele
2023-05-04 21:21 ` Eugen Stan

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.