redhat-developer / redhat-developer/vscode-java

Editing classpath file requires restart of VS Code

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

还没有人认领这个 Issue。

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

描述

Originally created by @VanessaLange at Microsoft/vscode-java-debug#576

When adding a jar to the classpath file the program won't build any longer and you get the error message: "Build failed, do you want to continue?" You have to restart VS Code before it works again.

Environment
  • Operating System: macOS Mojave Version 10.14.4 (also Windows 10)
  • JDK version: openjdk version "1.8.0_212"
  • Visual Studio Code version: 1.33.1
  • Java extension version: 0.43.0
  • Java Debugger extension version: 0.17.0
Steps To Reproduce
  1. Create a new Java Project
  2. Add a jar to the classpath
  3. Try to run the program
Current Result

The build fails and you cannot run the program.

Expected Result

Either building works out of the box when editing the classpath or at least we get a message that restarting VS Code is required.

Additional Informations

The language server is loaded correctly (thumbs up icon).

贡献指南

打开贡献指南

从这里开始

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

调研方向

在新的 Java Project 中将一个 jar 添加到 classpath 并在 VS Code 中运行程序,以重现该故障。跟踪 Java extension 如何处理 classpath 编辑和构建状态;完成标准是项目无需重启 VS Code 即可构建和运行,或者明确报告何时需要重启。

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

评估

技术栈
java, vscode
领域
build-system, developer-experience
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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