Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Fri, 10 Jan 2020 07:58:44 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bsS+TyPvd9gREsHqGA0KnzZolERSHQgJhvs82cBVBsU=; b=noX4oBh8bRZxykPoapwbgZQB87Nc2b4yDGUvPw26ThofIUt/ZJtjgqVYN9SWiNqv7gJ9cejIFaL9ePXACk3M8lH3CbFoPvmh9mOyAHyN3hTH991V5ldITjVAUcDr3t/WwnK3I6tq2CS2CZG91FMMFROyOObtEoKItMqVcnKzpxRTCDA5VaVcIRW7MKwQDdCA6T17pdNo9yzSQKfJZAKv03uiOueWmmhP6XI6OCNDnJbL2RFnBb+P/c+fhRQeDkqKhock5S4t0wr+E/zr3aH5gRIngRAUOsGG74HE0CLe7o7C9Ko2E7Kd/Bz5++wHFfXyYKFXnnSLYMOToScdbq9NYw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OuP4iHJ+H/+R5qb5uHWQpKjxKrzeI6jRvWjiKN6ahW1fcQ3itP+Spv7sj3Gbrhx92+VUq1m/IqfCDTos34mrnIPyMc+EQCyfoUmYfk26ipv9ZAyMxFVOmKsfYBLxky2gxCQobNhJ37BvlKASXcBpDUINnaFl5F8CWsJl/1BTqG3DYEVuunSswfhhANuFqDzWU5ZHRPsDpUOvxiUUYNJ5mpiwFFfFBDIeD6+kw3hN3IXwl7ullEp8Nbj4392gXpjoeV4ytxaIrVCP1aabhVouMPyiq+JC/+7TlAUZEuwNJEaQph2cpNF+BAtlJW3sL5mxCU9HFeL68TZDus/IiP022A==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVqwsPman4yV3TP06y8wYySKvP3qeqyVwAgA0X656AAAg4AIAEX/kDgACj6ICAASpIK4AAX7CAgADAhK+AACe9mYAALVUAgAACiv6AATrMUIAAAZEAgAANKZSAAAzMAIAAGUtjgAAK8p2AAAWOT4AeDb/ngAAKFqmAATN9ioAAJXo0gABEnICAAPTc/oAA4f6AgAEksxs=
  • Thread-topic: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

Hi Jonah Graham,

 

