origami.el icon indicating copy to clipboard operation
origami.el copied to clipboard

Error with rx

Open scmbradley opened this issue 4 years ago • 4 comments

I installed the package from CELPA, and this is the error I got:

origami-parsers.el:782:1:Error: Unknown rx form ‘beg-tag’

I experimented briefly and I can fold python files at top-level nodes, but not at lower level nodes (so the behaviour is the same as the original origami in that respect).

Here's the list-packages version information:

     Status: Installed in ‘origami-20210322.1930/’ (unsigned). Delete
    Version: 20210322.1930
     Commit: 921d15cf398877f67b2b91e4eadb61d358037c40
    Summary: Flexible text folding
   Requires: emacs-24.4, s-1.9.0, dash-2.5.0
   Homepage: https://github.com/emacs-origami/origami.el
   Keywords: folding 
Other versions: 20210322.1930 (celpa), 20200331.1019 (melpa).

Here's the output of M-x version: GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian

scmbradley avatar Mar 28 '21 21:03 scmbradley

Hi, can you post the python code that causes this issue, so we can try to reproduce it. Thanks! :)

jcs090218 avatar Mar 29 '21 04:03 jcs090218

That error appears when I install the package through CELPA.(so not related to any particular file)

Perhaps the non functioning python folding is a separate issue?

scmbradley avatar Mar 29 '21 06:03 scmbradley

Ah... I can reproduce this issue. The reason why this is reporting the error is due to the incompatibility of rx.el from Emacs built-in lisp module. I currently don't have a solution yet but the workaround is to use a newer Emacs version (27.1 or above). If I have found the solution then I will apply a patch to support version Emacs 26.x ASAP.

Sorry for the inconvenience!

jcs090218 avatar Mar 29 '21 07:03 jcs090218

That must be it, yes. I'm using emacs available through the main Debian repo, which is 26.3 currently.

scmbradley avatar Apr 02 '21 09:04 scmbradley