redhat-developer / redhat-developer/vscode-java

Error connecting to server

未关闭
#1,566 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

Hi,
I've installed the extension for first time, and when it starts it shows an error "The Language Support for Java server crashed".
It opens the server logs indicating:
java.lang.IllegalAccessError: tried to access method org.eclipse.jdt.ls.core.internal.highlighting.SemanticHighlightings$AutoboxHighlighting.()V from class org.eclipse.jdt.ls.core.internal.highlighting.SemanticHighlightings

I've tried disabling semantic highlighting, and cleaning the workspace w/out success.

Environment
  • Operating System:
    linux debian base distro : Linux XXXX 4.15.0-29deepin-generic

  • JDK version:
    openjdk version "11" 2018-09-25
    OpenJDK Runtime Environment (build 11+13-Debian-2)
    OpenJDK 64-Bit Server VM (build 11+13-Debian-2, mixed mode, sharing)

  • Visual Studio Code version:
    Version: 1.47.3
    Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e
    Date: 2020-07-23T15:51:39.791Z
    Electron: 7.3.2
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0
    OS: Linux x64 4.15.0-29deepin-generic

  • Java extension version:
    v0.65.0

Steps To Reproduce
  1. Install VSCode and the extension
  2. Open any .java file, in the bottom right there's a spinning circle that ends up showing the error

I am attaching the log from the server. Please let me know if I am missing any useful information.

Additional Informations

Not sure if it adds any context, but I initially got the Java Extension Pack by sync configurations from another windows based vscode. I use "Settings Sync" extension. After getting this issue, I manually removed these packages and installed only the Language Support one but the issue persists.
vscode-java.error.txt

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

检查附加的 vscode-java.error.txt 和 SemanticHighlightings 堆栈跟踪,然后使用列出的 VS Code、JDK 和扩展版本打开任意 .java 文件来重现崩溃。确定 language server 无法启动的原因,并验证打开 Java 文件时不会出现所报告的错误且操作能够完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。