Package: vim-scripts
Version: 20210124
Severity: normal

Dear Maintainer,

just updated to Debian/bullseye and tested VimSokoban.

Loaded and started Sokoban (in vim) with:

  :packadd VimSokoban
  :Sokoban

but received:

                                VIM SOKOBAN
                                ===========
  Score                                        Key
  -----                                        ---
  Level: 1»·                            X = soko    # = wall
  Moves: 0                                    $ = package . = home
  Pushes: 0

  Options: h(left),j(down),k(up),l(right),u(undo),r(restart),n(next),p(previous)
  
--------------------------------------------------------------------------------

  Could not find file /usr/share/vim-scripts/sokoban-levels/level1.sok

Pressing any key leads to the following errors:

  Error detected while processing function 
<SNR>54_MoveDown[1]..<SNR>54_MakeMove:
  line    1:
  E121: Undefined variable: b:manPosLine
  line    2:
  E121: Undefined variable: b:manPosCol
  line    3:
  E121: Undefined variable: newManPosLine
  E116: Invalid arguments for function <SID>IsWall(newManPosLine, newManPosCol)
  line    4:
  E121: Undefined variable: newManPosIsWall

It think this is caused by this change:
https://salsa.debian.org/vim-team/vim-scripts/-/commit/74839fc4a59b216e280fa1bf96add53f6b40c5da
but unfortunately
https://salsa.debian.org/vim-team/vim-scripts/-/blob/debian/sid/debian/patches/sokoboan_path.diff
was not adjusted.

My workaround is to set "g:SokobanLevelDirectory" manually:

  :packadd VimSokoban
  :let g:SokobanLevelDirectory = 
"/usr/share/vim-scripts/VimSokoban/plugin/VimSokoban/"
  :Sokoban

Please adjust "g:SokobanLevelDirectory" in `sokoboan_path.diff`.

Thanks for maintaining vim-scripts.

Best,
 - Darsha

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-6-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vim-scripts depends on:
ii  vim             2:8.2.2434-3
ii  vim-gtk3 [vim]  2:8.2.2434-3
ii  vim-nox [vim]   2:8.2.2434-3

vim-scripts recommends no packages.

Versions of packages vim-scripts suggests:
pn  ctags             <none>
pn  libtemplate-perl  <none>
pn  perlsgml          <none>

-- no debconf information

Reply via email to