I visited (https://github.com/eclipse-cdt/cdt-infra/wiki) but still don’t know how to apply your patches like the Dockerfiles and Jenkinsfiles. Would you please kindly list detail steps?

 

Thanks.

 

Sent from Mail for Windows 10

 

From: Jonah Graham
Sent: Thursday, January 9, 2020 10:29 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

OK, that should do the trick.

 

> Cannot run program "yarn" (in directory "C:\Users\mcheng\git\org.eclipse.cdt\debug\org.eclipse.cdt.debug.dap\debug-servers"): CreateProcess error=2, The system cannot find the file specified

 

 

"The system cannot find the file specified" is, IIRC, the error message that is returned from the win32 API - but it basically means that yarn cannot be found.

 

Note that I just noticed you are building on Windows - while it should work, and I will gladly merge any patches to fix it, the maven/tycho poms are only developed and run on Linux, which is what is used on the build machine too. You could use Docker images, as the build machine does, to have a matching environment. That will include all the tools needed. The Dockerfiles and Jenkinsfiles are in the cdt-infra git repo (https://github.com/eclipse-cdt/cdt-infra/wiki)

 

 

Thanks,

Jonah


~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com

 

 

On Wed, 8 Jan 2020 at 20:00, Ming Cheng <chengm349@xxxxxxxxxxx> wrote:

Cannot run program "yarn" (in directory "C:\Users\mcheng\git\org.eclipse.cdt\debug\org.eclipse.cdt.debug.dap\debug-servers"): CreateProcess error=2, The system cannot find the file specified

 

Tells me no yarn or no a particular file?

 

I installed yarn

 

C:\Users\mcheng>yarn -v

1.21.1

 

C:\Users\mcheng>yarn --version

1.21.1

 

C:\Users\mcheng>

 

Sent from Mail for Windows 10

 

From: Alexander Fedorov
Sent: Wednesday, January 8, 2020 6:23 PM
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Hi,

You need to have "yarn" in your %PATH% , https://yarnpkg.com/lang/en/

Regards,
AF

08.01.2020 9:34, Ming Cheng пишет:

Hi,

 

I tried “mvn package” command again and got this error:

 

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  02:15 min

[INFO] Finished at: 2020-01-08T14:26:51+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project org.eclipse.cdt.debug.dap: An Ant BuildException has occured: The following error occurred while executing this line:

[ERROR] C:\Users\mcheng\git\org.eclipse.cdt\debug\org.eclipse.cdt.debug.dap\BuildDebugServers.xml:5: Execute failed: java.io.IOException: Cannot run program "yarn" (in directory "C:\Users\mcheng\git\org.eclipse.cdt\debug\org.eclipse.cdt.debug.dap\debug-servers"): CreateProcess error=2, The system cannot find the file specified

[ERROR] around Ant part ...<ant antfile="BuildDebugServers.xml" target="BuildDebugServers"/>... @ 4:68 in C:\Users\mcheng\git\org.eclipse.cdt\debug\org.eclipse.cdt.debug.dap\target\antrun\build-main.xml

[ERROR] -> [Help 1]

 

On my PC, I can use explore to access  https://download.eclipse.org:443

The attached file has all detail information generated from the command mvn.

 

Thanks.

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Wednesday, January 8, 2020 12:08 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

 

cid:image001.png@01D5C61C.1781BCA0

 

Maven Runtime can’t be changed. Should I use an older Eclipse Committer?

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Tuesday, January 7, 2020 5:43 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

I also tried maven within Eclipse:

 

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) on project org.eclipse.cdt.core.native: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:

[ERROR] Detected Maven Version: 3.6.3 is not in the allowed range [3.6.0,3.6.0].

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

 

Must be 3.6.0?

 

Thanks.

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Tuesday, January 7, 2020 5:14 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Hi,

 

I followed the instruction below:

 

Building the CDT p2 repository

You can generate your own CDT zip using Maven.

·         Install Maven if not already installed (mvn command). Maven 3.3 or greater is required.

·         In command line, change the directory to the cdt git directory (the top folder that contains a pom.xml file)

·         Run "mvn package". This will take a lot longer the first time because it needs to download a lot of things. If it seems stuck on a download and you're behind a proxy, make sure that you set your Maven proxy settings.

·         If the build is succesful, the zip will be in org.eclipse.cdt/releng/org.eclipse.cdt.repo/target/org.eclipse.cdt.repo.zip

·         Go to Install new software, click Add, Archive and browse for to the zip

You should now be able to install or update CDT using your modified code.

 

But encountered these error:

 

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR]   The project org.eclipse.cdt:cdt-parent:9.10.0-SNAPSHOT (/fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml) has 126 errors

[ERROR]     Child module /fs02/home/mcheng/workspace/org.eclipse.cdt/build/org.eclipse.cdt.build.gcc.core/pom.xml of /fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml does not exist

[ERROR]     Child module /fs02/home/mcheng/workspace/org.eclipse.cdt/build/org.eclipse.cdt.build.gcc.ui/pom.xml of /fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml does not exist

[ERROR]     Child module /fs02/home/mcheng/workspace/org.eclipse.cdt/build/org.eclipse.cdt.make.core/pom.xml of /fs02/home/mcheng/workspace/org.eclipse.cdt/pom.xml does not exist

 

Really there are no pom.xml under org.eclipse.cdt.build.gcc.core etc.

 

I was advised not to use Maven to build CDT p2 but so far not ok with Eclipse neither.

 

My interpretation of the directory to the cdt git directory is org.eclipse.cdt with these content:

 

[mcheng@pioneer org.eclipse.cdt]$ ls

build  core   debug                       doc  dsf-gdb  launch  lrparser  memory  pom.xml  releng  testsrunner  upc   visualizer  xlc

codan  cross  disable_intro_in_tests.ini  dsf  jtag     llvm    lsp       native  qt       remote  toolchains   util  windows

 

 

Thanks.

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Thursday, December 19, 2019 2:11 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

We may ignore UMLet part. What I want to achieve now is to compile original CDT code successfully. Then I may add one comment line and can still compile ok. Hope make sense.

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Thursday, December 19, 2019 1:54 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

