Giter Club home page Giter Club logo

Comments (5)

synapse-overload avatar synapse-overload commented on September 16, 2024 3

In order to temporarily fix this I replaced the xtend version with a newer one:
...
<xtend-version>2.15.0</xtend-version>
...
in the capicxx-core-tools/org.genivi.commonapi.releng/pom.xml file and ran the build again from the org.genivi.commonapi.core.releng folder.

from capicxx-core-tools.

mixxer avatar mixxer commented on September 16, 2024 1

@razvan-ciochina
Thank you! works as well :-) 👍

from capicxx-core-tools.

CalebProvost avatar CalebProvost commented on September 16, 2024

Same problem here, however, @razvan-ciochina 's fix isn't working for me...

I was able to build after additionally adding <xtext-version>2.15.0</xtext-version> and implementing this fix.

Also, this issue arises on Ubuntu 18.04_64 as well.
However, I didn't appear to have this issue earlier this month. My assumption is the yocto GDP build I did, or the upgrade of the Boost Libs to 1.73.0 might have had something to do with it.

Potential Patch:

diff --git a/org.genivi.commonapi.releng/pom.xml b/org.genivi.commonapi.releng/pom.xml
index 53e762b..d356af7 100644
--- a/org.genivi.commonapi.releng/pom.xml
+++ b/org.genivi.commonapi.releng/pom.xml
@@ -10,7 +10,8 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <forceContextQualifier>v${maven.build.timestamp}</forceContextQualifier>
         <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
-        <xtend-version>2.7.3</xtend-version>
+        <xtend-version>2.15.0</xtend-version>
+        <xtext-version>2.15.0</xtext-version>
     </properties>
 
     <pluginRepositories>
@@ -85,28 +86,49 @@
                 <artifactId>tycho-versions-plugin</artifactId>
                 <version>${tycho-version}</version>
             </plugin>
-            <plugin>
-                <groupId>org.eclipse.xtend</groupId>
-                <artifactId>xtend-maven-plugin</artifactId>
-                <version>${xtend-version}</version>
-                <dependencies>
-                    <dependency>
-                        <groupId>org.eclipse.platform</groupId>
-                        <artifactId>org.eclipse.equinox.common</artifactId>
-                        <version>3.10.0</version>
-                    </dependency>
-                </dependencies>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
-                        <configuration>
-                            <outputDirectory>${basedir}/xtend-gen</outputDirectory>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
+<plugin>
+       <groupId>org.eclipse.xtend</groupId>
+       <artifactId>xtend-maven-plugin</artifactId>
+       <version>${xtext-version}</version>
+       <executions>
+               <execution>
+                       <goals>
+                               <goal>compile</goal>
+                               <goal>xtend-install-debug-info</goal>
+                               <goal>testCompile</goal>
+                               <goal>xtend-test-install-debug-info</goal>
+                       </goals>
+               </execution>
+       </executions>
+       <configuration>
+               <outputDirectory>${basedir}/xtend-gen</outputDirectory>
+               <testOutputDirectory>${basedir}/xtend-gen</testOutputDirectory>
+       </configuration>
+       <!-- Workaround for https://github.com/eclipse/xtext/issues/1231 -->
+       <!-- Remove with upgrade to Xtext 2.15 -->
+       <dependencies>
+               <dependency>
+                       <groupId>org.eclipse.jdt</groupId>
+                       <artifactId>org.eclipse.jdt.core</artifactId>
+                       <version>3.13.102</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.eclipse.jdt</groupId>
+                       <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
+                       <version>1.3.110</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.eclipse.jdt</groupId>
+                       <artifactId>org.eclipse.jdt.compiler.tool</artifactId>
+                       <version>1.2.101</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.eclipse.emf</groupId>
+                       <artifactId>org.eclipse.emf.codegen</artifactId>
+                       <version>2.11.0</version>
+               </dependency>
+       </dependencies>
+</plugin>
         </plugins>
     </build>
 </project>

from capicxx-core-tools.

AzadaShams avatar AzadaShams commented on September 16, 2024

Hello,

I have been having the same problem on Ubuntu 20.04 (64 bit System) with Eclipse version 4.16. I changed the Xtend version to 2.22.0 and then Tycho version to 1.7.0, but I got the following error:

Failed to execute goal org.eclipse.tycho:tycho-p2-director-plugin:1.5.0:materialize-products (materialize-products) on project org.genivi.commonapi.core.cli.product: Installation of product org.genivi.commonapi.core.cli.product for environment win32/win32/x86 failed: Call to p2 director application failed with exit code 13. Program arguments were: [-metadataRepository, file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/targetPlatformRepository/, -artifactRepository, file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/,file:/resolution-context-artifacts@%252Froot%252Fcapicxx-core-tools%252Forg.genivi.commonapi.core.cli.product,file:/root/capicxx-core-tools/org.genivi.commonapi.console/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.console.feature/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.console.franca.feature/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.feature/target/,file:/root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/,file:/root/.m2/repository/, -installIU, org.genivi.commonapi.core.cli.product, -destination, /root/capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/products/org.genivi.commonapi.core.cli.product/win32/win32/x86, -profile, DefaultProfile, -profileProperties, org.eclipse.update.install.features=true, -roaming, -p2.os, win32, -p2.ws, win32, -p2.arch, x86]. -> [Help 1]
Could this error be related to 64 bit systems of eclipse and Ubuntu? Are these generators available only for 32 bit versions of Ubuntu and Eclipse ?
Also, I tried installing CommonApI generators through the given update sites in the user guide. However, the .fidl file was not transformed to C++ code? Please let me know what could have gone wrong!

from capicxx-core-tools.

lutzbichler avatar lutzbichler commented on September 16, 2024

Ubuntu 20.04 / x64 is fine. The xtend version was updated for v3.2.0

from capicxx-core-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.