www.digitalmars.com         C & C++   DMDScript  

D - Eclipse plugin?

reply Alex Fitzpatrick <alex.nospam.fitzpatrick videotron.nospam.ca> writes:
Has anyone looked into creating an Eclipse plugin for editing D?

Is there any other IDE yet?

-- 
Alex
Feb 12 2004
next sibling parent reply Brad Anderson <brad sankaty.dot.com> writes:
Alex Fitzpatrick wrote:
 Has anyone looked into creating an Eclipse plugin for editing D?
 
 Is there any other IDE yet?
 

Andy Friesen (http://ikagames.com/andy/d/) has already created a plugin for Eclipse.
Feb 12 2004
next sibling parent Alex Fitzpatrick <alex.nospam.fitzpatrick videotron.nospam.ca> writes:
Brad Anderson wrote:
 Alex Fitzpatrick wrote:
 
 Has anyone looked into creating an Eclipse plugin for editing D?

 Is there any other IDE yet?

Andy Friesen (http://ikagames.com/andy/d/) has already created a plugin for Eclipse.

Highlighting but no outline... hmm -- Alex
Feb 12 2004
prev sibling parent reply John Reimer <jjreimer telus.net> writes:
On Thu, 12 Feb 2004 21:22:16 -0600, Brad Anderson wrote:

 Alex Fitzpatrick wrote:
 Has anyone looked into creating an Eclipse plugin for editing D?
 
 Is there any other IDE yet?
 
 

for Eclipse.

I've never got it to work properly with the most recent development build of Eclipse (3.0M6 on either windows or linux). It cannot open a D file. Instead it displays an error in the editor window.
Feb 12 2004
parent reply Brad Anderson <brad sankaty.dot.com> writes:
John,

I'm working on that right now.  I have Andy's code and I'm taking a look. 
There 
were some changes to the Eclipse jar files that I'm tracking.  I'll post 
whatever I find here.

As for "highlighting but no outline" I don't know if I'll get to that.

Brad


 I've never got it to work properly with the most recent development build
 of Eclipse (3.0M6 on either windows or linux).  It cannot open a D file.
 Instead it displays an error in the editor window.
 

Feb 13 2004
next sibling parent Alex Fitzpatrick <alex.nospam.fitzpatrick videotron.nospam.ca> writes:
Brad Anderson wrote:
 John,
 
 I'm working on that right now.  I have Andy's code and I'm taking a 
 look.  There were some changes to the Eclipse jar files that I'm 
 tracking.  I'll post whatever I find here.
 
 As for "highlighting but no outline" I don't know if I'll get to that.
 
 Brad
 
 
 I've never got it to work properly with the most recent development build
 of Eclipse (3.0M6 on either windows or linux).  It cannot open a D file.
 Instead it displays an error in the editor window.


I'm currently running (one of) the JavaScript editor project(s). https://sourceforge.net/projects/jseditor/ Let me know if you need a hand. I'm going to be working on this for a while, but I would like to hand it off eventually and D looks like an interesting thing to play with. -- Alex
Feb 13 2004
prev sibling parent reply Brad Anderson <brad sankaty.dot.com> writes:
I actually was able to get Andy's plug-in to work with Eclipse 3.0 M6 without 
changing code.  I unzipped it to C:/eclipse/plugins (the zip started at C: and
I 
did it using folders), so all the files ended up in C:/eclipse/plugins.)

I restarted Eclipse and all the *.D files were associated with the D Editor 
which highlighted D code just fine.  I don't know what your issue is, but I've 
set this thing up on Win and Linux.  Let me know if you need further help.

My original reply was because I was in the code tinkering with the plug-in to 
see if I could get it to do more, like Alex was wanting.

I'll take a look at his JS plug-in and see if I can borrow some ideas.

Brad





Brad Anderson wrote:

 John,
 
 I'm working on that right now.  I have Andy's code and I'm taking a 
 look.  There were some changes to the Eclipse jar files that I'm 
 tracking.  I'll post whatever I find here.
 
 As for "highlighting but no outline" I don't know if I'll get to that.
 
 Brad
 
 
 I've never got it to work properly with the most recent development build
 of Eclipse (3.0M6 on either windows or linux).  It cannot open a D file.
 Instead it displays an error in the editor window.


Feb 15 2004
parent reply John Reimer <jjreimer telus.net> writes:
On Sun, 15 Feb 2004 14:02:28 -0600, Brad Anderson wrote:

 I actually was able to get Andy's plug-in to work with Eclipse 3.0 M6
 without changing code.  I unzipped it to C:/eclipse/plugins (the zip
 started at C: and I did it using folders), so all the files ended up in
 C:/eclipse/plugins.)
 
 I restarted Eclipse and all the *.D files were associated with the D
 Editor which highlighted D code just fine.  I don't know what your issue
 is, but I've set this thing up on Win and Linux.  Let me know if you
 need further help.
 
 My original reply was because I was in the code tinkering with the
 plug-in to see if I could get it to do more, like Alex was wanting.
 
 I'll take a look at his JS plug-in and see if I can borrow some ideas.
 
 Brad

