redhat-developer / redhat-developer/vscode-java

Updating <project name> configuration loop; caused by Minecraft Forge gradle files

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

还没有人认领这个 Issue。

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

描述

Minecraft Forge gradle files work in IntelliJ IDEA but not VSCode.

Environment
  • Operating System: Windows 10
  • JDK version: 1.8.0_131-1-redhat
  • Visual Studio Code version: 1.12.2
  • Java extension version: 0.5.0
Steps To Reproduce
  1. Clone my minecraft mod Souls
  2. Open folder with VSCode

The log is this, and then a loop of the last six lines:

!SESSION 2017-06-03 16:45:35.469 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_131-1-redhat
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Command-line arguments:  -data C:\Users\Mackenzie\AppData\Roaming\Code\User\workspaceStorage\eec2e905684d7da75bbb15d11fbd8a81\redhat.java\jdt_ws

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:39.050
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:39.182
!MESSAGE >> initialize

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:39.187
!MESSAGE Initializing Java Language Server 0.1.0.201705312123

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:39.204
!MESSAGE Creating the default Java project

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:39.232
!MESSAGE >> workspace/didChangeConfiguration

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:40.169
!MESSAGE Finished creating the default Java project

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:42.649
!MESSAGE >>New configuration: {java={configuration={maven={userSettings=null}, updateBuildConfiguration=interactive}, errors={incompleteClasspath={severity=warning}}, home=null, jdt={ls={vmargs=-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication}}, referencesCodeLens={enabled=true}, trace={server=off}}}

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:42.653
!MESSAGE Importing Gradle project(s)

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:45:42.657
!MESSAGE >> document/didOpen
!SESSION 2017-06-03 16:45:59.705 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_131-1-redhat
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Command-line arguments:  -data C:\Users\Mackenzie\AppData\Roaming\Code\User\workspaceStorage\eec2e905684d7da75bbb15d11fbd8a81\redhat.java\jdt_ws

!ENTRY org.eclipse.core.resources 2 10035 2017-06-03 16:46:00.644
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:00.796
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:00.888
!MESSAGE >> initialize

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:00.893
!MESSAGE Initializing Java Language Server 0.1.0.201705312123

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:00.922
!MESSAGE >> workspace/didChangeConfiguration

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:01.650
!MESSAGE >>New configuration: {java={configuration={maven={userSettings=null}, updateBuildConfiguration=interactive}, errors={incompleteClasspath={severity=warning}}, home=null, jdt={ls={vmargs=-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication}}, referencesCodeLens={enabled=true}, trace={server=off}}}

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:01.655
!MESSAGE Importing Gradle project(s)

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:01.663
!MESSAGE >> document/didOpen
!SESSION 2017-06-03 16:46:10.907 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_131-1-redhat
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Command-line arguments:  -data C:\Users\Mackenzie\AppData\Roaming\Code\User\workspaceStorage\eec2e905684d7da75bbb15d11fbd8a81\redhat.java\jdt_ws

!ENTRY org.eclipse.core.resources 2 10035 2017-06-03 16:46:11.659
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:11.797
!MESSAGE class org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin is started

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:11.871
!MESSAGE >> initialize

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:11.875
!MESSAGE Initializing Java Language Server 0.1.0.201705312123

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:11.907
!MESSAGE >> workspace/didChangeConfiguration

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:12.524
!MESSAGE >>New configuration: {java={configuration={maven={userSettings=null}, updateBuildConfiguration=interactive}, errors={incompleteClasspath={severity=warning}}, home=null, jdt={ls={vmargs=-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication}}, referencesCodeLens={enabled=true}, trace={server=off}}}

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:12.528
!MESSAGE Importing Gradle project(s)

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:12.532
!MESSAGE >> document/didOpen

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:22.151
!MESSAGE begin problem for ModInfo.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:22.155
!MESSAGE end reporting for ModInfo.java

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:22.162
!MESSAGE >> document/codeAction

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:22.169
!MESSAGE >> workspace/didChangeWatchedFiles

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:22.186
!MESSAGE >> workspace/didChangeWatchedFiles

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:22.194
!MESSAGE >> workspace/didChangeWatchedFiles

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:22.199
!MESSAGE >> workspace/didChangeWatchedFiles

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:34.849
!MESSAGE >> document/didClose

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:34.852
!MESSAGE DocumentLifeCycleHandler.handleClosed

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:45.585
!MESSAGE >> java/projectConfigurationUpdate

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:45.590
!MESSAGE Starting Gradle update for souls

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:45.595
!MESSAGE Updated souls in 5 ms

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.037
!MESSAGE >> workspace/didChangeConfiguration

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.040
!MESSAGE >>New configuration: {java={configuration={maven={userSettings=null}, updateBuildConfiguration=interactive}, errors={incompleteClasspath={severity=warning}}, home=null, jdt={ls={vmargs=-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication}}, referencesCodeLens={enabled=true}, trace={server=off}}}

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.122
!MESSAGE >> workspace/didChangeConfiguration

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.129
!MESSAGE >>New configuration: {java={configuration={maven={userSettings=null}, updateBuildConfiguration=automatic}, errors={incompleteClasspath={severity=warning}}, home=null, jdt={ls={vmargs=-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication}}, referencesCodeLens={enabled=true}, trace={server=off}}}

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.262
!MESSAGE >> workspace/didChangeConfiguration

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.265
!MESSAGE >>New configuration: {java={configuration={maven={userSettings=null}, updateBuildConfiguration=automatic}, errors={incompleteClasspath={severity=warning}}, home=null, jdt={ls={vmargs=-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication}}, referencesCodeLens={enabled=true}, trace={server=off}}}

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.285
!MESSAGE >> workspace/didChangeWatchedFiles

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.295
!MESSAGE Starting Gradle update for souls

!ENTRY org.eclipse.jdt.ls.core 1 0 2017-06-03 16:46:46.300
!MESSAGE Updated souls in 6 ms

As a result of this, the dependencies don't seem to be downloaded because my java files contain lots of missing references.

贡献指南

打开贡献指南

从这里开始

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

调研方向

在 Windows 上使用列出的 JDK 和扩展版本,在 VS Code 中打开 Souls Minecraft mod,以重现该问题。从 Gradle 项目导入和配置更新附近的 Java language server log 开始;当配置循环停止、依赖项下载完成且 Java 引用得到解析时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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