add apply plugin: "net.serenity-bdd.serenity-gradle-plugin" to build.gradle, then vscode is not able to recognize the project as a java project

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

还没有人认领这个 Issue。

评估

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

调研方向

使用 spring-guides gs-gradle 项目、Gradle 8.2.1、VS Code 以及 build.gradle 中的 Serenity Gradle plugin 重现该问题。首先比较运行 clean build 和 Clean Workspace 前后的 Java Projects;完成的标准是添加 plugin 后,该项目及其 Java 对象和库仍能被识别。

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

描述

ai-triaged bug

adding apply plugin: "net.serenity-bdd.serenity-gradle-plugin" to build.gradle, then vscode is not able to recognize the project as a java project

Environment:

  • VS Code Version: 1.85.1
  • Extension Version: Extension Pack for Java v0.25.15
  • JDK Type & Version: Oracle, v11.0.8
  • OS Type & Version: windows

Step to Reproduce:

  1. Have a standard alone java starter gradle project, e.g. we use spring gradle sample java project from https://github.com/spring-guides/gs-gradle, download the project to local machine, and upgrade gradle to version 8.2.1
  2. using vscode open folder complete of the project
  3. at this point, we can run gradle build of the project, vscode recognize this project as a java project, and shows all objects and libs info in tab "JAVA PROJECTS"
  4. now open build.gradle file and add the following plugin:
    plugins {
    id "net.serenity-bdd.serenity-gradle-plugin" version "4.0.30"
    }
  5. run ./gradlew clean build
  6. right click tab "JAVA PROJECTS" and select "clean workspace"
  7. wait for vscode clean workspace is done, you will see below message under tab "JAVA PROJECTS"
    No java projects found in the current workspace. you can open a java project folder......

Expected Behavior:
at step 7. we should see the updated java objects and libs information under tab "JAVA PROJECTS"

Actual Behavior:
vscode does not recognize the java project any more and you will see below message under tab "JAVA PROJECTS"
No java projects found in the current workspace. you can open a java project folder......

Related Issues:
No

vscode-java-project-error-screen
build.gradle.txt

主要语言
TypeScript
星标
352
派生
166
平均合并
17 小时 47 分钟
30 天内合并 PR
32

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

microsoft/vscode-java-pack 的其他 Issue

查看 microsoft/vscode-java-pack 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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