Ctags: rst2man: error: keine solche Option: --syntax-highlight

Erstellt am 15. Dez. 2019  ·  15Kommentare  ·  Quelle: universal-ctags/ctags

Debian8-Installation fehlgeschlagen
without-doc Parameter ist weg

Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at f7513be Merge pull request #2373 from pragmaware/fix-bug-2364-attempt-2
==> ./autogen.sh
==> ./configure --prefix=home/ouyangsong/.linuxbrew/Cellar/universal-ctags/HEAD-f7513be
==> make
Last 15 lines from /data02/home/ouyangsong/.cache/Homebrew/Logs/universal-ctags/03.make:
  rst2man [options] [<source> [<destination>]]

rst2man: error: no such option: --syntax-highlight
Makefile:5771: recipe for target 'man/tags.5' failed
make[1]: *** [man/tags.5] Error 2
Usage
=====
  rst2man [options] [<source> [<destination>]]

rst2man: error: no such option: --syntax-highlight
Makefile:5769: recipe for target 'man/ctags.1' failed
make[1]: *** [man/ctags.1] Error 2
make[1]: Leaving directory '/tmp/universal-ctags-20191215-3061613-15gdbok'
Makefile:1266: recipe for target 'all' failed
make: *** [all] Error 2
BUILDSYS|git operation|workflow|test harness

Hilfreichster Kommentar

Linuxbrew kenne ich nicht. Das Verhalten ist jedoch nachvollziehbar.
Ich denke, der Erstellungsprozess eines solchen Tools sollte nicht von der vom Benutzer angepassten Umgebung abhängen.

Wie auch immer, ich habe dieses Problem in #2375 behoben. Ich werde es nach dem Zusammenführen von #2376 zusammenführen.

Alle 15 Kommentare

Ihr rst2man ist möglicherweise zu alt.
Siehe https://sourceforge.net/p/docutils/patches/141/

Ich denke, dies ist ein Problem des Build-Systems von Ctags.

Ich installiere die letzten docutils und den Alias ​​rst2man auf den neuesten rst2man, immer noch nicht.

$ pip install --user --upgrade docutils
$ alias rst2man=//home/ouyangsong/.local/bin/rst2man.py
$ rst2man --version
rst2man.py (Docutils 0.15.2 [release], Python 2.7.9, on linux2)

alias funktioniert nur auf Ihrer Shell. Wie wäre es mit einem Symlink?

die Standardeinstellung rst2man ist in /usr/bin , aber ich habe kein Root.
Ich versuche $PATH hinzuzufügen, funktioniert immer noch nicht. @k-takata Sie meinen, dass der rst2man läuft, ist ein Unterprozess, also ist der rst2man im Unterprozess zu alt.

Entschuldigung, ich habe Ihr Problem falsch verstanden.
Ich würde gerne die Ausgabe von rst2man --version und rst2man --help | grep highlight wissen.

Hier ist ein Beispiel:

[yamato@slave]~/var/ctags-github/man% rst2man --version
rst2man --version
rst2man (Docutils 0.14, Python 2.7.15, on linux2)
[yamato@slave]~/var/ctags-github/man% rst2man --help | grep highlight
rst2man --help | grep highlight
--syntax-highlight=<format>

Ich denke, Ihr rst2man hat kein --syntax-highlight.
Wenn meine Vermutung richtig ist, kann der folgende Patch das Problem beheben.

diff --git a/man/Makefile b/man/Makefile
index ec43caa2..42d911d4 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -25,7 +25,9 @@ RST2PDF  = rst2pdf

 # rst2man had a bug about code-block:: handling.
 # https://sourceforge.net/p/docutils/patches/141
-RST2MAN_FLAGS = --syntax-highlight=none
+RST2MAN_FLAGS = $(shell if $(RST2MAN) --help | grep -q -e --syntax-highlight; then \
+               echo --syntax-highlight=none; \
+           fi)
 RST2HTML_FLAGS =
 RST2PDF_FLAGS =

@masatake ja, deine Vermutung ist richtig. der rst2man in /usr/bin hat kein Syntax-Highlight.

$ rst2man --help | grep -q -e --syntax-highlight
$ /usr/bin/rst2man --version
rst2man (Docutils 0.8.1 [release], Python 2.7.9, on linux2)

Ich habe keine Wurzel einen Symlink oder aktualisieren Sie sie zu erstellen, so dass ich ctags die Abhängigkeiten zu installieren, verwenden linuxbrew dann folgen https://github.com/universal-ctags/ctags/blob/master/docs/autotools.rst zu installieren $HOME/.local , mach es endlich.
Aber es ist seltsam, dass das Linuxbrew nicht den rst2man in $HOME/.local sondern /usr/bin/rst2man nachdem ich einen Symlink "$HOME/.local/bin/rst2man -> $HOME/.local/bin/ erstellt habe. rst2man.py" und fügen Sie $PATH hinzu. Ich denke, Linuxbrew verwendet einen Shell-Unterprozess, der nicht meinen $PFAD verwendet

Linuxbrew kenne ich nicht. Das Verhalten ist jedoch nachvollziehbar.
Ich denke, der Erstellungsprozess eines solchen Tools sollte nicht von der vom Benutzer angepassten Umgebung abhängen.

Wie auch immer, ich habe dieses Problem in #2375 behoben. Ich werde es nach dem Zusammenführen von #2376 zusammenführen.

Ich habe #2375 zusammengeführt. @songouyang , könntest du es noch einmal versuchen?

@masatake Ich versuche es noch einmal und
https://github.com/universal-ctags/ctags/blob/ba26b8a744ab7af3842ba219d75c5dc845ba583e/Makefile.am#L232

==> make
Last 15 lines from /data02/home/ouyangsong/.cache/Homebrew/Logs/universal-ctags/03.make:
  rst2man [options] [<source> [<destination>]]

rst2man: error: no such option: --syntax-highlight
Makefile:5773: recipe for target 'man/ctags-incompatibilities.7' failed
make[1]: *** [man/ctags-incompatibilities.7] Error 2
Usage
=====
  rst2man [options] [<source> [<destination>]]

rst2man: error: no such option: --syntax-highlight
Makefile:5773: recipe for target 'man/ctags-optlib.7' failed
make[1]: *** [man/ctags-optlib.7] Error 2
make[1]: Leaving directory '/tmp/universal-ctags-20191217-3629840-z9svqb'
Makefile:1266: recipe for target 'all' failed
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/universal-ctags/homebrew-universal-ctags/issues
5768 .1.rst.1:
5769         $(rst2man_verbose)$(RST2MAN) $(RST2MAN_OPTIONS) $< $@
5770 .5.rst.5:
5771         $(rst2man_verbose)$(RST2MAN) $(RST2MAN_OPTIONS) $< $@
5772 .7.rst.7:
5773         $(rst2man_verbose)$(RST2MAN) $(RST2MAN_OPTIONS) $< $@
1264 RST2MAN_OPTIONS = --syntax-highlight=none
1265 all: $(BUILT_SOURCES) config.h
1266         $(MAKE) $(AM_MAKEFLAGS) all-am

Vielen Dank!
Ich werde noch einen Pull-Request machen.

Könnten Sie es noch einmal versuchen?

@masatake jetzt ist es ok, danke👍

Danke fürs Testen (und den kritischen Vorschlag).

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

cweagans picture cweagans  ·  8Kommentare

EvanCarroll picture EvanCarroll  ·  14Kommentare

jayceekay picture jayceekay  ·  13Kommentare

blackb1rd picture blackb1rd  ·  8Kommentare

lvc picture lvc  ·  3Kommentare