Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

marriage of eclipse & xds modula-2

14 views
Skip to first unread message

neo

unread,
Aug 28, 2005, 12:52:51 PM8/28/05
to
Hello all,

I'm just so happy about my latest (today) experiment that I want to share
this info :-)

May be this is trivial for you - but it wasn't obvious for me. This group
seems not to be high volume so I try to post that.

One can use Eclipse development platform to develop Modula-2 applications
under Linux that's all.

As far as I know Eclipse is an open development environment mainly used
for java development (?) and has some nice features like project
management, CVS, resource editors etc.

-> See www.eclipse.org/org/index.html for details.

The most important thing with Eclipse is, that it is extensible. One can
add new "tools" and the system will use them the same way as any other
pre-configured tools.

What I did was simply to select 'Run->External Tools' menu and add the
following new external tool:

Name: XDS
Location: /usr/local/xds/bin/xc
Working Directory: ${container_loc}
Arguments: =m ${container_loc}/${resource_name}
Checkmark Run tool in background: yes

Now there is a new tool "XDS" which compiles modula-2/oberon-2 files.
You have to install XDS before ;-)

In the Window->Preferences->Workbench->File Associations I added *.def and
*.mod linked to the buildin text editor.

Now I can create new projects, add some modula-2 .mod and .def files and
compile them using a click on "Run XDS" button. xc will create a
makefile on the fly. The Eclipse console window will log all xc output. If
there are errors one can identify the line from the xc output and click
into the editor window to correct that. It is possible to show line
numbers within the build in editor and locate the error easily.

Compiled symbol & object files and executables will be placed into the
project folder because the "Working Directory" uses ${container_loc}
buildin variable. You can redefine this as you want using a fixed path or
some other combination of the variables given.

The buildin editor has some nice features like bookmarking a line and
quickly jump to that bookmark, finding expressions and all found locations
will be marked by a yellow arrow on the left side of the editor window.

You can define "tasks" about things to do etc. all the things one can do
in such an comfortable environment.

You see I'm glad to find a "no cost" development environment running on my
favourite os Linux and using my favourite programming language Modula-2.

Currently I'm looking for a way to directly jump into the source code to
the first error location encountered during compilation - but even without
that the Eclipse environment is more comfortable than to open several
shells using xc in one window and vi etc. in some other to do the
edit-compile-edit circle.

If you know some additional trick's using this environment or you know of
something different which provides a Modula-2 development system,
I would be glad to hear this from you - thanks!

Have a nice day!
neo

qnr

unread,
Oct 17, 2005, 12:52:50 AM10/17/05
to
On Sun, 28 Aug 2005 12:52:51 -0400, neo wrote:
[snipped]


Nice job :) Now I just have to decide whether I want to install Java so I
can try.

--
Terry Ross | qnr | <terry at aliboom dot com> | http://linux.aliboom.com
Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D
Source Mage GNU/Linux: http://www.sourcemage.org - Tome team & News Guru

qnr

unread,
Oct 21, 2005, 5:33:14 PM10/21/05
to
On Sun, 28 Aug 2005 12:52:51 -0400, neo wrote:
[snipped...]

Well, I've installed it, and it works :) - but I must be an old fogey, it
just seems like more trouble to me. Maybe my opinion will change after I
use it for a while though.

Terry

0 new messages