eclipse-cs icon indicating copy to clipboard operation
eclipse-cs copied to clipboard

Unable to Install in Eclipse

Open garberfc opened this issue 3 years ago • 1 comments

I'm attempting to install the CheckStyle plug-in from the Eclipse Marketplace, but it errors out with the message: Unable to read repository at https://checkstyle.org/eclipse-cs-update-site/content.xml. Stream already closed

garberfc avatar Aug 30 '22 13:08 garberfc

Can you share screenshot of problem ?

romani avatar Aug 31 '22 03:08 romani

Here's the screenshot from the Eclipse Marketplace: image

And the web page: image

garberfc avatar Aug 31 '22 12:08 garberfc

@rnveach , do you have such problem?

romani avatar Aug 31 '22 13:08 romani

Yes, I'm still have the problem. I think it's just a matter of the content.xml file missing from the server.

garberfc avatar Aug 31 '22 13:08 garberfc

@garberfc What version of Eclipse are you using and what version are you trying to install?

I am using 2021-06 and am not having an issue. I was able to use the URL and install all the way through on a clean Eclipse. update site

I am not sure how you got content.xml but there is no such file. Our update site has them compressed, either content.jar or content.xml.xz, which is located in another folder that I was able to track through all the p2.index, compositeArtifacts.xml, and compositeContent.xml, similar to what I assuming Eclipse is doing. This seems to be the same for versions going back as far as 8.41.0 .

rnveach avatar Aug 31 '22 14:08 rnveach

I was also able to install "Checkstyle Plug-in 10.0.0" from the Eclipse marketplace directly with no issues.

rnveach avatar Aug 31 '22 14:08 rnveach

Here's the version info on the version of Eclipse I'm using: Version: 2022-06 (4.24.0) Build id: 20220609-1112

I've been able to install other software from the Marketplace like "Eclipse Web Developer Tools 3.26".

I just attempted to install CheckStyle again, and it's still failing with the same message. I never get to the screen where I get to chose which version to install.

garberfc avatar Aug 31 '22 15:08 garberfc

I installed Eclipse 2022-06 (Build id: 20220609-1112) for Enterprise Java and Web Developers and was able to install Checkstyle from the market place and from the URL.

Are you sure you trusted the plugin during the installation process? Can you try with a clean Eclipse download/install? I would also consider checking the error log to see if it is possibly hiding the real issue.

rnveach avatar Aug 31 '22 17:08 rnveach

The installation is just a few days old. Very little was added / modified.

-- Where are the eclipse log files stored? I searched under \eclipse*.log and error.* and didn't find any files. I also looked in the Windows Event Viewer. I didn't note anything.

garberfc avatar Aug 31 '22 18:08 garberfc

Where are the eclipse log files stored?

Window > Show View > Other - Select "Error Log".

The installation is just a few days old. Very little was added / modified.

At this point, it is looking like it is something on your end. I am not able to reproduce any issues. I personally don't use the Eclipse plugin, so I am confident from my tests things are working correctly. The release is about 4 months old, so if it was a global issue, I would think we would have seen more reports by now. Regardless, everything I have done was assuming it was a global issue.

Besides a clean installation, looking for underlying errors, the only other thing I can think of is to check if your internet or any proxy is preventing working with the update site properly.

rnveach avatar Aug 31 '22 19:08 rnveach

I found this while googling: https://www.eclipse.org/forums/index.php/t/1108948/ . Last post has the solution to their issue.

I've been able to install other software from the Marketplace like "Eclipse Web Developer Tools 3.26".

Was that installation done through HTTP or HTTPS?

rnveach avatar Aug 31 '22 19:08 rnveach

Oh, that error log. Here's the results: image

I added the lines to my eclipse.ini. No luck.

Though, when I started eclipse I'm seeing the following in the log: image

Here are my proxy settings. Do you see any issues: image

garberfc avatar Aug 31 '22 19:08 garberfc

I see errors related to https://checkstyle.org/eclipse-cs-update-site/p2.index which is an actual file that exists. I do not get any similar errors in my error log after an install. You can try testing in your browser.

Since you are using a proxy, I think its safe to assume this has something to do with your internet connection to the website. It seems it is not "failing" on retrieving the p2 index, but it is failing on what I assume is the backup method, content.xml . I don't think adding this file will really solve your issue. For all I know, your proxy is setup to forbid Eclipse plugin installs. I have seen my work's proxy interfere with this as well.

You can try disabling the proxy, if possible, and revert the previous changes and check, but I won't be able to assist you anymore.

rnveach avatar Aug 31 '22 19:08 rnveach

As recommended I broke down and did a clean install. After the install I was able to install CheckStyle. I wish knew why it wouldn't install...

Thanks for all the help!

garberfc avatar Aug 31 '22 20:08 garberfc

Just as a note for future repetitions: Don't be confused by the browser giving a 404 when browsing p2 update sites. The browser will try to show an index.html, which simply doesn't exist. Still, all the files required for an update site are there, the browser just doesn't list them, because github disables directory listings.

Bananeweizen avatar Nov 06 '22 07:11 Bananeweizen