To me before I could change anything in CDT src, what I want to achieve is:

 

  • Get CDT src from Eclipse repo
  • Compile it and get those jars.

 

Article/tutorial are all great but most time they could not bring a newbie to be expert.

 

My Eclipse env

 

Eclipse IDE for Java Developers

 

Version: 2019-09 R (4.13.0)

Build id: 20190917-1200

 

CDT branch is 9.10.0.

 

What’s the ABC steps to generate all CDT jars?

 

Thanks.

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Thursday, December 19, 2019 1:13 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

I’ll go through the tutorial.

 

Now it’s an experimental try. If it’s successful, it may become a internal tool (kind of commercial) .

 

I asked UMLet, they did not bother.

 

Sent from Mail for Windows 10

 

From: Jonah Graham
Sent: Thursday, December 19, 2019 11:40 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Have a look at this great tutorial on how to write eclipse plugins. Some of it goes into issues that you don't need to know about yet, so focus on chapters 1 to 5 to start, and have a look at 17 to 22 for more topics. As you become more experienced you can revisit the other chapters. 

 

https://www.vogella.com/tutorials/EclipsePlugin/article.html

 

BTW, it sounds like your goal is to extend umlet? Have you engaged anyone from that project yet? As they already have eclipse plugins, they may have better advice on how to edit their own code. I/we can try to point you in the right direction of how to use CDT code, but as you seem to be going off the beaten path you are probably going to have to figure your own way through on most of this. 

 

PS what is the context of your work. For example is this for a commercial product, open source project or academic work? 

 

Thanks, 

Jonah 

 

On Wed., Dec. 18, 2019, 22:01 Ming Cheng, <chengm349@xxxxxxxxxxx> wrote:

·         In the editor that just opened, click Set as Target Platform on the top right.

Eclipse will now download the required dependencies, which may take some time the first time. Once this is done, it should trigger a full build of your workspace and a lot of errors should go away.

Issue 1

I couldn’t Set as Target Platform on the top right.

However I can see a lot of .class files being generated.

 

Launching

After all the CDT projects have successfully built, you'll probably want to run and/or do source-level debugging of the CDT code. Open the PDE (Plug-in Development Environment) perspective:  Window->Perspective->Other->"Plug in Development". There, you'll see a project with the name org.eclipse.cdt.ui, right click the org.eclipse.cdt.ui project, select "Run As"->"eclipse application". You should see a new instance of eclipse - with the latest version of eclipse CDT plugins.

 

Issue 2

I couldn’t follow the above steps bcos I can’t find a project with the name org.eclipse.cdt.ui.

 

 

Issue 3.

 

How to generate jar files like these:

 

 

Sent from Mail for Windows 10

 

From: Jonah Graham
Sent: Thursday, December 19, 2019 10:07 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

It's in releng/org.eclipse.cdt.target, try importing it directly. Here is the link to it in the git browser:

 

https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/tree/releng/org.eclipse.cdt.target

 

On Wed., Dec. 18, 2019, 21:02 Ming Cheng, <chengm349@xxxxxxxxxxx> wrote:

o set the target platform:

·         Expand the "org.eclipse.cdt.target" project.

·         Double-click on cdt.target.

·         In the editor that just opened, click Set as Target Platform on the top right.

 

When clone and import, I selected all, but still can’t see “org.eclipse.cdt.target" project.

Now I am using 9.10.0

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Wednesday, December 18, 2019 3:15 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Got it and thanks Christian.

 

Sent from Mail for Windows 10

 

From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Christian Walther <walther@xxxxxxxx>
Sent: Wednesday, December 18, 2019 3:05:20 PM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

 

Ming Cheng wrote:
> I don’t know how to dynamically debug Eclipse plugin code

> ...

> I tried to build with command:

> mvn clean install

> but with a lot of error (please refer to the attached file).

I'm not sure, but at a glance it could be that your Maven and/or Tycho are too old for pom-less building. Look inside the top-level pom.xml, it mentions some versions.

However, for debugging it is more convenient to build in Eclipse (PDE) than with Maven. It is described very well in https://wiki.eclipse.org/Getting_started_with_CDT_development .

 -Christian
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

 

 

 

 

 

 

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 


Back to the top