wakatime / eclipse-wakatime

Eclipse plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/eclipse
BSD 3-Clause "New" or "Revised" License
174 stars 16 forks source link

Eclipse Update Site not working #6

Closed rknall closed 9 years ago

rknall commented 9 years ago

I am trying to install WakaTime on Eclipse. Using the given URL https://raw.githubusercontent.com/wakatime/eclipse-wakatime/master/update-site/ I only get a 400:Bad Request error.

Has the URL changed?

leodutra commented 9 years ago

Weird part: Eclipse still finds it.

alanhamlett commented 9 years ago

@rknall that's a problem with older versions of Eclipse which don't support the latest update site spec. Eclipse shouldn't actually go to that url, it should check for a site.xml file in that url's folder.

leodutra commented 9 years ago

There's many people working here with IBM RAD 8.5. It wraps an Eclipse 3.6. Any ideas on how to fix it?

I've never developed an Eclipse plugin but I can try to help you if you show me the way.

alanhamlett commented 9 years ago

I just tested with Eclipse v3.6.2 and the update site link above works fine. @rknall, which version of eclipse are you using?

leodutra commented 9 years ago

@alanhamlett, @rknall probably tried to install from the update site.

My 3.6 finds and downloads Wakatime, but fails on local install because of missing Apache HttpClient and HttpCore.

screenshot from 2015-06-24 11 52 34

Accessing the update site URL with a browser shows the 404 error. It happens for me too.

screenshot from 2015-06-24 11 53 25

eclipse.buildId=unknown java.fullversion=JRE 1.7.0 IBM J9 2.6 Linux amd64-64 Compressed References 20120809_118929 (JIT enabled, AOT enabled) J9VM - R26_Java726_SR2_20120809_0948_B118929 JIT - r11.b01_20120808_24925 GC - R26_Java726_SR2_20120809_0948_B118929_CMPRSS J9CL - 20120809_118929 BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product com.ibm.rational.rad.product.v85.ide Command-line arguments: -os linux -ws gtk -arch x86_64 -product com.ibm.rational.rad.product.v85.ide

rknall commented 9 years ago

The URL still leads to a 400 Site error for me. I have now installed Mars, which was released in June, and after adding the Site, during the initial request, the installer tells me the following:

Unable to read repository at https://raw.githubusercontent.com/wakatime/eclipse-wakatime/master/update-site/content.xml. Unable to read repository at https://raw.githubusercontent.com/wakatime/eclipse-wakatime/master/update-site/content.xml. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Weird thing, on my PC at home it was working fine, but not for the last 2-3 days.

btw, If I search for the site.xml file in that path, I can open it with a browser. But eclipse mars insists on reading a content.xml . And one more thing, cmakeed, which does not provide a content.xml at their upgrade site as well (http://cmakeed.sourceforge.net/eclipse) works fine. But it leads to a valid 404 error instead of a 400 error if you try to access the content.xml. I think that could be the issue, that the error message eclipse receives after asking the site (400) is not the one it might expect

leodutra commented 9 years ago

content.xml 404 for me too.

screenshot from 2015-06-25 11 35 56

alanhamlett commented 9 years ago

Yes, this is normal and part of Eclipse update site protocol. Eclipse looks for a site.xml file at that url, which exists:

https://raw.githubusercontent.com/wakatime/eclipse-wakatime/master/update-site/site.xml

That's why the plugin installs in eclipse even though the url https://raw.githubusercontent.com/wakatime/eclipse-wakatime/master/update-site/ returns a 404.

alanhamlett commented 9 years ago

@rknall maybe github was having an issue when returning a 400... it returns a 404 for me.

leodutra commented 9 years ago

Problem solved updating IBM Rational Developer to 8.5.5.2. That's why I "love" IBM.