Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 error downloading JDT.LS #3974

Closed
11 of 12 tasks
vitahoang opened this issue Nov 19, 2021 · 7 comments
Closed
11 of 12 tasks

404 error downloading JDT.LS #3974

vitahoang opened this issue Nov 19, 2021 · 7 comments

Comments

@vitahoang
Copy link

vitahoang commented Nov 19, 2021

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:

  • I have read and understood YCM's CONTRIBUTING document.
  • I have read and understood YCM's CODE_OF_CONDUCT document.
  • I have read and understood YCM's README, especially the
    Frequently Asked Questions section.
  • I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. (Example Google
    search.
    )
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included the output of :YcmDebugInfo.
  • If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, using vim -Nu /path/to/YCM/vimrc_ycm_minimal, including what I
    expected to happen and what actually happened.
  • If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt gift of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank 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

Provide a clear description of the problem, including the following key
questions:

  • What did you do?

Include steps to reproduce here.

  1. Download YCM with plugged
  2. Follow the installation instruction for macOS
  3. Run the compile command:
cd ~/.vim/plugged/youcompleteme
python3 install.py --system-libclang --all

Include description of a minimal test case, including any actual code required
to reproduce the issue.

If you made changes to vimrc_ycm_minimal, paste them here:

<contents of ycm_vimrc_minimal>
  • What did you expect to happen?

Include description of the expected behaviour.

  • What actually happened?

Include description of the observed behaviour, including actual output,
screenshots, etc.

Diagnostic data

Output of vim --version

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Nov 16 2021 11:53:13)
macOS version - arm64
Included patches: 1-3600
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
-balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
-browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     +perl              +title
+channel           +ipv6              +persistent_undo   -toolbar
+cindent           +job               +popupwin          +user_commands
-clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           +python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          +ruby              +wildmenu
+cursorbind        +lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con        +mksession         +smartindent       -X11
+diff              +modify_fname      -sodium            -xfontset
+digraphs          +mouse             -sound             -xim
-dnd               -mouseshape        +spell             -xpm
-ebcdic            +mouse_dec         +startuptime       -xsmp
+emacs_tags        -mouse_gpm         +statusline        -xterm_clipboard
+eval              -mouse_jsbterm     -sun_workshop      -xterm_save
+ex_extra          +mouse_netterm     +syntax            
+extra_search      +mouse_sgr         +tag_binary        
-farsi             -mouse_sysmouse    -tag_old_static    
   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: "/opt/homebrew/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 
Linking: clang -L. -fstack-protector-strong -L/opt/homebrew/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -o vim -lm -lncurses -liconv -lintl -framework AppKit -L/opt/homebrew/opt/lua/lib -llua5.4 -mmacosx-version-min=12.0 -fstack-protector-strong -L/opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0/darwin-thread-multi-2level/CORE -lperl -L/opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin -lpython3.9 -framework CoreFoundation -lruby.3.0 -L/opt/homebrew/Cellar/ruby/3.0.2_1/lib 

Output of YcmDebugInfo

Printing YouCompleteMe debug information...
-- Resolve completions: Up front
-- Client logfile: /var/folders/p9/zxqg4hs954q8ks3_sf9rlvv40000gn/T/ycm_35rkgpja.log
-- Server Python interpreter: /opt/homebrew/opt/python@3.9/bin/python3.9
-- Server Python version: 3.9.8
-- Server has Clang support compiled in: True
-- Clang version: Apple clang version 13.0.0 (clang-1300.0.29.3)
-- Extra configuration file found but not loaded
-- Extra configuration path: /Users/vitahoang/.vim/plugged/youcompleteme/.ycm_extra_conf.py
-- Server running at: http://127.0.0.1:49440
-- Server process ID: 3806
-- Server logfiles:
--   /var/folders/p9/zxqg4hs954q8ks3_sf9rlvv40000gn/T/ycmd_49440_stdout_7gtfchjo.log
--   /var/folders/p9/zxqg4hs954q8ks3_sf9rlvv40000gn/T/ycmd_49440_stderr_z92k9e3n.log

Output of YcmDiags

Native filetype completion not supported for current file, cannot force recompilation

Output of git rev-parse HEAD in YouCompleteMe installation directory

e17fb2fc92c7c1bee6a429db0d3b432c811d0c8a

Contents of YCM, ycmd and completion engine logfiles

