Error initializing plugin with Vim 8 from source + pyenv 3.6.4
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 284
- フォーク
- 27
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
plugin/vdebug.vim の読み込み時に発生する失敗を、39 行目から再現し、その後 pythonx/start_vdebug.py と、pythonx/vdebug/debugger_interface.py および breakpoint.py の import を調べてください。動作する :python3 環境と、失敗する組み込み Python を比較し、traceback とそれに続く NameError メッセージなしで初期化を完了するために何が必要かを特定してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, vim
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100