Client 1 quit with exit code 1 #155
-
This is my java.lua local workspace_dir = vim.fn.fnamemodify(vim.fn.getcwd(), ':p:h:t')
local config = {}
config.cmd = {
'/usr/lib/jvm/java-11-openjdk-amd64/bin/java',
'-Declipse.application=org.eclipse.jdt.ls.core.id1 ',
'-Dosgi.bundles.defaultStartLevel=4',
'-Declipse.product=org.eclipse.jdt.ls.core.product',
'-Dlog.protocol=true',
'-Dlog.level=ALL',
'-Xms1G',
'-Xmx2G',
'-jar', 'home/arnab/Builds/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/plugins/org.eclipse.equinox.launcher_*.jar',
'-configuration', '/home/arnab/Builds/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/config_linux',
'-data', '/home/arnab/.local/share/eclipse/workspace/' .. workspace_dir,
'--add-modules=ALL_SYSTEM',
'--add-opens java.base/java.util=ALL-UNNAMED',
'--add-opens java.base/java.lang=ALL-UNNAMED'
}
config.init_options = {
bundles = {
vim.fn.glob("/home/arnab/Builds/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-*.jar")
}
}
config.on_attach = function(client, bufnr)
require('jdtls').setup_dap({ hotcodereplace = 'auto' })
require('jdtls').add_commands()
end
require('jdtls').start_or_attach(config)
I keep getting client 1 quit with exit code 1. |
Beta Was this translation helpful? Give feedback.
Answered by
mfussenegger
Oct 5, 2021
Replies: 1 comment 3 replies
-
The lsp logs would probably contain some kind of error telling you more about why the client quit with exit code 1 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
zytact
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'home/arnab/Builds/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository/plugins/org.eclipse.equinox.launcher_*.jar
is probably not the right path to the jar. You need to expand the*
to the actual version or apply a function that can expand globs likevim.fn.glob
The lsp logs would probably contain some kind of error telling you more about why the client quit with exit code 1