I've tried it more than once and installed it the same way you did. It registers as an installed plugin after reloading eclipse. Whenever I try to file open a D file, the editor opens with an error message displayed. I can create a "new" D file and all the syntax highlighting works, but I can never open existing D files. I'll look into it again; I'll see if I can get it working on windows again... now that I think of it, I can't remember if I tried it there.
Feb 15 2004
parent reply Brad Anderson <brad sankaty.dot.com> writes:
On Linux, you may have some case sensitivity on the *.D files.  In the 
plugin.xml file, change the

extensions="d" attribute in the <editor> tag to lowercase.  Just a thought.

BA

P.S.  You ready to look at some dwt code?  I still have forward reference 
problems that are driving me crazy.



 I'll look into it again; I'll see if I can
 get it working on windows again... now that I think of it, I can't
 remember if I tried it there.

Feb 15 2004
parent reply John Reimer <jjreimer telus.net> writes:
Brad Anderson wrote:
 On Linux, you may have some case sensitivity on the *.D files.  In the 
 plugin.xml file, change the
 
 extensions="d" attribute in the <editor> tag to lowercase.  Just a thought.
 
 BA

Windows Eclipse has the exact same issues as on Linux. I'm getting annoyed with Eclipse. At first I thought it was neat. Now I find it frustratingly complex for simple tasks. What I want to do is simply open up a new D project. But then I probably can't do that if I'm currently in a default Java perspective (which seems to be active when I start eclipse). If I want to open a existing D file, it seems the only logical place to do it is using the File->Open External File... selection. When I do that, that's when the editor has an error and prints "ERROR" in the new document view. I can't seem to find any D views, perspectives, or project modes (perhaps currently are non existant with the D plugin?) to activate to make it all work. It's a major pain. I can't even find a straightforward way to add d files to a project. If the D plugin just turns Eclispe into a D editor, I can find simpler programs that do the same thing. I'm finding the whole eclipse interface confusing. And that's after spending some time reading documentation and experimenting. I'm finding nothing intuitive about eclipse at all. If this is the kind of IDE we are heading towards for D, I'm not looking forward to it. I think I'll just stick to something simple like SCite.
 P.S.  You ready to look at some dwt code?  I still have forward 
 reference problems that are driving me crazy.
 

Have you been using the makefile to compile? Send the files my way; I'll try to get to the bottom of some of the issues. Later, John
Feb 15 2004
parent reply Brad Anderson <brad sankaty.dot.com> writes:
You may want to be patient.  I've had some luck with Eclipse for Java, in fact, 
I really am impressed.  If we could enhance the current D plugin to have some
of 
the features in the Java development portion of Eclipse, I'd be thrilled.

I just don't know how to do it, and I'd like to get thru the other project 
first.  Alex is also finishing up work on the JS plugin, and then he may be
able 
to help.

For now, I have a few "simple projects", not Java projects, that hold my D 
stuff.  That may be one of your sticking points.  I have a hierarchy under the 
src folder, and I can single-click *.d files and they open up like a champ.  I 
also call 'make' with appropriate arguments as an External Tool.  The console
is 
captured, and all messages from the compiler are there for me.  I never leave 
Eclipse.  Syntax highlighting is also nice, but Alex is right.  It'd be nice to 
have an outline, code formatter, auto-complete like Intellisense in MSVS and 
code errors/warnings displayed in the Tasks/Problems area.  Hopefully we'll get 
there.

BA

 If the D plugin just turns Eclispe into a D editor, I can find simpler 
 programs that do the same thing.

 I'm finding the whole eclipse interface confusing. And that's after 
 spending some time reading documentation and experimenting.  I'm finding 
 nothing intuitive about eclipse at all.  If this is the kind of IDE we 
 are heading towards for D, I'm not looking forward to it.
 

