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

2019-10-13 Thread Francesco Poli
On Sun, 13 Oct 2019 21:26:28 +0900 Norbert Preining wrote:

> Hi Francesco,
> 
> On Sun, 13 Oct 2019, Francesco Poli wrote:
> > I am a newbie myself, I learned the basics by looking at other packages
> > shipping VIM addons (such as package vim-scripts) and by reading the
> > vim-addons(1) and vim-registry(5) man pages (shipped in package
> > vim-addon-manager).
> 
> Aren't there different ways to activate packages in Vim? I have always
> had problems with all the differen packages managers in vim.

I am only aware of addons handled by vim-addon-manager and of files
placed directly into the /usr/share/vim/vim81/ tree (by src:vim binary
packages, I think).
But, as I said, I am no expert, hence there may be other ways...



-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgpbYamCTTRml.pgp
Description: PGP signature


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

2019-10-13 Thread Norbert Preining
Hi Francesco,

On Sun, 13 Oct 2019, Francesco Poli wrote:
> I am a newbie myself, I learned the basics by looking at other packages
> shipping VIM addons (such as package vim-scripts) and by reading the
> vim-addons(1) and vim-registry(5) man pages (shipped in package
> vim-addon-manager).

Aren't there different ways to activate packages in Vim? I have always
had problems with all the differen packages managers in vim.

> Have a nice evening (in the +0900 time zone...)!

Thanks, now that the Taifun has more or less passed...

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



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

2019-10-13 Thread Francesco Poli
On Sun, 13 Oct 2019 09:29:37 +0900 Norbert Preining wrote:

[...]
> On Sat, 12 Oct 2019, Francesco Poli (wintermute) wrote:
> > But there seem to be two issues: there's no registry file (hence
> 
> Thanks for the explanation - not that I have any idea how to package vim
> addons ;-)

I am a newbie myself, I learned the basics by looking at other packages
shipping VIM addons (such as package vim-scripts) and by reading the
vim-addons(1) and vim-registry(5) man pages (shipped in package
vim-addon-manager).

> 
> I simply followed your advice now and the changes are alread in git,
> see
> https://github.com/debian-tex/asymptote/commit/22616928ec5da97cf1965b9fbaa01d0b0a78d8ad
> 
> Hope that is enough!

Looks OK to me.
Thanks a lot for your very prompt reaction (I wish all bug reports of
mine were acted upon this quickly!).

> 
> All the best

Have a nice evening (in the +0900 time zone...)!


-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp5bCl5fTlMJ.pgp
Description: PGP signature


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

2019-10-12 Thread Norbert Preining
tag 942224 + pending
thanks

Hi Francesco,

On Sat, 12 Oct 2019, Francesco Poli (wintermute) wrote:
> But there seem to be two issues: there's no registry file (hence

Thanks for the explanation - not that I have any idea how to package vim
addons ;-)

I simply followed your advice now and the changes are alread in git,
see
https://github.com/debian-tex/asymptote/commit/22616928ec5da97cf1965b9fbaa01d0b0a78d8ad

Hope that is enough!

All the best

Norbert

--
PREINING Norbert   http://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13



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

2019-10-12 Thread Francesco Poli (wintermute)
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  freeglut32.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  libc62.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  libtinfo66.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-generic2019.20190930-2
ii  texlive-pstricks 2019.20190930-2
ii  xdg-utils1.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