Many errors after installing
vitaly-zdanevich opened this issue · comments
In README is not mentioned default plugin manager in Vim 8 - I just cloned the repo into ~/.vim/pack/git-submodules-plugins/start
I see red errors:
Error detected while processing function <SNR>49_RemoveCurrentFromCache[7]..javacomplete#server#Communicate[2]..javacomplete#server#Start:
line 9:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/vitaly/.vim/pack/git-submodules-plugins/start/vim-javacomplete2/autoload/javavibridge.py", line 4, in <module>
import socket
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 47, in <module>
import _socket
ImportError: dlopen(/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so, 2): no suitable image found. Did find:
^I/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so: code signature in (/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions
/2.7/lib/python2.7/lib-dynload/_socket.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
line 18:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'SERVER' is not defined
line 19:
E121: Undefined variable: port
E116: Invalid arguments for function add
line 42:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'JavaviBridge' is not defined
line 43:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'bridgeState' is not defined
Error detected while processing function <SNR>49_RemoveCurrentFromCache[8]..javacomplete#server#Communicate[2]..javacomplete#server#Start:
line 9:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/vitaly/.vim/pack/git-submodules-plugins/start/vim-javacomplete2/autoload/javavibridge.py", line 4, in <module>
import socket
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 47, in <module>
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 47, in <module>
import _socket
ImportError: dlopen(/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so, 2): no suitable image found. Did find:
^I/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so: code signature in (/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions
/2.7/lib/python2.7/lib-dynload/_socket.so) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
line 18:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'SERVER' is not defined
line 19:
E121: Undefined variable: port
E116: Invalid arguments for function add
line 42:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'JavaviBridge' is not defined
line 43:
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'bridgeState' is not defined
Error detected while processing function <SNR>49_RemoveCurrentFromCache[13]..javacomplete#server#Communicate[2]..javacomplete#server#Start:
line 9:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/vitaly/.vim/pack/git-submodules-plugins/start/vim-javacomplete2/autoload/javavibridge.py", line 4, in <module>
import socket
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 47, in <module>
macOS 10.14.4
Java 12.
Vim is out of the box:
:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 22 2019 18:22:38)
Included patches: 1-503, 505-680, 682-1283
Compiled by root@apple.com
Normal version without GUI. Features included (+) or not (-):
+acl -clipboard +dialog_con +file_in_path +job -lua -mouse_sgr +path_extra -rightleft +tag_old_static -toolbar +windows
-arabic +cmdline_compl +diff +find_in_path +jumplist +menu -mouse_sysmouse -perl +ruby/dyn -tag_any_white +user_commands +writebackup
+autocmd +cmdline_hist +digraphs +float -keymap +mksession -mouse_urxvt +persistent_undo +scrollbind -tcl +vertsplit -X11
-balloon_eval +cmdline_info -dnd +folding +lambda +modify_fname +mouse_xterm +postscript +signs -termguicolors +virtualedit -xfontset
-browse +comments -ebcdic -footer -langmap +mouse +multi_byte +printer +smartindent -terminal +visual -xim
+builtin_terms -conceal -emacs_tags +fork() +libcall -mouseshape +multi_lang -profile +startuptime +terminfo +visualextra -xpm
+byte_offset +cryptv +eval -gettext +linebreak -mouse_dec -mzscheme +python/dyn +statusline +termresponse +viminfo -xsmp
+channel +cscope +ex_extra -hangul_input +lispindent -mouse_gpm +netbeans_intg -python3 -sun_workshop +textobjects +vreplace -xterm_clipboard
+cindent +cursorbind +extra_search +iconv +listcmds -mouse_jsbterm +num64 +quickfix +syntax +timers +wildignore -xterm_save
-clientserver +cursorshape -farsi +insert_expand +localmap -mouse_netterm +packages +reltime +tag_binary +title +wildmenu
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -lm -lncurses -liconv -framework Cocoa
Yes, I tried minimal .vimrc configuraion with only autocmd FileType java setlocal omnifunc=javacomplete#Complete
- with that I have nothing, no completion.
It seems like some issue with your python installation. It cannot do import _socket
.
The second Python is stock on macOS.
Try to run python console and execute this command: import socket
or this: import _socket
.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: dlopen(/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so, 0x0002): code signature in (/usr/loca
l/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_socket.so) not valid for use in process: mapped file has no cdhash, completel
y unsigned? Code has to be at least ad-hoc signed.
So yes, you have some issue with your python and you should fix it.
When I run this command, it just executes without ImportError
and other output.