Feb 15 2004
next sibling parent reply John Reimer <jjreimer telus.net> writes:
Brad Anderson wrote:
 You may want to be patient.  I've had some luck with Eclipse for Java, 
 in fact, I really am impressed.  If we could enhance the current D 
 plugin to have some of the features in the Java development portion of 
 Eclipse, I'd be thrilled.
 
 I just don't know how to do it, and I'd like to get thru the other 
 project first.  Alex is also finishing up work on the JS plugin, and 
 then he may be able to help.
 
 For now, I have a few "simple projects", not Java projects, that hold my 
 D stuff.  That may be one of your sticking points.  I have a hierarchy 
 under the src folder, and I can single-click *.d files and they open up 
 like a champ.  I also call 'make' with appropriate arguments as an 
 External Tool.  The console is captured, and all messages from the 
 compiler are there for me.  I never leave Eclipse.  Syntax highlighting 
 is also nice, but Alex is right.  It'd be nice to have an outline, code 
 formatter, auto-complete like Intellisense in MSVS and code 
 errors/warnings displayed in the Tasks/Problems area.  Hopefully we'll 
 get there.
 

Ok thanks for explaining that. I guess I was overreacting. I didn't realize the directory structure was critical. I was looking for ways to import d files into a new project in a separate directory. When I did what you said on the dwt src, it displayed all the d files properly. These opened properly in the editor view. Thanks! John R PS which "make" are you using? DMC's, Borland's, or GNU?
Feb 15 2004
parent Brad Anderson <brad sankaty.dot.com> writes:
DMC

 PS which "make" are you using? DMC's, Borland's, or GNU?

Feb 15 2004
prev sibling parent Alex Fitzpatrick <alex.nospam.fitzpatrick videotron.nospam.ca> writes:
Brad Anderson wrote:
 You may want to be patient.  I've had some luck with Eclipse for Java, 
 in fact, I really am impressed.  If we could enhance the current D 
 plugin to have some of the features in the Java development portion of 
 Eclipse, I'd be thrilled.
 
 I just don't know how to do it, and I'd like to get thru the other 
 project first.  Alex is also finishing up work on the JS plugin, and 
 then he may be able to help.

Can someone who's better at parsers than me create a semantic stack for D in Java? If you can do that, the rest is a piece of cake. -- Alex
Feb 15 2004
prev sibling parent reply Sark7 <sark7 mail333.com> writes:
On Thu, 12 Feb 2004 22:06:55 -0500, Alex Fitzpatrick 
<alex.nospam.fitzpatrick videotron.nospam.ca> wrote:
 Has anyone looked into creating an Eclipse plugin for editing D?

 Is there any other IDE yet?

I use Colorer for syntax highlighting, and CDT for error parsing and common management.
Feb 12 2004
parent reply Brad Anderson <brad sankaty.dot.com> writes:
Sark7 wrote:

 On Thu, 12 Feb 2004 22:06:55 -0500, Alex Fitzpatrick 
 <alex.nospam.fitzpatrick videotron.nospam.ca> wrote:
 
 Has anyone looked into creating an Eclipse plugin for editing D?

 Is there any other IDE yet?

I use Colorer for syntax highlighting, and CDT for error parsing and common management.

Are you getting the CDT to assign breakpoints and stop code execution? What components are you using? DMD - compiler DM Make - make ???? - debugger If not, do you know how to write the semantic stack that Alex is talking about? BA
Feb 16 2004
parent Sark7 <sark7 mail333.com> writes:
On Mon, 16 Feb 2004 09:53:22 -0600, Brad Anderson <brad sankaty.dot.com> 
wrote:

 Sark7 wrote:

 On Thu, 12 Feb 2004 22:06:55 -0500, Alex Fitzpatrick 
 <alex.nospam.fitzpatrick videotron.nospam.ca> wrote:

 Has anyone looked into creating an Eclipse plugin for editing D?

 Is there any other IDE yet?

I use Colorer for syntax highlighting, and CDT for error parsing and common management.

Are you getting the CDT to assign breakpoints and stop code execution? What components are you using? DMD - compiler DM Make - make ???? - debugger If not, do you know how to write the semantic stack that Alex is talking about? BA

I don't use any debugger for now :D I don't know anything about "semantic stack", I'm not guru in Eclipse plugin writing :/ And, I use MinGW make, it is much more powerful than DM's one. A bit more about Colorer, if you interested: Colorer is a Eclipse plugin that do highlighting and outlining, based on it's own HRC schemes. HRC describes language's highlighting/outling in regular expressions. I create my own HRC scheme for D and use it. I think, dedicated D plugin would be much better, but as temporary solution Colorer works :)
Feb 16 2004