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

Fail in an informative way in call cases #153

Open
daslu opened this issue Sep 10, 2024 · 1 comment
Open

Fail in an informative way in call cases #153

daslu opened this issue Sep 10, 2024 · 1 comment

Comments

@daslu
Copy link
Member

daslu commented Sep 10, 2024

We will use this issue to record cases of failures that are hard to debug.

@daslu
Copy link
Member Author

daslu commented Sep 10, 2024

@holyjak reported the following:

In:
https://github.com/scicloj/wolframite/tree/6d1a7bae6299545fafd770b3f6fe3edd2723c905
run

clj -T:build build-site

and get:

[:wrote docs/for_scientists.cavity_physics.qmd #inst "2024-09-10T21:24:43.811-00:00"]
"Elapsed time: 2114.116813 msecs"
"Elapsed time: 196.429344 msecs"
"Elapsed time: 1.662475 msecs"
Execution error (IllegalArgumentException) at scicloj.clay.v2.notebook/complete (notebook.clj:39).
Don't know how to create ISeq from: clojure.lang.Symbol

Looks like in certain contexts, the following code:
https://github.com/scicloj/wolframite/blob/6d1a7bae6299545fafd770b3f6fe3edd2723c905/notebooks/for_developers/index.clj#L64

(def headers (->> (wl/eval "data[[1]]")
                  (map #(str/replace % "\"" ""))))
(def header->idx (zipmap headers (next (range))))

fails with:

Don't know how to create ISeq from: clojure.lang.Symbol

The reason is that, in some contexts, (wl/eval "data[[1]]") returns the symbol $Failed, and then we cannot map over it.

Anyway, Clay should be more informative about where the failure happens in such situations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant