Skip to content

Commit

Permalink
Upgrade jdt.ls to v1.42.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Dec 13, 2024
1 parent bd150e6 commit 4b03750
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def Exit( self ):
)$
"""

JDTLS_MILESTONE = '1.36.0'
JDTLS_BUILD_STAMP = '202405301306'
JDTLS_MILESTONE = '1.42.0'
JDTLS_BUILD_STAMP = '202411281516'
JDTLS_SHA256 = (
'028e274d06f4a61cad4ffd56f89ef414a8f65613c6d05d9467651b7fb03dae7b'
'75d26dc03f886c089958a668dc8baede1a559a6e83bf12c96070a4ee199dc58e'
)

DEFAULT_RUST_TOOLCHAIN = 'nightly-2024-12-12'
Expand Down
14 changes: 9 additions & 5 deletions ycmd/tests/java/server_management_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,15 +509,19 @@ def test_ServerManagement_ConnectionRaisesWhileShuttingDown( self, app ):
print( f'pid: { pid }' )
process = psutil.Process( pid )

completer = handlers._server_state.GetFiletypeCompleter( [ 'java' ] )

# In this test we mock out the GetResponse method, which is used to send
# the shutdown request. This means we only send the exit notification. It's
# possible that the server won't like this, but it seems reasonable for it
# to actually exit at that point.
with patch.object( completer.GetConnection(),
'GetResponse',
side_effect = RuntimeError ):
from ycmd.completers.language_server import language_server_completer
from ycmd.completers.language_server import language_server_protocol as lsp

def BrokenShutdown( request_id ):
return lsp.BuildRequest( None, 'shutdown', None )

with patch.object( language_server_completer.lsp,
'Shutdown',
side_effect = BrokenShutdown ):
app.post_json(
'/run_completer_command',
BuildRequest(
Expand Down

0 comments on commit 4b03750

Please sign in to comment.