eclipse-xtext / eclipse-xtext/xtext

Rename refactoring does not trigger build

Open
#2,435 11 comments 0 reactions 1 assignee View on GitHub

@szarnekow is already working on this.

Since May 13, 2019.

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

Description

Hi.

Even though the following example is written in Xtend, I'm pretty sure it might be a general Xtext-problem, since I've noticed a similar problem with my own language:

  1. Create file Foo.xtend:
package bug
class Foo {
	public String name
}
  1. Create file Bar.xtend:
package bug
class Bar {
	def static void main(String[] args) {
		val foo = new Foo
		println(foo.name)		
	}
}
  1. Open Xtext Build Console
  2. Rename field name to name2 in class Foo. You will notice the Xtext Build Console does not log anything
  3. Open Bar.xtend
  4. Modify the file in the editor (e.g. insert a line feed somewhere). foo.name2 is now marked with an error marker.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.