Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eavp-dev] Problems building EAVP in IDE

Hi EAVP devs,

I am having a couple of problems building EAVP in the IDE. I am
EclipseCon Europe and there are a few other folk interested too.

What I am doing is importing all January projects from the EAVP git
repo (github.com:eclipse/eavp.git) into Neon.1 that has JDT + XText
Complete SDK.

However I get the following errors:
Description Resource Path Location Type
The import org.eclipse.january.geometry.xtext.services.IGESGrammarAccess
cannot be resolved IGESParser.java
/org.eclipse.january.geometry.xtext.iges.ide/src-gen/org/eclipse/january/geometry/xtext/ide/contentassist/antlr
line 12 Java Problem
The import org.eclipse.january.geometry.xtext.services.IGESGrammarAccess
cannot be resolved InternalIGESParser.java
/org.eclipse.january.geometry.xtext.iges.ide/src-gen/org/eclipse/january/geometry/xtext/ide/contentassist/antlr/internal
line 13 Java Problem

plus 165 errors with the same message (at different locations in the file)
Description Resource Path Location Type
IGESGrammarAccess cannot be resolved to a type IGESParser.java
/org.eclipse.january.geometry.xtext.iges.ide/src-gen/org/eclipse/january/geometry/xtext/ide/contentassist/antlr
line 21 Java Problem

Additionally I get these errors preventing other parts from building:
Description Resource Path Location Type
Project 'org.eclipse.january.geometry.xtext.vtk.ide' is missing
required source folder: 'src'
org.eclipse.january.geometry.xtext.vtk.ide Build path Build Path
Problem
Project 'org.eclipse.january.geometry.xtext.vtk.ide' is missing
required source folder: 'xtend-gen'
org.eclipse.january.geometry.xtext.vtk.ide Build path Build Path
Problem
The project cannot be built until build path errors are resolved
org.eclipse.january.geometry.xtext.vtk.ide Unknown Java Problem
Description Resource Path Location Type
The project was not built since it depends on
org.eclipse.january.geometry.xtext.vtk.ide, which has build path
errors org.eclipse.january.geometry.xtext.vtk.ui Unknown Java Problem
Description Resource Path Location Type
Project 'org.eclipse.january.geometry.xtext.vtk.ui.tests' is missing
required source folder: 'src'
org.eclipse.january.geometry.xtext.vtk.ui.tests Build path Build Path
Problem
Project 'org.eclipse.january.geometry.xtext.vtk.ui.tests' is missing
required source folder: 'xtend-gen'
org.eclipse.january.geometry.xtext.vtk.ui.tests Build path Build Path
Problem
The project cannot be built until build path errors are resolved
org.eclipse.january.geometry.xtext.vtk.ui.tests Unknown Java Problem


The advice I got from Torkild is that the xtend generated files should
be checked in. I have been experimenting with this, but it does not
take long before things go wrong even doing that.

One thing that has been successful is adding the dependencies like this:
diff --git a/org.eclipse.january.geometry.xtext.iges.ide/META-INF/MANIFEST.MF
b/org.eclipse.january.geometry.xtext.iges.ide/META-INF/MANIFEST.MF
index 8c93ad8..5a66a0b 100644
--- a/org.eclipse.january.geometry.xtext.iges.ide/META-INF/MANIFEST.MF
+++ b/org.eclipse.january.geometry.xtext.iges.ide/META-INF/MANIFEST.MF
@@ -13,11 +13,11 @@
  org.antlr.runtime;version="3.2.0",
  org.eclipse.emf.ecore,
  org.eclipse.emf.ecore.util,
- org.eclipse.january.geometry.xtext.services,
  org.eclipse.xtext,
  org.eclipse.xtext.ide.editor.contentassist.antlr,
  org.eclipse.xtext.ide.editor.contentassist.antlr.internal,
  org.eclipse.xtext.ide.editor.partialEditing,
  org.eclipse.xtext.parser.antlr,
  org.eclipse.xtext.util
+Require-Bundle: org.eclipse.january.geometry.xtext.iges;bundle-version="0.1.1"

That does seem to work, but goes against your stated desire to not use
Require-Bundle*.

Thanks
Jonah

* Markus Duft has been at ECE and previously at ECF presenting
"Succeed with Eclipse: Large Scale"
https://www.eclipsecon.org/europe2016/session/succeed-eclipse-large-scale
In it he shows how they have banned Import-Package because of the
negative effects of using it at scale on the resolution complexity and
therefore their IDE and integration build times. His hude application
is able to build very fast as a result of removing them. Of course
there are dissenting voices, especially due to ECE actually being the
OSGi event too :-)
~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com


Back to the top