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

Aperta
#1,974 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java, javascript
Ambito
devtools

Direzione di ricerca

Riproduci la ridenominazione in un progetto Gradle annidato contenente sia file JavaScript sia file Java, incluso il file JavaScript di due righe segnalato. Confronta Error Log, Problems view e language-server Console con un progetto non annidato; l’attività è completata quando la ridenominazione non sostituisce più il contenuto dell’editor aperto con “Error” e il contenuto modificato rimane visibile senza riaprire il file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Java
Stelle
203
Fork
76
Merge medio
1g 5h
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-wildwebdeveloper/wildwebdeveloper

Tutte le issue di eclipse-wildwebdeveloper/wildwebdeveloper

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.