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

Đang mở
#1,974 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java, javascript
Lĩnh vực
devtools

Hướng nghiên cứu

Tái hiện thao tác đổi tên trong một dự án Gradle lồng nhau chứa cả tệp JavaScript và Java, bao gồm tệp JavaScript hai dòng được báo cáo. So sánh Error Log, Problems view và language-server Console với một dự án không lồng nhau; được xem là hoàn tất khi thao tác đổi tên không còn thay thế nội dung của trình soạn thảo đang mở bằng “Error” và nội dung đã sửa đổi vẫn hiển thị mà không cần mở lại tệp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
203
Fork
76
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
30

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-wildwebdeveloper/wildwebdeveloper

Tất cả issue của eclipse-wildwebdeveloper/wildwebdeveloper

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.