Reproduce the issue with vim -Nu /path/to/YCM/vimrc_ycm_minimal, which
enabled debug logging and other useful diagnostics. Include a link to a
gist containing all of the log files listed by :YcmToggleLogs.
https://gist.github.com/vitahoang/494f431f54e36a10ad4480520d7cdf1b
https://gist.github.com/vitahoang/377db9c2fdcb5155878dc97e127db536

OS version, distribution, etc.

Include system information here.
macOS: 12.0.1
Model Name: MacBook Pro
Model Identifier: MacBookPro17,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 7429.41.5
OS Loader Version: 7429.41.5
Serial Number (system): C02GK0K1Q05N
Hardware UUID: B02739C0-DC12-5765-8B80-716F0802EBD4
Provisioning UDID: 00008103-001C04190E23001E
Activation Lock Status: Enabled

Output of build/install commands

Downloading jdt.ls from http://download.eclipse.org/jdtls/snapshots/jdt-language-server-0.68.0-202101202016.tar.gz...
Traceback (most recent call last):
File "/Users/vitahoang/.vim/plugged/youcompleteme/third_party/ycmd/build.py", line 1185, in
Main()
File "/Users/vitahoang/.vim/plugged/youcompleteme/third_party/ycmd/build.py", line 1177, in Main
EnableJavaCompleter( args )
File "/Users/vitahoang/.vim/plugged/youcompleteme/third_party/ycmd/build.py", line 992, in EnableJavaCompleter
DownloadFileTo( url, file_name )
File "/Users/vitahoang/.vim/plugged/youcompleteme/third_party/ycmd/build.py", line 134, in DownloadFileTo
with urllib.request.urlopen( download_url ) as response:
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 555, in error
result = self._call_chain(*args)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 747, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/opt/homebrew/Cellar/python@3.9/3.9.8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Include link to a gist containing the invocation and entire output of
install.py if reporting an installation issue.

@puremourning puremourning changed the title Fail to Compile on Mac M1 Monterey 404 error downloading JDT.LS Nov 19, 2021
@puremourning
Copy link
Member

duplicate #3973

resolved by #3972 which we're working on.

For some reason the version of jdt.ls we use has dissapeard off the internet, or they moved it or something. You can resolve by going into third_party/ycmd and doing git pull origin master

@vitahoang
Copy link
Author

vitahoang commented Nov 19, 2021

@puremourning

For some reason the version of jdt.ls we use has disappeared off the internet, or they moved it or something. You can resolve by going into third_party/ycmd and doing git pull origin master

it said as below and I still can't compile

From https://github.com/valloric/youcompleteme
 * branch            master     -> FETCH_HEAD
Already up to date.

@puremourning
Copy link
Member

puremourning commented Nov 19, 2021

actually, I just realised that ycmd/master is busted at the moment too.

Working on it. There is a solution which is to pull PR ycm-core/ycmd#1613 into third_party/ycmd. So if you're comfortable with that, then go ahead.

Meanwhile, I'm trying to resolve this asap.

@puremourning
Copy link
Member

if you checkout PR #3972 now, that should fix the build for you.

@puremourning
Copy link
Member

Fixed by #3972

@rahuuuL
Copy link

rahuuuL commented Jan 14, 2022

Just do one thing
1 . vi .vim/plugged/YouCompleteMe/third_party/ycmd/build.py
2 . Search Downloading jdt.ls
3. and then change the file_name to 'https://download.eclipse.org/jdtls/milestones/1.7.0/jdt-language-server-1.7.0-202112161541.tar.gz' (you can use any jdt from these link https://download.eclipse.org/jdtls/milestones/)
4. save the file and now try to install for java simple :)

@wengzy
Copy link

wengzy commented Feb 14, 2022

Just do one thing 1 . vi .vim/plugged/YouCompleteMe/third_party/ycmd/build.py 2 . Search Downloading jdt.ls 3. and then change the file_name to 'https://download.eclipse.org/jdtls/milestones/1.7.0/jdt-language-server-1.7.0-202112161541.tar.gz' (you can use any jdt from these link https://download.eclipse.org/jdtls/milestones/) 4. save the file and now try to install for java simple :)

for #3 , it should be change url = 'https://download.eclipse.org/jdtls/milestones/1.7.0/jdt-language-server-1.7.0-202112161541.tar.gz' , but not file_name

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants