Line numbers not updating on 2nd monitor - Eclipse STS 2.8.1RELEASE - OS X Lion - eclipse

I'm currently developing on a Macbook Pro running Lion, and I'm having an issue where line numbers (and all other features that are on that panel including breakpoints, section hiding/expanding, etc) don't scroll with the source code in the editor.
I found this filed bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=294929), but what I need to do to fix this isn't clear. I'm hoping to avoid a re-install and re-import of all my projects and other plug-ins.
Thoughts? Is it an STS issue (not really sure what version of Eclipse STS relates to)?

Check what version of Eclipse you are running off of. Did you install STS from the installer or the zip? Or did you start with a vanilla eclipse and use the update sites?
This problem happened with Eclipse 3.7.0 and Lion. This was a bug in SWT, but I believe that it is fixed in 3.7.1.
To find the Eclipse version click on :
STS -> about STS -> Installation details -> plugins -> org.eclipse.swt.
It should be 3.7.0 or 3.7.1 or 3.7.2. If it is 3.7.0, then you should update to 3.7.2 (released last week).

Just to make this clearer, my "solution" was to change display settings so that my 2nd monitor was my main one.
If somebody comes up with a better solution, I'll un-check this and check the new response.

Related

How to prevent upgraded Eclipse Oxygen from automatically downgrading

I'm trying to Upgrade Eclipse Neon to Oxygen on Windows 10.
I started Eclipse with Administrator privileges and then followed the instructions described in the Eclipse Wiki.
The upgrade runs without errors and prompts for a restart. After the restart, Oxygen comes up without errors and everything seems fine. But when I close Eclipse and start it again, it's back to Neon, duh.
Oh, how I miss Arch Linux's pacman...
I had the same problem. Every restart after the initial upgrade from Neon to Oxygen, I got a "Requirements Update" dialog that prompted me to downgrade some of my components from 4.7 to 4.6 after which point I was back on Neon. Oops. Apparently "Oomph" still thought I should be on Neon and was trying to "fix" things.
I followed the following step outlined here:
https://www.eclipse.org/forums/index.php/t/1082235/
open the Installation setup (Navigate -> Open Setup -> Installation)
and in the properties view change the product version to say Oxygen
After I did this, Oomph left me on Oxygen after this.
I "solved" the problem by
downloading the Oxygen installer,
installing Eclipse Oxygen as a separate instance,
installing all the plugins I need in Oxygen,
exporting the preferences from Neon and importing them in Oxygen.
A bit annoying, but it works and is probably still way more effective than figuring out what is going wrong with Eclipse's upgrade mechanism...

PyDev not showing up in Eclipse

