View previous topic :: View next topic |
Author |
Message |
gtbass
Joined: 22 Jul 2004 Posts: 7 Location: Austin, TX
|
Posted: Thu Jul 29, 2004 1:34 am Post subject: Configuring Eclipse to Build D |
|
|
Ok, I've got Eclipse running and the eclipseD plugin installed. Now I'm trying to figure out how to get Eclipse to interact with DMD. I'm reading a ton of stuff about Ant, but it's hard to digest. Maybe I'm just impatient, but it sure would help to have some guidelines.
What do I do next? Do I use Ant, or setup DMD as an External Tool? With Ant, will I have to edit a build.xml file every time I add a file to my project? Without Ant, how would I get DMD to build a multi-module project?
Many thanks for eclipseD, and thanks in advance for any answers to these questions.
Best regards,
Garett |
|
Back to top |
|
|
teqdruid
Joined: 11 May 2004 Posts: 390 Location: UMD
|
Posted: Thu Jul 29, 2004 9:30 am Post subject: Building |
|
|
Ant is for Java. I could be used to run DMD, but it's really not the right tool. I'm using Scons (www.scons.org) to build my D projects. It supports DMD natively. I haven't however, intergrated it into Eclipse. I just keep a console open, and run it that way.
My (near) future plans for eclipseD are integrating building, so each time you save a file, it runs dmd -c on it, collects the errors, and shows them like the Java Editor does. It could also put them in the Problems view. The other way to do it, is for me to write a Scons build tool, so Eclipse can run scons. Right now, I'm thinking the latter is the way for me to do it, since I think right now the way people are doing it is using the CDT makefile support and writing makefiles. Am I correct? Comments? |
|
Back to top |
|
|
brad Site Admin
Joined: 22 Feb 2004 Posts: 490 Location: Atlanta, GA USA
|
Posted: Fri Jul 30, 2004 6:53 pm Post subject: Re: Building |
|
|
demmegod wrote: | I just keep a console open, and run it that way. |
I set both SCons and Make up as external tools and it works fine. The output is captured to the Console view.
demmegod wrote: |
My (near) future plans for eclipseD are integrating building, so each time you save a file, it runs dmd -c on it, collects the errors, and shows them like the Java Editor does. It could also put them in the Problems view. The other way to do it, is for me to write a Scons build tool, so Eclipse can run scons. Right now, I'm thinking the latter is the way for me to do it, since I think right now the way people are doing it is using the CDT makefile support and writing makefiles. Am I correct? Comments? |
I would prefer running dmd -c and put the errors in Problems view. Also, hopefully, a double-click on the Problems view takes you to that file/line.
BA _________________ I really like the vest! |
|
Back to top |
|
|
teqdruid
Joined: 11 May 2004 Posts: 390 Location: UMD
|
Posted: Fri Jul 30, 2004 11:45 pm Post subject: problems |
|
|
Code: | I would prefer running dmd -c and put the errors in Problems view. Also, hopefully, a double-click on the Problems view takes you to that file/line. |
That's the plan, plus I wanna underline the problem area, and show it on the two bars, etc... |
|
Back to top |
|
|
misterpib
Joined: 14 Jan 2005 Posts: 7 Location: Corvallis, OR
|
Posted: Sat Jan 22, 2005 3:43 am Post subject: |
|
|
Also, look into Markers for putting a little error icon to the left of the line where the error was made.
I've been reading up on the Eclipse API and whatnot, it's pretty slick. |
|
Back to top |
|
|
Sark7
Joined: 02 Jun 2004 Posts: 9 Location: Russia
|
Posted: Wed Jan 26, 2005 9:21 pm Post subject: Re: Building |
|
|
I use CDT for building. Good think that CDT can hide .obj files from project tree. And, it parses compile errors, show errors in Problems window and highlights these errors in sources. It doesn't catch DMD link errors, however.
It will be great if EclipseD will have these features. |
|
Back to top |
|
|
Baldur
Joined: 29 Apr 2004 Posts: 4 Location: Germany
|
Posted: Wed Feb 02, 2005 6:24 pm Post subject: |
|
|
I have started to add CDT-Extensions to eclipseD.
Currently, I have only one configuration for a Windows-EXE project and not all compiler settings are supported ... but, it works When I'm saving my .d file, CDT creates a makefile and compiles the complete project. |
|
Back to top |
|
|
brad Site Admin
Joined: 22 Feb 2004 Posts: 490 Location: Atlanta, GA USA
|
Posted: Wed Feb 02, 2005 6:32 pm Post subject: |
|
|
Sweet. Keep it coming.
If you want me to try anything, I'd be happy to. I'm running Eclipse 3.0 on Gentoo Linux... |
|
Back to top |
|
|
Baldur
Joined: 29 Apr 2004 Posts: 4 Location: Germany
|
Posted: Thu Feb 03, 2005 6:20 pm Post subject: |
|
|
Should work with linux, too.
Maybe I try to install a linux system with eclipse in the next days to test it.
If you want, I can mail you the current state of the extensions. |
|
Back to top |
|
|
brad Site Admin
Joined: 22 Feb 2004 Posts: 490 Location: Atlanta, GA USA
|
Posted: Thu Feb 03, 2005 6:24 pm Post subject: |
|
|
That's fine. brad at dsource dot org |
|
Back to top |
|
|
|