Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Setting up Eclipse: Difference between revisions

From MoodleDocs
(net.sourcegorge.phpeclipse.ui.prefs)
(Under Team -> CVS -> SSH2 Connection Method)
Line 63: Line 63:
_php_include_paths=.
_php_include_paths=.
and work.
and work.
== Under Team -> CVS -> SSH2 Connection Method ==
I found this to be '''General -> Network Connections -> SSH2 -> Key Management''' (the documentation is updated).
After generating a DSA key, and following the rest of the instructions, I finally finish setting up Eclipse.

Revision as of 13:39, 15 May 2008

Really nice work, Tim, thanks! I've been through and I'm trying it out. Martin Dougiamas 09:05, 5 September 2006 (CDT)


The stuff about changing editors under General -> Editors -> File Associations doesn't work any more if an Eclipse plugin has 'locked' a file type or content type. Not sure how to fix this --Andy Baker 06:40, 28 November 2006 (CST)

Hopefully it will be the PHP plugin, and it will have locked *.php to the setting you want anyway. If not, can you tell us exactly what you are seeing.Tim Hunt 04:24, 29 November 2006 (CST)

Problems with Ubuntu 6.10...

I'd really like to switch completely to Linux and Eclipse on my Moodle developments. However, I can't get the PHPEclipse plug-in to work with Eclipse 3.2 that came with Ubuntu 6.10. After the Eclipse restart required by the "add . to the include path" tweak, the "PHPEclipse stuff" is gone from the menus (forgot what it said), and when I try to open a PHP file in Eclipse I get: "Failed to execute runnable (java.lang.NoClassDefFoundError: net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor)" and "Unhandled event loop exception"... Going to Google around a bit, but there seems to be a lot of other issues with the JVM also: Eclipse crashed when I tried to search the help, for example. --Samuli Karevaara 04:07, 20 December 2006 (CST)

Just reporting that now the error message has changed to "Problems occurred when invoking code from plug-in: "org.eclipse.jface"." or I was reading the wrong part of the error log before... --Samuli Karevaara 04:11, 20 December 2006 (CST)
One headache later I was able to get Eclipse to open the PHP files. Apparently it was about the Java Runtime Environment version after all. I had "sun-java5-bin : Sun Java(TM) Runtime Environment (JRE) 5.0" package installed but it didn't help. After completely removing everything "Java 1.4" ("j2re1.4" and friends) and upgrading "libgjc" packages I got it to work. I reeeeally not a friend of Java versioning and library packaging! --Samuli Karevaara 06:05, 20 December 2006 (CST)

Ubuntu Eclipse Improvements

Just found this: http://wiki.liferay.com/index.php/Liferay_Development_Environment:_Ubuntu_Linux#Eclipse_IDE

It may help a bit.

There is a problem wiht the different java VM. If you set that the vm is the one of sun it must be like this everywere I did that:


  $ sudo aptitude install eclipse-sdk

Remove any reference to gcj in

    /etc/eclipse/java_home.

edit the file /usr/bin/eclipse and comment

   -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.1/classmap.db et 
  -Dgnu.gcj.runtime.VMClassLoader.library_control=never.

For me now eclipse runs with no problem

Prefs file missing?

Working through this bit:

 Open the file net.sourceforge.phpeclipse.ui.prefs that is in the directory (your
 workspace)/.metadata/.plugins/org.eclipse.core.runtime/.settings in a text editor.

the file is not there. net.sourceforge.phpeclipse.prefs is present, but does not have the line described.

Also,

 Under Team -> CVS -> SSH2 Connection Method,

this path does not exist (working on Xandros with linux eclipse)

Matt Gibson 16:48, 17 January 2008 (CST)

net.sourcegorge.phpeclipse.ui.prefs

Note that in the documentation is: - Look for a line in the file that starts _php_include_paths= If it is not there, add it at the end.

In my case, it was nothing there, so I add the line _php_include_paths=. and work.

Under Team -> CVS -> SSH2 Connection Method

I found this to be General -> Network Connections -> SSH2 -> Key Management (the documentation is updated).

After generating a DSA key, and following the rest of the instructions, I finally finish setting up Eclipse.