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

オープン
#1,974 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, javascript
領域
devtools

調査の方向性

JavaScript ファイルと Java ファイルの両方を含むネストされた Gradle プロジェクトで、報告された 2 行の JavaScript ファイルも含めて rename を再現します。ネストされていないプロジェクトと Error Log、Problems view、language-server Console を比較します。rename によって開いているエディターの内容が「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時間
マージ済み PR(30日)
30

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-wildwebdeveloper/wildwebdeveloper のほかの issue

eclipse-wildwebdeveloper/wildwebdeveloper の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。