-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sloeber plugin won't install on 2021-06 after most recent update #1361
Comments
I tested with downloading Sloeber version V.4.3.3 and upgrading. Can you please be more precise on what you are trying to do? |
2021-06 is the latest Eclipse. Installing Sloeber product via the Marketplace had worked until yesterday. I haven't been able to get the customized Eclipse version to work at all. I'm on MacOS Big Sur with jdk1.8.0_291.jdk installed. When I try to launch it I just get an alert window that says "Failed to create the Java Virtual Machine". Attempting to run the binary directly I see this: iMac:~ user$ Applications/Sloeber.app/Contents/MacOS/sloeber-ide The binary just hangs from there until I cntl-c out of it. It isn't lying about the file not being there but I'm not sure why it wasn't installed with the rest of the JDK or what I need to install to get it. |
BTW, I did see the note that the newer Sloebers need JDK11 but I'm not sure how to convince it to use it. It is installed and a link to it is in /Libaray/Java/JavaVirtualMachines but the trick it convincing the software to use it instead of JDK8.
Regardless, libserver.dylib isn't in that one either. |
this page explains how you can set the java path |
The JRE subdirectory part didn't work for me as it still wanted to use the system JDK8; however, forcing the path to JDK11 in the ini file did. Still kind of bummed that I need to split across 2 IDEs but at least I can push off learning PlatformIO a bit longer. Feel free to do whatever you like with this issue report. Thanks! |
The jre subfolder is a standard eclipse way to do things. This should work though.
What do you mean by that? |
I'm facing the same issue here. |
Hi wim, JDK11 also won't work. I,m actually using the following environment: Eclipse Version: 2021-06 Florian |
@florianfa what is exactly your problem? Please attach logs and stuff (attach, not paste in comment). Cheers. |
Seems i have the same issue? Trying to install the plugin from the marketplace on a fresh install of eclipse: i get the following error
OS: Windows 10 Eclipse version: Attaching parts of the configuration dump from eclipse |
From the log I would assume you do not have nebula in your update sites |
Thanks, you was almost right, the Nebula repository was there and did contain the actual files. After a lot of trial and error i disabled the Nebula site and lo and behold it installed without complaining. Tried to reenable the Nebula site after and sure enough, it fails. So it seems the eclipse-21-06 install sets up some weird repositories Thanks for the help! |
@Kilill |
I'm having the same problem trying to install the plugin into a fresh eclipse 2021-06 CDT install. I'm getting exactly the same errors as @Kilill. Tried the solution of removing and adding back in the Nebula repository. Nebula errors go away when repository removed but others remain... and come back when Nebula re-added. Checked the basic update site urls too - all good -as expected from a fresh install. Any chance we could get a link to the previous (or older) release of the plugin? I think archive versions on the website are the Sloeber Product (I could be wrong there?) but I need to create a custom bundle for teaching. I tried fresh older versions of eclipse 10 CDT too and got same results. Tried eclipse 9 CDT as well but plugin won't install on that - tries to upgrade to eclipse 10. Also tried on a fresh eclipse Java 2021-06 - same errors as CDT 2021-06. It would be great to be able to select different versions of the plugin to help hunt down incompatibility issues? Win 10 on Virtualbox guest, macOS host. |
And these are?
Why don't you take the product and start from there to build your custom bundle? Alternatively; check the master out from github go to the branch that is linked to the release you want and build with maven. That will give you the update site and the product.
#1263
I don't see any new incompatibility issues right now.
Any reason why you don't run native? . |
Hi Jantje, Thanks for the quick reply. I was obsessing about putting together a super "clean" bundle with the Sloeber plugin and a some others but I'm going to take your advice and try build off the Sloeber product instead. I'm using this for teaching embedded programming and as students are mainly on Win10 so I work in a VM. Also, then students on linux or macos can run on VM too and I only have one platform to support. In future I might go back and build the plugin from source but just don't have time right now. Thanks for the great work on this tool - it is excellent. |
Can you share the school and class? I like to boast from time to time ;-) |
TU Dublin - Ireland. Computer Engineering Programme. Thinking about it again now, I realise one of the reasons I'd like the plugin is because I want to introduce Eclipse as our IDE for native C/C++ development when teaching programming before adding Sloeber, AVR plugin etc and moving on to embedded. There are arguments to keeping separate eclipse instances for different development platforms but it would be nice to have one IDE to rule them all... but maybe separate might be better... I'll keep playing with it... |
I have tried to reproduce the original error without success, but, thinking back to what i did i might have an idea, at some point i exterminated any trace of eclipse on the machine, and i think the important directory to get rid of /rename is the C:\Users<yourUserNameHere>.eclipse in addition to any install directory. (This will kill of any plugins/extensions etc that you might have previously) Then I did the following dance
|
@btoland |
@Kilill Thinking about this. Are you trying to install the product and not the plugin via marketplace? |
Explicitly added cwt and cdatetime to the dependencies.
No its the plugin (background for that: Already have an eclipse installation...) |
I am working on this via #1381 |
Looking at the update sites from the products Based on that and the info @Kilill presented it looks to me that the marketplace adds the update sites of the update plugin to the update sites of the eclipse install before trying to install the plugin. |
Try with http category update sites Instead of https, try with http update site Remove redundant update sites
What I mean is: once it failed with the error message during install, eclipse only recovers after restarting. |
Not always. |
Well it never did in this test case during these tests |
If I understand correctly you say the sloeber update site should reference these update sites (which it does) and so should nebula (which it doesn't; I checked; tried to add it; everything became complex) |
The Sloeber update site should only add update sites that are not expected to be available. So it is not needed to add the two Eclipse Repos. It should add Nebula because that is not expected to be there. Nebula should not add the two Eclipse repos because they are expected to be there. Our product should add all repos because no one else adds them. |
I am currently debugging P2 but it is a big confusing log. I don't understand why it tries to add the CDateTime widget because we don't use that. We should try to install only CDT and see if that one fails to install as well. |
First of all thanks for the update on what is expected in the update sites.
Isn't that what we are doing when installing nebula first and then add Sloeber? That works fine. |
Thinking about this. I tried this test (which failed in the past) remove all but sloeber and add http://download.eclipse.org/eclipse/updates/latest without editing the update stites From this I conclude that installation step 2 does not take all the update sites into account gathered in step 1 |
And I also have the feeling it is the caching that doesn't update as it should. |
I already tried that. You can go to the preferences and "Reload" every update site but it does not work either. |
Good now we know it is not only a caching issue 🥇 (or there are more caches than we know of ) Mental note to myself: As this should never happen -due to step 1 validation- this may be an ignored exception |
Finally got the plugin to install on vanilla eclipse 2021-06/2021-09 CDT. Windows 10. No JRE installed. The workarounds listed at the top of this thread did not work for me but gave me a hunch so tried below which worked for me:
|
I think this is fixed with: #1431 |
I believe I had this problem too, with the current version IDE: Version: 2022-03 (4.23.0) |
@rtek1000 I think upgrading will always have it's difficulties. |
to install Arduino sloeber in Eclipse IDE.
An error occurred while collecting items to be installed
Select all and install. got this error, but not paying attention: Due to issues with long pathnames on Windows, the Sloeber installation path must be less than 40 characters. Sloeber might still function but if you get strange results you know where to look. cheers |
Still and issue after installing Eclipse 2022-12 CDT, needed to manually install Nebula using the Help->Install New Software option adding http://download.eclipse.org/nebula/releases/latest/ repository and installing Nebula packages. After Eclipse restart I could then use the Eclipse Marketplace to install the Arduino plugin. But I did notice it was using Arduino IDE v 1.8.x packages, compiler and tools and that is deprecated for the Arduino IDE v 2.x.x packages, compiler and build tools. |
Sloeber plugin for fresh Eclipse install still no bueno after painfully following every bit of advice. config: win10 64b. Freshly downloaded and latest versions of: Eclipse, and Java. Installing Sloeber as plugin. |
====================WORKAROUND===============
There are a couple of ways to work around this issue. Here are 2
make sure you have following update sites before installing sloeber
https://download.eclipse.org/releases/latest/
http://download.eclipse.org/eclipse/updates/latest
https://download.eclipse.org/nebula/releases/latest/
http://eclipse.baeyens.it/update/V4/stable
Try to install sloeber using either the marketplace or install new software
This will fail (but will add the update sites above to the update sites)
Restart eclipse (needed to clean caches)
try again (this should work)
add the plugin (not the product) to an existing eclipse install.
=============================================
An update came through yesterday (2021-11-07) which doesn't appear compatible with the current version 2021-06. I've tried multiple times from completely fresh installs of different "flavors" and the fewest errors I've gotten has been from the C/C++ variety:
An error occurred while collecting items to be installed
session context was:(profile=_Users_ehicks_Applications_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.nebula.cwt,1.1.0.202011020719
No repository found containing: osgi.bundle,org.eclipse.nebula.widgets.cdatetime,1.5.0.202011020719
No repository found containing: osgi.bundle,org.hamcrest.core,1.3.0.v20180420-1519
No repository found containing: osgi.bundle,org.junit,4.13.0.v20200204-1500
I'm also attaching an export of my install sources. It's from one of today's fresh installs but after having installed a few other packages to make sure it was just Sloeber that was having issues.
bookmarks.xml.txt
If you need any other info please let me know. Thanks
The text was updated successfully, but these errors were encountered: