Closed blue-santa closed 1 year ago
Are you able to download this file ?
http://download.eclipse.org/jdtls/snapshots/jdt-language-server-1.14.0-202207211651.tar.gz
If so, put it in /home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/target/cache/
And re-run the script. If that doesn't work, paste the full verbose output.
That seems to have pushed the installation process forward, although I'm not sure that everything is resolved.
Here is a gist with the output of the --verbose install script.
https://gist.github.com/blue-santa/32bc9c9ebf3fea202e5da35f619dedb1
As you can see at the bottom, there's a warning that there is an IncompleteRead error.
But the jdt file did install successfully.
I ran
vim -Nu ./vimrc_ycm_minimal
and then
:YcmDebugInfo
Output here:
Printing YouCompleteMe debug information...
-- Resolve completions: Up front
-- Client logfile: /tmp/ycm_dmuwya01.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.10.6
-- Server has Clang support compiled in: True
-- Clang version: clang version 15.0.1 (https://github.com/ycm-core/llvm 708056a3d8259ce1d9fc0f15676d13b53cc23835)
-- Extra configuration file found but not loaded
-- Extra configuration path: /home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/.ycm_extra_conf.py
-- Server running at: http://127.0.0.1:46155
-- Server process ID: 196291
-- Server logfiles:
-- /tmp/ycmd_46155_stdout_vnbqcqyq.log
-- /tmp/ycmd_46155_stderr_f4nwlbru.log
-- Semantic highlighting supported: True
-- Virtual text supported: False
-- Popup windows supported: True
Here is the output of YcmToggleLogs
Which logfile do you wish to open (or close if already open)?
1: ycm_dmuwya01.log
2: ycmd_46155_stderr_f4nwlbru.log
3: ycmd_46155_stdout_vnbqcqyq.log
1:
b'{"filepath": "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/1", "line_num": 1, "column_num": 1, "working_dir": "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme", "file_data": {"/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/1": {"contents": "\\n", "filetypes": ["ycm_nofiletype"]}}}'
2023-03-01 15:02:16,791 - DEBUG - POST b'http://127.0.0.1:46155/debug_info'
{'content-type': 'application/json', 'x-ycm-hmac': b'q1qK6Kku4qvLWOYd3EcnOUi5leRCz3ozdTgWvJ+tMQA='}
b'{"filepath": "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/1", "line_num": 1, "column_num": 1, "working_dir": "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme", "file_data": {"/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/1": {"contents": "\\n", "filetypes": ["ycm_nofiletype"]}}}'
2:
return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] )
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/ycmd/server_state.py", line 96, in GetFiletypeCompleter
raise ValueError(
ValueError: No semantic completer exists for filetypes: ['ycm_nofiletype']
127.0.0.1 - - [01/Mar/2023 15:03:19] "POST /debug_info HTTP/1.1" 200 337
3:
serving on http://localhost:43807
Please provide YcmDebugInfo and the ".log" if there is one from YcmToggleLogs, when you have a JAVA file open.
I can see that the installation of jdt.ls was successful, and that it subsequently failed to download clangd. You seem to have a problem with your internet connection.
I tried opening a basic HelloWorld.java file, and Ycm didn't seem to be up and running.
When I typed :YcmDebugInfo
, this returned a E492: Not an editor command: YcmDebugInfo
error.
In fact, I tested just now and ycm also does not seem to be operational with c++.
Test ./install.py --all --verbose
on a new internet connection.
The process hung here:
bluesanta@zuko:~/.vim/pack/YouCompleteMe/opt/YouCompleteme$ ./install.py --all --verbose
Searching Python 3.10 libraries...
Found Python library: /usr/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.so
Found Python headers folder: /usr/include/python3.10
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.6", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed
Waited a few minutes and no further progress.
When I hit ^C
, this was the output:
^CTraceback (most recent call last):
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/build.py", line 1335, in <module>
Main()
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/build.py", line 1306, in Main
DoCmakeBuilds( args )
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/build.py", line 1271, in DoCmakeBuilds
BuildYcmdLib( cmake, cmake_common_args, args )
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/build.py", line 722, in BuildYcmdLib
CheckCall( configure_command,
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/build.py", line 298, in CheckCall
_CheckCall( args, **kwargs )
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/build.py", line 318, in _CheckCall
subprocess.check_call( args, **kwargs )
File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 347, in call
return p.wait(timeout=timeout)
File "/usr/lib/python3.10/subprocess.py", line 1207, in wait
return self._wait(timeout=timeout)
File "/usr/lib/python3.10/subprocess.py", line 1941, in _wait
(pid, sts) = self._try_wait(0)
File "/usr/lib/python3.10/subprocess.py", line 1899, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt
Traceback (most recent call last):
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/./install.py", line 50, in <module>
Main()
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/./install.py", line 38, in Main
CheckCall( [ sys.executable, build_file ] + sys.argv[ 1: ] )
File "/home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/./install.py", line 25, in CheckCall
subprocess.check_call( args, **kwargs )
File "/usr/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 347, in call
return p.wait(timeout=timeout)
File "/usr/lib/python3.10/subprocess.py", line 1207, in wait
return self._wait(timeout=timeout)
File "/usr/lib/python3.10/subprocess.py", line 1941, in _wait
(pid, sts) = self._try_wait(0)
File "/usr/lib/python3.10/subprocess.py", line 1899, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt
Now that Vundle is back, I tried to come back to this and get YCM to compile and activate using vim.
I deleted youcompleteme from my plugged
directory and then tried to install using the
Here is a copy of the verbose output of my attempt to install.
Ran vim -Nu ./vimrc_ycm_minimal
and then YcmDebugInfo
:
Printing YouCompleteMe debug information...
-- Resolve completions: Up front
-- Client logfile: /tmp/ycm_rgrw5391.log
-- Server Python interpreter: /home/bluesanta/anaconda3/bin/python3
-- Server Python version: 3.9.13
-- Server has Clang support compiled in: False
-- Clang version: None
-- Extra configuration file found but not loaded
-- Extra configuration path: /home/bluesanta/.vim/bundle/youcompleteme/.ycm_extra_conf.py
-- Server running at: http://127.0.0.1:41721
-- Server process ID: 47779
-- Server logfiles:
-- /tmp/ycmd_41721_stdout_rr_3pvvo.log
-- /tmp/ycmd_41721_stderr_qtxjzq6s.log
-- Semantic highlighting supported: True
-- Virtual text supported: False
-- Popup windows supported: True
Then YcmToggleLogs
:
Which logfile do you wish to open (or close if already open)?
1: ycm_c767n6yc.log
2: ycmd_56625_stderr_qzg1xnbw.log
3: ycmd_56625_stdout_w3rxjxid.log
Type number and <Enter> or click with the mouse (q or empty cancels):
1:
2023-03-20 00:25:36,527 - DEBUG - GET b'http://127.0.0.1:56625/ready' (None)
{'content-type': 'application/json', 'x-ycm-hmac': b'rWgCqc2iIlBqqE4bYNysPbSmMKymtEgCbbr2C1t6ZjQ='}
2023-03-20 00:25:43,425 - DEBUG - POST b'http://127.0.0.1:56625/debug_info'
{'content-type': 'application/json', 'x-ycm-hmac': b'naG8U6HNd4TogzzCtBTUvtCbEhMOPT5tZB1ybKDmrLw='}
b'{"filepath": "/home/bluesanta/.vim/bundle/youcompleteme/1", "line_num": 1, "column_num": 1, "working_dir": "/home/bluesanta/.vim/bundle/youcompleteme", "file_data": {"/home/bluesanta/.vim/bundle/youcompleteme/1": {"contents": "\\n", "filetypes": ["ycm_nofiletype"]}}}'
2:
File "/home/bluesanta/.vim/bundle/youcompleteme/third_party/ycmd/ycmd/handlers.py", line 402, in _GetCompleterForRequestData
return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] )
File "/home/bluesanta/.vim/bundle/youcompleteme/third_party/ycmd/ycmd/server_state.py", line 96, in GetFiletypeCompleter
raise ValueError(
ValueError: No semantic completer exists for filetypes: ['ycm_nofiletype']
127.0.0.1 - - [20/Mar/2023 00:26:38] "POST /debug_info HTTP/1.1" 200 191
3:
serving on http://localhost:56625
~
~
~
~
~
~
~
~
~
~
~
/tmp/ycmd_56625_stdout_w3rxjxid.log
127.0.0.1 - - [20/Mar/2023 00:26:38] "POST /debug_info HTTP/1.1" 200 191
2023-03-20 00:26:56,214 - ERROR - Error retrieving completer debug info
Traceback (most recent call last):
File "/home/bluesanta/.vim/bundle/youcompleteme/third_party/ycmd/ycmd/handlers.py", line 337, in DebugInfo
response[ 'completer' ] = _GetCompleterForRequestData(
File "/home/bluesanta/.vim/bundle/youcompleteme/third_party/ycmd/ycmd/handlers.py", line 402, in _GetCompleterForRequestData return _server_state.GetFiletypeCompleter( request_data[ 'filetypes' ] )
File "/home/bluesanta/.vim/bundle/youcompleteme/third_party/ycmd/ycmd/server_state.py", line 96, in GetFiletypeCompleter
raise ValueError(
ValueError: No semantic completer exists for filetypes: ['ycm_nofiletype']
127.0.0.1 - - [20/Mar/2023 00:26:56] "POST /debug_info HTTP/1.1" 200 191
It doesn't matter which language I try to install support for. Earlier we were having issues with Java, but it's the same issue whether I do --all
during the installation process, or --clang-completer
only.
I've tried uninstalling and reinstalling, and have tried on multiple internet connections.
The problem is clearly with your internet connection or firewall causing downloads to fail.
Thanks for providing logs, but you need to do it when you have a file open where you expect YCM to work (e.g. java or c++). But if your connection is failing to download the subservers there's really not much I can suggest other than trying to download them manually.
This does not appear to be a bug, but rather a problem with your environment, so closing. If you require further assistance, check CONTRIBUTING.md and README.md for support channels.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.(Can't install)
:YcmToggleLogs
command.(Can't install)
vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what I expected to happen and what actually happened.(Can't install)
install.py
(orcmake
/make
/ninja
) including its invocationThank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
Tried to install YouCompleteMe using the new method now that Vundle is gone.
At the terminal, entered:
python3 /home/bluesanta/.vim/pack/YouCompleteMe/opt/YouCompleteme/third_party/ycmd/build.py --all --verbose
Upon entering the above command, received the following output:
Installation should work?
Can't seem to download the java file properly. There's something in #3973, #3972, and #3974 that shows that this has been a problem in the past. The solution seemed to be to go directly into the files and change the url, but I couldn't be sure I was finding the correct url to change, and the thing looked a little risky so I am asking for help instead.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Output of
YcmDiags
Output of
git rev-parse HEAD
in YouCompleteMe installation directoryContents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
Thinkpad T490, 16GB Ram, Ubuntu 22.04 (Pop!_OS distro)
Output of build/install commands