[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#942224: marked as done (asymptote: VIM addon cannot be managed with vim-addons and fails to enable syntax highlighting)



Your message dated Mon, 21 Oct 2019 08:41:30 +0000
with message-id <E1iMTFq-0001r8-Me@fasolo.debian.org>
and subject line Bug#942224: fixed in asymptote 2.59-1
has caused the Debian Bug report #942224,
regarding asymptote: VIM addon cannot be managed with vim-addons and fails to enable syntax highlighting
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
942224: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942224
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: asymptote
Version: 2.53-1
Severity: normal
Tags: patch

Hello,
thanks for maintaining Asymptote in Debian!

I am giving it a try, but I wanted to see syntax highlighting in VIM.
It seems to me that a VIM addon is shipped in the package:

  $ dpkg -L asymptote | grep vim
  /usr/share/vim
  /usr/share/vim/addons
  /usr/share/vim/addons/ftdetect
  /usr/share/vim/addons/ftdetect/asy_filetype.vim
  /usr/share/vim/addons/ftplugin
  /usr/share/vim/addons/ftplugin/asy.vim

But there seem to be two issues: there's no registry file (hence
vim-addons does not find the addon and cannot manage it) and
the syntax file is placed in ftplugin/ (which looks wrong to me).

In order to enable VIM support for Asymptote I had to prepare
the following file:

  $ cat asymptote.yaml
  addon: asymptote
  description: "easier editing of Asymptote .asy files"
  files:
    - syntax/asy.vim
    - ftdetect/asy_filetype.vim

and to issue the following commands (as root):

  # mv /usr/share/vim/addons/ftplugin/asy.vim /usr/share/vim/addons/syntax/
  # cp asymptote.yaml /usr/share/vim/registry/
  # chown root:root /usr/share/vim/registry/asymptote.yaml
  # chmod 644 /usr/share/vim/registry/asymptote.yaml

After, I was finally able to manage the addon for my regular user
with:

  $ vim-addons install asymptote

which automatically set up the following symlinks:

  ~/.vim/syntax/asy.vim -> /usr/share/vim/addons/syntax/asy.vim
  ~/.vim/ftdetect/asy_filetype.vim -> /usr/share/vim/addons/ftdetect/asy_filetype.vim

Now, when I open a .asy file, VIM automatically enables the appropriate
syntax highlighting.


Please add file asymptote.yaml to package asymptote (so that it
is installed to /usr/share/vim/registry/asymptote.yaml )
and change file debian/asymptote.install so that file asy.vim
is installed to /usr/share/vim/addons/syntax/ (and not to
ftplugin/ ...).

Thanks for your time!
Bye.


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages asymptote depends on:
ii  freeglut3                        2.8.1-3+b1
ii  ghostscript                      9.27~dfsg-3.1
ii  imagemagick                      8:6.9.10.23+dfsg-2.1+b1
ii  imagemagick-6.q16 [imagemagick]  8:6.9.10.23+dfsg-2.1+b1
ii  install-info                     6.6.0.dfsg.1-2
ii  libc6                            2.29-2
ii  libfftw3-double3                 3.3.8-2
ii  libgc1c2                         1:7.6.4-0.4
ii  libgcc1                          1:9.2.1-8
ii  libgl1                           1.1.0-1+b1
ii  libglew2.1                       2.1.0-4+b1
ii  libgsl23                         2.5+dfsg-6+b1
ii  libreadline8                     8.0-3
ii  libsigsegv2                      2.12-2
ii  libstdc++6                       9.2.1-8
ii  libtinfo6                        6.1+20190803-1
ii  python3                          3.7.5-1
ii  tex-common                       6.12
ii  texlive-binaries                 2019.20190605.51237-3
ii  texlive-latex-base               2019.20190930-1
ii  texlive-plain-generic            2019.20190930-2
ii  texlive-pstricks                 2019.20190930-2
ii  xdg-utils                        1.1.3-1
ii  zlib1g                           1:1.2.11.dfsg-1+b1

Versions of packages asymptote recommends:
ii  asymptote-doc  2.53-1

Versions of packages asymptote suggests:
ii  asymptote-x11  2.53-1

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: asymptote
Source-Version: 2.59-1

We believe that the bug you reported is fixed in the latest version of
asymptote, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 942224@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Preining <norbert@preining.info> (supplier of updated asymptote package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 21 Oct 2019 16:46:46 +0900
Source: asymptote
Architecture: source
Version: 2.59-1
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Task Force <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <norbert@preining.info>
Closes: 942224
Changes:
 asymptote (2.59-1) unstable; urgency=medium
 .
   * rework vim integration according to Francesco Poli (Closes: #942224)
   * New upstream version 2.59
   * update patches
Checksums-Sha1:
 6ebf2432ff8144d3424a5370e0af0f0eec798d56 2203 asymptote_2.59-1.dsc
 609e25cacf26e3c98761df34fc6b3cef32c7b424 4619014 asymptote_2.59.orig.tar.gz
 717d6afdf8bfae8cb864e157269324d4fcbcedf8 14804 asymptote_2.59-1.debian.tar.xz
 056dd0e34cd0251d6df71bf925c6c9c31da130f9 12901 asymptote_2.59-1_source.buildinfo
Checksums-Sha256:
 bf4a52a0438ca31bb41e853495b1f0a73973caa9c3ce819b591493d088f89f53 2203 asymptote_2.59-1.dsc
 63c0ad17ad8d33b89dfed2e4750dd7864103b6077462addbd408d2ea2a8c3197 4619014 asymptote_2.59.orig.tar.gz
 733adfef844e0eca9f93e98d3e1cf177a6bee3d760bc952132e33457f180c00d 14804 asymptote_2.59-1.debian.tar.xz
 c9bc4603df3415e530db51e406f8c0b8a42784398e8fc01c28f794a2f8974234 12901 asymptote_2.59-1_source.buildinfo
Files:
 9c810358bbeaceaa6af5da4748786f5b 2203 tex optional asymptote_2.59-1.dsc
 d43d86b6e80faa7364ab57a6161ac1d0 4619014 tex optional asymptote_2.59.orig.tar.gz
 811476c9111afa31e35e9a35bcbefd9e 14804 tex optional asymptote_2.59-1.debian.tar.xz
 6a213af9965cd4f7ac8cefec893c2f47 12901 tex optional asymptote_2.59-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE68ws0vrA2voQX53I2A4JsIcUAGYFAl2tZSwACgkQ2A4JsIcU
AGbT2wf/fcl0Kz6oyVFrOQ//Uf7Rx7JQSRzwORO180nC7K3XhwfI+PW5NrePdX6n
cuOoPLpoXzDmXbxrQeyDLYMKivRo7JXVOOw3jddPfM7izrQssx2VFUHHgrzTNRGA
wcgIiQQEgqmq8O8VeXxO7+H2WoIEFWfDwhbLJz/W+PqLvU23QWB0mL9zRZTSSrrE
AD0LmZf096y1kLQmHPcmKRr8pjTZ907Ajm2MNonr+ClZ+5jlnq7HFPito/crVeHX
3DdNyFi1TfbnucesciB7LsdJYs/4JpoxfgPX16Rgh5oar0WFUhDRL6OXvOmH/9xN
PmjcmRsyBVcBCnbNf3OGrEbYeKy+ug==
=q0HD
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: