redhat-developer / redhat-developer/vscode-java

is there a problem with java binaries downloaded when using vscode server with nixos?

未关闭
#3,491 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

The buitin java is downloaded, but don't execute on nixos!? all the file is there...

extension output:
[Error - 2:55:46 PM] Language Support for Java client: couldn't create connection to server. Launching server using command /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java failed. Error: spawn /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java ENOENT

buitin java folder:
ls /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/
jar java javadoc jcmd jdb jdeps jhsdb jinfo jmap jpackage jrunscript jstack jstatd rmiregistry jarsigner javac javap jconsole jdeprscan jfr jimage jlink jmod jps jshell jstat

what happens when executing:
$ /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java
bash: /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java: cannot execute: required file not found

on a forum a man is saying that he get errors many times but the install succed if he "sudo" vscode [https://discourse.nixos.org/t/setting-up-java-dev-env-vscode-with-redhat-java/2222]

Environment
  • Operating System: NixOs(host), windows(client)
  • JDK version: 17
  • Visual Studio Code version: 1.86.0
  • Java extension version: v1.27.0

贡献指南

打开贡献指南

从这里开始

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

调研方向

从扩展输出和 /home/auser/.vscode-server/extensions/redhat.java-1.27.0-linux-x64/jre/17.0.10-linux-x86_64/bin/java 中的捆绑二进制文件开始,然后在 NixOS 上重现报告的 shell 执行。将该行为与列出的 VS Code、Java 扩展和 JDK 版本进行比较。当捆绑的 Java 能在报告的环境中启动,并且 Java 语言服务器成功连接时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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