pitest / pitclipse

Mutation testing for Java in Eclipse IDE. Based on PIT (Pitest).
https://pitest.org
Apache License 2.0
59 stars 17 forks source link

Unable to install via Eclipse #189

Closed BenjaminGroseclose closed 2 years ago

BenjaminGroseclose commented 2 years ago

Bug description

Unable to install Pitclipse via Eclipse Marketplace image

Expected behavior

To be able to install via the Eclipse Marketplace

How to reproduce

Steps to reproduce the behavior:

  1. Go to Help -> Eclipse Marketplace
  2. Search for pitclipse
  3. Click on install
  4. See error

Additional context

LorenzoBettini commented 2 years ago

It might be a temporary network problem... can you please try again?

BenjaminGroseclose commented 2 years ago

Still am seeing the same issue.

LorenzoBettini commented 2 years ago

I've just tried that and I get a different error:

image

That's because pitclipse depends on google.guava. There's already an open issue to get rid of such a dependency (https://github.com/pitest/pitclipse/issues/136) but for the time being, we have to deal with that.

Now after the failure, the update sites (both the pitclipse and the orbit one, which contains the required google.guava) have been automatically added to your Eclipse. So you can install Pitclipse with "Install new software", making sure you select all the available sites and that you check to contact all the update sites:

image

Sorry for the inconvenience.

justin-firestone commented 2 years ago

I am encountering this issue but still cannot install when I check to contact all update sites. Is there a specific link to the guava libraries I should add to my list of sites?

LorenzoBettini commented 2 years ago

Doesn't it find guava at all or the specific required version?

justin-firestone commented 2 years ago

I get the exact same error message you received from your screenshot.

I'm not familiar with building Eclipse plugins. Is there a way to download the guava library and include it in a build path locally? I tried that by downloading the .jar and adding the local directory for it, but still the same error message.


From: Lorenzo Bettini @.> Sent: Monday, June 27, 2022 12:01 AM To: pitest/pitclipse @.> Cc: Justin Firestone @.>; Comment @.> Subject: Re: [pitest/pitclipse] Unable to install via Eclipse (Issue #189)

Non-NU Email


Doesn't it find guava at all or the specific required version?

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/pitest/pitclipse/issues/189*issuecomment-1166847759__;Iw!!PvXuogZ4sRB2p-tU!B2qLnSuxCKt5sLdHfpRkintWGOySD1GZLtgD6aWsfZnCgwwFcygaIdVT7yEdl1qiz-gUIepBBS1Suh5ol17YS11Ut18$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AQTCCSIMXVRLLKNTV4QEIYDVREYSZANCNFSM5OTLNG3A__;!!PvXuogZ4sRB2p-tU!B2qLnSuxCKt5sLdHfpRkintWGOySD1GZLtgD6aWsfZnCgwwFcygaIdVT7yEdl1qiz-gUIepBBS1Suh5ol17Yn1aGf3A$. You are receiving this because you commented.Message ID: @.***>

LorenzoBettini commented 2 years ago

Before installing pitclipse in eclipse, you can manually add this update site https://download.eclipse.org/tools/orbit/downloads/2021-06/ and guava will be found with the required version.

MahatmaFatalError commented 2 years ago

download.eclipse.org/tools/orbit/downloads/2021-06

Before that I got

An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.google.guava,21.0.0.v20170206-1425
No repository found containing: osgi.bundle,com.sun.xml.bind,2.2.0.v201505121915

Now I get

An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.sun.xml.bind,2.2.0.v201505121915

Pitclipse 2.1.2 Spring STS 4.15.1.RELEASE -> Eclipse 4.24.0

LorenzoBettini commented 2 years ago

OK, I'll try to take a look at this ASAP

LorenzoBettini commented 2 years ago

It's fixed now! You don't have to add manually the orbit update site. I tested the installation of 2.2.0 both in Eclipse Java and Eclipse STS, both from the update site and from the Marketplace. Thanks for your patience :)

MahatmaFatalError commented 2 years ago

Big Thanks!