Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.82k stars 195 forks source link

Generating info file #1056

Open excalamus opened 3 years ago

excalamus commented 3 years ago

Expected behavior

Generate an info file

Actual behavior

(virtualenv) user@LAPTOP-MN6L48C1:~/smartparens/docs$ python -V
Python 2.7.17
(virtualenv) user@LAPTOP-MN6L48C1:~/smartparens/docs$ pip list
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Package                  Version
------------------------ ---------
alabaster                0.7.12
argh                     0.26.2
Babel                    2.9.0
backports-abc            0.5
certifi                  2020.11.8
chardet                  3.0.4
docutils                 0.16
futures                  3.3.0
idna                     2.10
imagesize                1.2.0
Jinja2                   2.11.2
livereload               2.6.3
MarkupSafe               1.1.1
packaging                20.7
pathtools                0.1.2
pip                      20.3.1
pkg-resources            0.0.0
port-for                 0.3.1
Pygments                 2.5.2
pyparsing                2.4.7
pytz                     2020.4
PyYAML                   5.3.1
requests                 2.25.0
rst                      0.1
setuptools               44.1.1
sexpdata                 0.0.3
singledispatch           3.4.0.3
six                      1.15.0
snowballstemmer          2.0.0
Sphinx                   1.8.5
sphinx-autobuild         0.7.1
sphinx-rtd-theme         0.5.0
sphinxcontrib-emacs      0.4
sphinxcontrib-websupport 1.1.2
tornado                  5.1.1
typing                   3.7.4.3
urllib3                  1.26.2
watchdog                 0.10.4
wheel                    0.36.1
(virtualenv) user@LAPTOP-MN6L48C1:~/smartparens/docs$ make info
sphinx-build -b texinfo -d _build/doctrees   . _build/texinfo
Running Sphinx v1.8.5

Exception occurred:
  File "/home/user/virtualenv/local/lib/python2.7/site-packages/sphinxcontrib/emacs/domain.py", line 106, in __init__
    build_env.config.emacs_lisp_load_path,
AttributeError: 'NoneType' object has no attribute 'emacs_lisp_load_path'
The full traceback has been saved in /tmp/sphinx-err-mZz4V1.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Makefile:173: recipe for target 'info' failed
make: *** [info] Error 2

Steps to reproduce the problem

Set up python2 virtualenv, ran pip install -r requirements, then make info as above.

Tried with python3 and got an error about missing sphinxcontrib.emacs. I assume that's the python2 package: https://pypi.org/project/sphinxcontrib-emacs/

Backtraces if necessary (M-x toggle-debug-on-error)

Environment & version information

Fuco1 commented 3 years ago

Hi. As I don't understand this pipeline at all I'm not going to fix this. If you know sphinx and info, I'm happy to take a pull request.

The sphinx emacs extension seems to be abandoned so I'm not sure there's much to do here, probably it wasn't ment to be consumed by info.