Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException when require flag is present in the ns macro #219

Closed
wagjo opened this issue May 6, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@wagjo
Copy link

wagjo commented May 6, 2022

Following valid ns declaration fails to parse in the polylith tool

(ns foo.baz
  (:require [foo.bar] :reload))

Stacktrace

#error {
 :cause Don't know how to create ISeq from: clojure.lang.Keyword
 :via
 [{:type java.lang.IllegalArgumentException
   :message Don't know how to create ISeq from: clojure.lang.Keyword
   :at [clojure.lang.RT seqFrom RT.java 557]}]
 :trace
 [[clojure.lang.RT seqFrom RT.java 557]
  [clojure.lang.RT seq RT.java 537]
  [clojure.core$seq__5419 invokeStatic core.clj 139]
  [clojure.core$seq__5419 invoke core.clj 139]
  [polylith.clj.core.workspace_clj.namespaces_from_disk$prefix_list__GT_lib_strs invokeStatic namespaces_from_disk.clj 27]
  [polylith.clj.core.workspace_clj.namespaces_from_disk$prefix_list__GT_lib_strs invoke namespaces_from_disk.clj 27]
  [clojure.core$map$fn__5884 invoke core.clj 2759]
  [clojure.lang.LazySeq sval LazySeq.java 42]
  [clojure.lang.LazySeq seq LazySeq.java 58]
  [clojure.lang.RT seq RT.java 535]
  [clojure.core$seq__5419 invokeStatic core.clj 139]
  [clojure.core$map$fn__5884 invoke core.clj 2750]
  [clojure.lang.LazySeq sval LazySeq.java 42]
  [clojure.lang.LazySeq seq LazySeq.java 51]
  [clojure.lang.Cons next Cons.java 39]
  [clojure.lang.RT next RT.java 713]
  [clojure.core$next__5403 invokeStatic core.clj 64]
  [clojure.core$concat$cat__5512$fn__5513 invoke core.clj 744]
  [clojure.lang.LazySeq sval LazySeq.java 42]
  [clojure.lang.LazySeq seq LazySeq.java 51]
  [clojure.lang.RT seq RT.java 535]
  [clojure.core$seq__5419 invokeStatic core.clj 139]
  [clojure.core$filter$fn__5911 invoke core.clj 2813]
  [clojure.lang.LazySeq sval LazySeq.java 42]
  [clojure.lang.LazySeq seq LazySeq.java 51]
  [clojure.lang.Cons next Cons.java 39]
  [clojure.lang.RT length RT.java 1785]
  [clojure.lang.RT seqToArray RT.java 1726]
  [clojure.lang.LazySeq toArray LazySeq.java 132]
  [clojure.lang.RT toArray RT.java 1699]
  [clojure.core$to_array invokeStatic core.clj 346]
  [clojure.core$sort invokeStatic core.clj 3101]
  [clojure.core$sort invokeStatic core.clj 3090]
  [clojure.core$sort invoke core.clj 3090]
  [polylith.clj.core.workspace_clj.namespaces_from_disk$imports invokeStatic namespaces_from_disk.clj 72]
  [polylith.clj.core.workspace_clj.namespaces_from_disk$imports invoke namespaces_from_disk.clj 70]
  [polylith.clj.core.workspace_clj.namespaces_from_disk$__GT_namespace invokeStatic namespaces_from_disk.clj 88]
  [polylith.clj.core.workspace_clj.namespaces_from_disk$__GT_namespace invoke namespaces_from_disk.clj 83]
  [polylith.clj.core.workspace_clj.namespaces_from_disk$source_namespaces_from_disk$fn__30118 invoke namespaces_from_disk.clj 91]
...
@tengstrand tengstrand added the bug Something isn't working label May 6, 2022
@tengstrand
Copy link
Collaborator

The fix is merged to master now @wagjo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants