eclipse-xtext / eclipse-xtext/xtext

[LSP] The incremental builder occasionally deletes generated files

Open
#2,545 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
831
Forks
330
Avg merge
3d 7h
Merged PRs (30d)
12

Description

It does not happen with the clustering builder state in Eclipse.

https://github.com/eclipse/xtext-core/blob/efa0ddbde33a67fb9d685ffc1cb5359d35bc6982/org.eclipse.xtext/src/org/eclipse/xtext/build/IncrementalBuilder.xtend#L175-L179

For the language I am currently working, there is some black magic that out of nothing generates a file inside the gen folder. Now, this is cleaned up by the incremental builder.

I try to come up with a stripped down example (if no, just mention me) soon. I wanted to open this issue before I forget it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with org.eclipse.xtext/src/org/eclipse/xtext/build/IncrementalBuilder.xtend at lines 175-179, where the issue reports generated files are cleaned up. Reproduce the behavior with a stripped-down language example and compare it with the clustering builder state in Eclipse. Done means the incremental builder no longer deletes files generated in the gen folder unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.