I just installed Eclipse Kepler (after an issue with a faulty update in Juno) and tried to install PyDev using the Install New Software option in Eclipse. Basically just following memory/online tutorials. After installing I can't see it in my Preferences pane. Any ideas why that might be so?
Thanks.
Yes, I have Java 7 installed.
UPDATE: A lot of users have suggested numerous solutions to this problem. There may be more than one correct answer below. See what helps you...
Too much!
After wasting 4 hours trying to install PyDev 3, I moved back to 2.8.2 and used the drop in technique instead of Add new software and it now works!
Download 2.8.2 from sourceforge
http://sourceforge.net/projects/pydev/files/pydev/
Uninstall PyDev.
Simply unzip the contents into the dropins folder below eclipse.
Restart eclipse.
After struggling with this problem for some days I wanted to share my solution to the problem - inspired by the above posts (kudo's to them).
My Configuration:
MacBook Air (intel) with OS X 10.9
Eclipse: Kepler SR1 installed (zip file extracted in the Applications folder)
My situation:
Tried to install PyDev via Eclipse Help --> Install new software...
Installation was succesfull, but PyDev didn't show up anywhere in Eclipse.
My solution:
In Eclipse go to Help --> Install new software...
Uncheck "Show only the latest versions of available software"
Select PyDev the usual way, but install the latest 2.x version instead of the 3.x version
Apparently PyDev 3.0 does not work with the default OS X configuration of Eclipse, Java and Python (don't exactly know why, though...)
I just figured it out.
You will need JDK rather than a JRE.
Download it here first:JDK Download
Install it.
Explore /Applications/eclipse/Eclipse.app/Contents/MacOS (where you put your Eclipse)
Open eclipse.ini
add
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
You will change the version according to your situation.
Enjoy!
It happened to me too, but using Debian stable (wheezy, in my case).
I solved installing doing:
# apt-get install openjdk-7-jdk
After this, I checked that I had two alternatives of Java JDK:
# update-java-alternatives -l
And the output was:
java-1.6.0-openjdk-amd64 1061 /usr/lib/jvm/java-1.6.0-openjdk-amd64
java-1.7.0-openjdk-amd64 1051 /usr/lib/jvm/java-1.7.0-openjdk-amd64
Finally, I did:
# update-java-alternatives -s java-1.7.0-openjdk-amd64
After that, I removed pydev plugin from Eclipse, reboot Eclipse, install pydev (using Marketplace), reboot Eclipse, and now it works.
Credits:
http://vas.davimas.name/2013/07/switching-between-openjdk-v6-and-v7-in.html and Richard's answer, above
Most likely you do not have java 7 or > eclipse 3.7 installed on your machine it is a requirement of pyDev 3 see here http://pydev.blogspot.co.uk/2013/11/pydev-30.html
The PyDev.org website states (http://pydev.org/manual_101_install.html) --
"""
Important requisite
PyDev now requires java 7 in order to run. If you don't have java 7, the update
process may appear to succeed, but PyDev will simply not show in the target
installation. Please double-check if you're using a java 7 vm in
about > installation details > configuration
before trying to install PyDev.
"""
This problem started to appear in my Eclipse after I removed the Java 7 runtime from my system (because the Java code I am building needs to run on an older version of Java, but that's unrelated). After I realized that I had lost PyDev, I reinstalled Java 7 and PyDev is working fine now.
Another option would be to rollback to the previous version of PyDev that does not require Java 7, but it would require a manual installation of PyDev and I would lose the convenience of automated updates. The best way forward, it seems, to run run Eclipse on Java 7 and switch those Java projects that need to depend explicitly on Java 6 to that JDK/JRE.
How I was able to get pydev to work in mac/eclipse is download the latest JDK as mention 100 times above install it and then do the following.
open eclipse choose preferences > java > installed JREs
click on "Search..." button it will auto populate the JDK 1.7 you just installed
Click ok
have a beer!
-Cheers!
Solved.
OSX Mavericks 10.9, Eclipse Keplar 4.3.2, PyDev 3.4
Problem: PyDev not showing up under Ecplise > preferences
Solution: Download, install and point Ecplise to JDK 1.7
Unistall PyDev
Under Eclipse > preferences > Installed JREs you probably only see Java SE 6
Download and install JDK 1.7 from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
open terminal and run "/usr/libexec/java_home -v 1.7"
this will return the directory in which JDK 1.7 reside, something like /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
Under Eclipse > preferences > Installed JREs click "add", select "MacOS X VM", click "next"
in JRE Home paste your version of /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home, give it a name and click "Finish"
Restart Eclipse and re-install PyDev.
Voila!
I had the same issue on Luna and found my mistake.
After checking the author in "Do you trust these certificates?" page, and I was able to successfully install pydev.
The page lets you proceed without checking it, and no error occurs and it was where I totally missed. Maybe it is useful for someone.
You can move back to 2.x.x:
Eclipse -> About Eclipse then click "Installation Details" button.
From "Installation History" tab choose last installation.
Click Revert button.
You will go back to chosen installation.
I managed to get the following to work with Eclipse IDE for Java Developers 4.4.1 Luna on OS X 10.9.5 Mavericks:
Download and install the latest version of the JDK (currently Java SE 8u25) from http://www.oracle.com/technetwork/java/javase/downloads/index.html. (Not the JRE!)
Navigate to /Applications/eclipse/Eclipse.app/Contents/MacOS (or wherever you have Eclipse installed) and open eclipse.ini.
Append the following to the bottom of the file (be sure to replace the version number with yours):
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java
Download the latest version of PyDev (currently 3.8.0) from SourceForge at http://sourceforge.net/projects/pydev/files/pydev/.
Unzip its contents to /Applications/eclipse/dropins (or wherever you have Eclipse installed) and restart Eclipse.
Hope this helps anyone who's still having the issue. Special thanks to Mohammed Lokhandwala and braineo.
Aha , It is solved just now.I show it in the following.
First , I use MyEclipse with jdk1.8,maybe some people dont know that Eclipse (or MyEclipse) has its own jvm , what is not "jdk" you downloaded and installed and the "built-in jvm" is default. You can check this out by clicking like this " Windows-->preferences-->Java-->Installed JREs" And I found my MyEclipse used the default jdk1.6 .Then I click "add" to build path of my installed jdk1.8 .
Second , I opened the configuration file named "myeclipse.ini" and check this in the following.
binary/com.sun.java.jdk.win32.x86_64_1.6.0.u43/bin/javaw.exe
Third , I replaced it with new path . Check the following out. It is new path.
D:/jdk/java/jdk1.8/bin/javaw.exe
Last , restart it .And you can find "PyDev" in "Preference".
Happy Coding with Python!
PS:Pycharm is good,and you can get it for free if you are a student or a teacher. click here
I was experiencing the same problem using java 1.7.0_101.
Updated to 1.8.0_91 and "voilá"! PyDev finally appeared.
After trying all of the listed ways to work with 1.7 I was still seeing error message when Eclipse tried to open the editors and navigators on startup. But when I created a new project it worked. Then I tried just closing all editors and reopening them and they too work. The navigator had also set itself to working set and showed nothing. When I switched that to projects it also started working.
The same thing happened to me. This is how i fixed it.
Click on "install new software" - it's under help.
Click on " what is already installed"
Uninstall PyDev
Reinstall PyDev BUT instead of the 3.3XX version, install the latest 2.XX version (i.e click on the drop down menu and select the latest 2.XX version)
It worked for me!
So I tired many of the suggestion above, and I think what finally got it to work is instal the JDK from: http://www.oracle.com/technetwork/java/javase/downloads/index.html. You might also need to uninstall the pydev plugin and reinstall it again. But after install the JDK 8, I got the Pydev to show up under preference.
menu Help > Install New Software...
don't fill "works with" but click on Add...
In the next screen, add the update site of PyDev and PyDev Extensions:
Name : PyDev and PyDev Extensions
Location: http://pydev.org/updates
and go on...
pydev 3 is buggy! Use 2.8 and you should be fine.
I also had this problem, wanted to use python3.4 as interpreter and it wasn't compatible with pydev 2.8 so after a few trials I found out that if you install pydev 2.5 everything works fine !! (At least on Eclipse Kepler).
I know this thread is old but I thought I might contribute my solution because none of the suggestions above worked for my Mac running Yosemite [10.10.2]. I hope this will be helpful to someone else. Despite updating to the latest JDK my mac kept reporting a wrong version. It turns out the symlink was point to the old version and fixing that issue got my pydev/eclipse working.
Find out the current default Java version
Java -version
Get installed versions
/usr/libexec/java_home -V
Navigate to the following folder and delete the current symlink
cd /System/Library/Frameworks/JavaVM.framework/Versions/
rm CurrentJDK
Create a new symlink pointing it to the newer installation substituting 'new-version' with appropriate version from 2 above. i.e jdk1.8.0_40.jdk
ln -s /Library/Java/JavaVirtualMachines/<new-version>/Contents/ CurrentJDK
Confirm your default version
Java -version
Restart.
Happy coding.. :)
I had to uninstall pyDev 3 and install 2.8 to get this working with Eclipse (V 4.4) and Yosemite (V 10.10)
The easiest way is just getting http://www.liclipse.com/ which has everything setup from the start... if you don't want to go that route (as LiClipse is commercial) you may want to try to specify the java 7 install manually:
Grabbed from http://pydev.org/download.html:
Well, the main issue at this time is that PyDev requires Java 7 in order to run. So, if you don't want to support PyDev by going the LiClipse route (which is mostly a PyDev standalone plus some goodies), you may have to go through some loops to make sure that you're actually using Java 7 to run Eclipse/PyDev (as explained below).
All OSes
Make sure you download/install the latest Java 7 JRE or JDK, try restarting to see if it got it automatically.
I.e.: in help > about > installation details > configuration check if it's actually using the java 7 version you pointed at.
If it didn't get it automatically, follow the instructions from:
http://wiki.eclipse.org/Eclipse.ini to add the -vm argument to eclipse.ini on "Specifying the JVM" to specify the java 7 vm.
Note on Mac OS: You can use the command "/usr/libexec/java_home -v 1.7" to get the base path for the JVM (though you also need to append "/bin/java" to the output of said command to the -vm arg in eclipse.ini).
Solution
Using standard Eclipse installation method:
In Install New Software, Add a new site to Work With. I called my entry PyDev Old and entered the Location:
https://dl.bintray.com/fabioz/pydev/old/site.xml
That has PyDev for Eclipse versions 2.8.2 to 4.5.3
Details
I am working with Indigo (3.7) and so need a version of PyDev that is older than 3.0.0. My JDK is 7 as noted elsewhere in this question. The option for Show only the latest versions of available software is turned off.
The standard advice for getting PyDev is to use http://pydev.org/updates and turn off the only latest option. That now only lists PyDev 5.
I had the same issue!
Just update all three SWs to the latest version and it will solve the problem.
Do like this:
update Eclipse to Luna Service Release 2 (4.4.2) 64-bit, then
PyDev - Python IDE for Eclipse 5.1.2 from Eclipse Marketplace and then
download and update the Java SE Development Kit 8u92 64-bit
It should work well now!
I had the same issue in Eclipse 4.4. Had to use a previous version of PyDev. It simply seems to be a matter of using the correct Java JRE/JDK and PyDev for the version of Eclipse you're running.
From http://www.pydev.org/
Release 5.2.0
Important PyDev now requires Java 8 and Eclipse 4.5 onwards.
PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8.
See: update sites page (http://www.pydev.org/update_sites/index.html) for the update site of older versions of PyDev.
Oct 2016:
Installed fresh new copy of Java JDK 1.8.0_102 took care of the incompatible OSX JRE 1.6
Installed fresh copy of Eclipse Neon 4.6.1
Followed pydev manual: http://www.pydev.org/manual_101_install.html
all working fine now...
First install and setup following applications as these are mentioned in above answers:
Jave (version 8 or greater)
Eclipse(version Neon/Oxygen or greater)
PyDev in Eclipse
Now go through following steps:
Eclipse -> Window -> Perspective -> Open Perspective -> Other..
Select PyDev in the list.
Click Open.
Now you are all set.
Cheers!!!
Make sure you install the 64-bit version of Eclipse if you can. If so you should be able to use the latest version of Pydev without any problem.

How can I upgrade the eclipse version my STS is using?

I downloaded STS 3.2.0 with Juno 3.8 a month a go. Last week it updated my STS to 3.3.0 without automatically.
I've checked that Kepler 4.3 has come out and would like to upgrade my STS installation to use that. I don't want to just install the new package from the website as I loose all my configs and such when I do that.
Can anyone help?
Edit:
Or can anyone explain to how I can copy my settings etc. to a new installation of STS?
I don't know STS. In a normal Eclipse installation, you can run Help -> Install New Software, add the Kepler update site using the "Available sites" link, close the dialog, run Help -> Check for Updates and Eclipse will update everything it can find, under the condition of not breaking dependencies.
Your settings are not lost, if you use your old workspace with your new installation (as the majority of settings has workspace scope and is stored within it). Therefore you can also try the following: Install a newly downloaded version of Kepler besides your existing Eclipse. Then in the new installation run File -> Import -> Installation -> From existing to have it automatically copy plugins from the old installation to the new one. Afterwards install whatever is missing using the installation menus described at the top or using Help -> Marketplace.
I just upgraded my STS from 3.3 to 3.5. The following method worked fine.
Open STS > Help > Check for updates > Choose the latest version and install (lists all plugins available for upgrade as well as STS).
Open STS(Spring Tools Suite)-> Help -> Check for Updates -> it will automatically updates with latest version.
Version: STS 3.8.0 requires a JDK 8 to run on top of.
STS 3.9.0 requires a JDK 8 to run on top of.
STS 3.9.4 requires a JDK8/9/10 to run on top of.
STS 3.9.6 requires a JDK8/9/10/11 to run on top of.

lint4j installation on Eclipse Juno

Has anyone had success installing lint4j on Eclipse Juno and having the options show up in the preferences pane? My installation shows the lint4j entry in the tree view but there are no options available for it.
Eclipse 4.2 64 bit on Mac OSX
tl;dr : Check Update 2 below. I think I might have found the problem.
I have the same setup as you do (OSX Mountain Lion + Eclipse Juno Java EE 64 Bit)
I just tried installing lint4j on my spanking new Eclipse Juno (Java EE). Please take a look at this screencast to see how it went.
After installing I had no errors in the Error Logs (as in the video) and my Eclipse preferences had a Lint4j preference option (which did not have any options though) :
I followed the exact same steps for Eclipse Indigo and got the exact same results. So looks like the problem may not be with Eclipse (Indigo / Juno) but with the plugin or the OS we are trying this under. I noticed that the official snapshot too has a the 'missing' options :
Update
This, from here, seems ominous :(
Lint4j has been developed and tested extensively on MacOSX 10.2 and
10.3
And we are trying it out on OSX 10.6 or 10.7 and 10.8 !!
I have just registered to their mailing list (mailto:majordomo#jutils.com), will put up a question there regarding this. Hope we are not missing something obvious from Lint4j's documentation.
Update 2
Ah mate, I think I found the problem. We are looking in the wrong place !! I realized this after going through the lint4j intro here.
There are no options to configure in Eclipse preferences. All the lint4j options are available on the project. So if you go into a Java project's properties, there you see the Lint4j preference and the expected options like so :

Eclipse Version

How do you check the current version of eclipse that I am currently running? Is it possible to tell if it is aqua or carbon (I am running Mac OS X 10.5)?
My eclipse has a file .eclipseproduct in its' main folder which contains:
name=Eclipse Platform
id=org.eclipse.platform
version=3.4.0
Perhaps that might help?
Edit: Couldn't find any useful command-line switch for that task.
In case anyone has installed one of the 'bundled' versions of Eclipse (e.g. bundled with EE development tools as below) and is still looking, the steps below will show the 'bundled' version and the platform version (and other component versions also):
First select 'About Eclipse' from the Eclipse menu:
then select 'Installation details from the box below'
Next click on the triangle against 'Eclipse IDE for Java EE Developers' below to expand it:
And now you should be able to read the version numbers, as below:
By now of course you may be wondering if everything else in the IDE is this obscure...
They don't make it very clear. They could do a better job of clarifying which release name and version number you're are working with.
Can't you just go Help -> About Eclipse
(source: uni-kassel.de)
(ignore the actually selected menu)
Eclipse Menu -> About Eclipse SDK
Some of you are right, the developer version it is not very clear.
Anyway, go to help and then About Eclipse a new window opens then go to Installation details and click on the installation window Installed Software tab you would see the version.
I too have struggled a lot to get version number of Eclipse. Also as discussed in other posts we can easily get the name but NOT the version number. I found a more simpler way to get the version number:
Each Eclipse installation directory in your system has a html readme file at eclipse/readme/readme_eclipse. Just open that and you will notice the first 2 lines of the html file has version details.
eclipse Juno
Release 4.2.0 ;
Last revised June 8th, 2012
Eclipse Indigo
Release 3.7.2 ;
Last revised Feb 7, 2012
Eclipse Helios
Release 3.6.2 ;
Last revised February 10, 2011
There is a system property eclipse.buildId (for example, for Eclipse Luna, I have 4.4.1.M20140925-0400 as a value there).
I'm not sure in which version of Eclipse did this property become available.
Also, dive right in and explore all the available system properties -- there is quite a bit of information available under eclipse.*, os.* osgi.* and org.osgi.* namespaces.
On my mac it took me a while, but it is actually easy.