Skip to content

Commit 8945fc1

Browse files
authored
fix: jdtls wont start up after new mason versioned package (nvim-java#147)
1 parent 9f9b785 commit 8945fc1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lua/java/api/dap.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function M.config_dap()
2828
end
2929
JavaDap:new(jdtls()):config_dap()
3030
if config.notifications.dap then
31-
notify.info('DAP configured')
32-
end
31+
notify.info('DAP configured')
32+
end
3333
end)
3434
.catch(get_error_handler('dap configuration failed'))
3535
.run()

lua/java/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ local config = {
2727
auto_install = true,
2828
},
2929
notifications = {
30-
dap = true,
30+
dap = true,
3131
},
3232
}
3333

lua/java/startup/mason-dep.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444

4545
function M.get_pkg_list(config)
4646
local dependecies = {
47-
{ name = 'jdtls-1.33.0', version = 'v1.33.0' },
47+
{ name = 'jdtls', version = 'v1.31.0' },
4848
{ name = 'lombok-nightly', version = 'nightly' },
4949
{ name = 'java-test', version = '0.40.1' },
5050
{ name = 'java-debug-adapter', version = '0.55.0' },

0 commit comments

Comments
 (0)