Doing a Clean Build on Xtext 2.9.1 [message #1752556] |
Wed, 25 January 2017 01:58  |
Eclipse User |
|
|
|
I just created a new Xtext Project with Eclipse Mars (Xtext 2.9.1)
When I generate the MWE2 Workflow, some new files were automatically generated (TestRuntimeModule.xtend and TestStandaloneSetup.xtend). These files are in the src folder. I stored all the files in a git repo, except for the generated folders (src-gen, xtend-gen and bin). But my problem is, if I do a clean clone from the repo, where the TestRuntimeModule and TestStandaloneSetup is already there, I keep getting compiler errors even if I delete all the errors and do a clean build. Refershing the workspace also did not help.
The console shows that build is successful, the src-gen and xtend-gen directories are created, and the expected files are also there, but there are all the red x icons beside the files, and under the Problems tab, a list of errors are shown.
Description Resource Path Location Type
AbstractTestRuntimeModule cannot be resolved to a type. TestRuntimeModule.xtend /test/src/org line: 10 /test/src/org/TestRuntimeModule.xtend Xtend Problem
AbstractTestScopeProvider cannot be resolved to a type. TestScopeProvider.xtend /test/src/org/scoping line: 13 /test/src/org/scoping/TestScopeProvider.xtend Xtend Problem
AbstractTestValidator cannot be resolved to a type. TestValidator.xtend /test/src/org/validation line: 12 /test/src/org/validation/TestValidator.xtend Xtend Problem
Package 'org.parser.antlr.internal' does not exist in this plug-in MANIFEST.MF /test/META-INF line 27 Plug-in Problem
Package 'org.parser.antlr' does not exist in this plug-in MANIFEST.MF /test/META-INF line 25 Plug-in Problem
Package 'org.serializer' does not exist in this plug-in MANIFEST.MF /test/META-INF line 24 Plug-in Problem
Package 'org.services' does not exist in this plug-in MANIFEST.MF /test/META-INF line 19 Plug-in Problem
Package 'org.test.impl' does not exist in this plug-in MANIFEST.MF /test/META-INF line 18 Plug-in Problem
Package 'org.test.util' does not exist in this plug-in MANIFEST.MF /test/META-INF line 23 Plug-in Problem
Package 'org.test' does not exist in this plug-in MANIFEST.MF /test/META-INF line 22 Plug-in Problem
Superclass must be a class TestRuntimeModule.xtend /test/src/org line: 10 /test/src/org/TestRuntimeModule.xtend Xtend Problem
Superclass must be a class TestScopeProvider.xtend /test/src/org/scoping line: 13 /test/src/org/scoping/TestScopeProvider.xtend Xtend Problem
Superclass must be a class TestStandaloneSetup.xtend /test/src/org line: 10 /test/src/org/TestStandaloneSetup.xtend Xtend Problem
Superclass must be a class TestValidator.xtend /test/src/org/validation line: 12 /test/src/org/validation/TestValidator.xtend Xtend Problem
TestStandaloneSetupGenerated cannot be resolved to a type. TestStandaloneSetup.xtend /test/src/org line: 10 /test/src/org/TestStandaloneSetup.xtend Xtend Problem
The method createInjectorAndDoEMFRegistration() is undefined for the type TestStandaloneSetup TestStandaloneSetup.xtend /test/src/org line: 13 /test/src/org/TestStandaloneSetup.xtend Xtend Problem
Any idea what I can do to fix this?
|
|
|
|
|
|
|
|
Re: Doing a Clean Build on Xtext 2.9.1 [message #1752572 is a reply to message #1752571] |
Wed, 25 January 2017 04:03  |
Eclipse User |
|
|
|
@Christian, I know, it does not make sense also. I can actually see the classes already but the editor cannot seem to detect it. Maybe, the problem is with Eclipse.
I am using Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600.
Anyway, changing back to Java seems to work for me now.
|
|
|
Powered by
FUDForum. Page generated in 0.46986 seconds