SpaceVim jdt-语言-服务器-最新
SpaceVim jdt-language-server-latest
我将 SpaceVim 用作 Java IDE,只是为了好玩。在配置 ISP 时,可以充分享受 IDE 的许多典型功能,我发现以下基于 windows 的步骤:
[[layers]]
name = "lsp"
filetypes = [
"java"
]
[layers.override_cmd]
java = [
"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=NONE",
"-noverify",
"-Xmx1G",
"-jar",
"D:\dev\jdt-language-server-latest\plugins\org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar",
"-configuration",
"D:\dev\jdt-language-server-latest\config_win",
"-data",
"C:\Users\Administrator\.cache\javalsp"
]
如何在 linux 上翻译它?除了标志 config_linux
,我显然在我的系统中找不到 D:\...
、C:\...
等价项,也找不到 jdt-language-server-latest
等文件夹。从 Eclipse 专用页面,我无法推断出相关信息。也许是因为我缺乏经验。提前感谢您的任何提示。
- 从 https://download.eclipse.org/jdtls/milestones/
下载最新版本的 jdt-language-server
- 解压文件
- 像这样配置
"-jar",
"/home/kerwin/jdt-language-server/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar",
"-configuration",
"/home/kerwin/jdt-language-server/config_linux",
"-data",
"/home/kerwin/.cache/javalsp"
- 尽情享受吧!
我将 SpaceVim 用作 Java IDE,只是为了好玩。在配置 ISP 时,可以充分享受 IDE 的许多典型功能,我发现以下基于 windows 的步骤:
[[layers]]
name = "lsp"
filetypes = [
"java"
]
[layers.override_cmd]
java = [
"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=NONE",
"-noverify",
"-Xmx1G",
"-jar",
"D:\dev\jdt-language-server-latest\plugins\org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar",
"-configuration",
"D:\dev\jdt-language-server-latest\config_win",
"-data",
"C:\Users\Administrator\.cache\javalsp"
]
如何在 linux 上翻译它?除了标志 config_linux
,我显然在我的系统中找不到 D:\...
、C:\...
等价项,也找不到 jdt-language-server-latest
等文件夹。从 Eclipse 专用页面,我无法推断出相关信息。也许是因为我缺乏经验。提前感谢您的任何提示。
- 从 https://download.eclipse.org/jdtls/milestones/ 下载最新版本的 jdt-language-server
- 解压文件
- 像这样配置
"-jar",
"/home/kerwin/jdt-language-server/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar",
"-configuration",
"/home/kerwin/jdt-language-server/config_linux",
"-data",
"/home/kerwin/.cache/javalsp"
- 尽情享受吧!