jaredly / jaredly/vim-debug

Error initializing plugin with Vim 8 from source + pyenv 3.6.4

Offen
#36 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
284
Forks
27
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Having just re-installed Vim from source in OS X:

Vim version: 8.0.1848
OS X version: 10.13.4
Python version: 3.6.4 (via pyenv)
Vim package management: Vim >= 8 internal

Other plugins are loading fine. When I try to load the vdebug plugin, either by placing in a `~/.vim/pack/*/start` folder or via `:packadd vdebug`, I get the following error:

```
Error detected while processing /Users/leons/.vim/pack/plugins/opt/vdebug/plugin/vdebug.vim:
line 39:
Traceback (most recent call last):
File "", line 1, in
File "/Users/leons/.vim/pack/plugins/opt/vdebug/pythonx/start_vdebug.py", line 8, in
import vdebug.debugger_interface
File "/Users/leons/.vim/pack/plugins/opt/vdebug/pythonx/vdebug/debugger_interface.py", line 3, in
from . import breakpoint
File "/Users/leons/.vim/pack/plugins/opt/vdebug/pythonx/vdebug/breakpoint.py", line 1, in
import base64
File "/Users/leons/.pyenv/versions/3.6.4/lib/python3.6/base64.py", line 10, in
import struct
File "/Users/leons/.pyenv/versions/3.6.4/lib/python3.6/struct.py", line 13, in
from _struct import *
ImportError: dlopen(/Users/leons/.pyenv/versions/3.6.4/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so, 2): Symbol not found: _PyByteArray_Type
Referenced from: /Users/leons/.pyenv/versions/3.6.4/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
Expected in: flat namespace
in /Users/leons/.pyenv/versions/3.6.4/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
line 114:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'vdebug' is not defined
Error detected while processing function Vdebug_load_options:
line 8:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'debugger' is not defined
Error detected while processing function Vdebug_load_keymaps:
line 22:
Traceback (most recent call last):
File "", line 1, in
NameError: name 'debugger' is not defined
Press ENTER or type command to continue
```

Of note, `:python3` commands work fine in Vim, though `:python` commands do not. Does vdebug require both to be working?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere den Fehler beim Laden von plugin/vdebug.vim, beginnend bei Zeile 39, und untersuche anschließend pythonx/start_vdebug.py sowie die Imports in pythonx/vdebug/debugger_interface.py und breakpoint.py. Vergleiche die funktionierende :python3-Umgebung mit dem fehlschlagenden eingebetteten Python und ermittle, was erforderlich ist, damit die Initialisierung ohne den Traceback und die nachfolgenden NameError-Meldungen abgeschlossen werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python, vim
Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.