Renaming a variable leads to entire contents of the file editor being replaced with one word- Error

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

在同时包含 JavaScript 和 Java 文件的嵌套 Gradle 项目中重现重命名操作,包括报告中提到的两行 JavaScript 文件。将 Error Log、Problems view 和 language-server Console 与非嵌套项目进行比较;当重命名不再将打开的编辑器内容替换为“Error”,且修改后的内容无需重新打开文件即可保持可见时,即表示完成。

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

描述

I tried setting up an new project in my workspace and tried editing a JS file by refactoring (renaming) a variable which led to the entire contents of the file being replaced with just one word 'Error'. I would have to close the file and open it again to see its modified contents, which are correct.

What I've observed:

  1. I've observed that this only happens in a nested Gradle project which contains both Java and JavaScript files. I tried the same in a different project (not a Gradle project with sub-projects) and it worked without any issues.
  2. I created a new file in my project with just one small function with two lines and the same thing happened again.
  3. There are no unique errors reported in the 'Error Log' or 'Problems' view when comparing the two projects (one where the issue occurs and the other where it doesn't).
  4. I enabled printing language server logs to the 'Console' view and observed that there was no mention of words 'error' or 'parse' in the Console.
  5. I predicted it would be an issue with JSDT, so I downloaded Spring Tools Eclipse IDE which doesn't contain JSDT and I still get the same issue.

Any help would be appreciated.
Thank you for developing this project.

主要语言
Java
星标
203
派生
76
平均合并
1 天 5 小时
30 天内合并 PR
30

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

eclipse-wildwebdeveloper/wildwebdeveloper 的其他 Issue

查看 eclipse-wildwebdeveloper/wildwebdeveloper 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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