astoff / code-cells.el

Emacs utilities for code split into cells, including Jupyter notebooks
GNU General Public License v3.0
180 stars 11 forks source link

Error converting ipynb files #5

Closed memeplex closed 2 years ago

memeplex commented 2 years ago

I'm getting:

code-cells-convert-ipynb: Invalid function: ((symbol-function 'json-read-array) 'forward-sexp)

the offending code is:

  (let* ((nb (cl-letf ;; Skip over the possibly huge "cells" section
                 (((symbol-function 'json-read-array) 'forward-sexp))
               (json-read)))

This is indeed right but I believe you should require cl-lib first (see https://www.gnu.org/software/emacs/manual/html_mono/cl.html#Usage).

Reevaluating the definition of code-cells-convert-ipynb fixes the issue, so I assume this is a compilation time issue, cl-letf was not recognized as a macro and then((symbol-function 'json-read-array) 'forward-sexp) is seen as an invalid function application.

memeplex commented 2 years ago

Oh, I now realized you're Augusto, we have exchanged some emails already in bug-gnu-emacs@ :), I'm Carlos.

astoff commented 2 years ago

Ah, hi! This should be fixed now.

memeplex commented 2 years ago

Thanks!