Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Correctly share Eclipse Product Setup(How to correctly share Eclipse Product Setup)
Correctly share Eclipse Product Setup [message #1835884] Tue, 15 December 2020 18:26 Go to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
Hi,

We have a Eclipse Product Setup. It is directly available through a git repository.

I'm having sync issues with this setup. I do a change in product setup, commit those, and try to "Perform Setup Tasks", but it is outdated, even with "Refresh Remote Cache".

If I go to "Navigate > Open Setup > Parent Models > product name", content is updated, but in "Perform Setup Tasks" not.

Thanks!

[Updated on: Tue, 15 December 2020 18:27]

Report message to a moderator

Re: Correctly share Eclipse Product Setup [message #1835900 is a reply to message #1835884] Wed, 16 December 2020 05:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
The refresh remote cache does ECFURIHandlerImpl.clearExpectedETags and then reloads all URIs previously loaded so I do expect that to update the cache if the resource was previously loaded.

I do generally expect that the cache will be updated when you do Perform Setup Tasks. I did make some changes a few months ago in that regard...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Correctly share Eclipse Product Setup [message #1835933 is a reply to message #1835900] Wed, 16 December 2020 19:41 Go to previous messageGo to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
Thanks Ed!

When I do "Refresh Remote Cache" I can see a progress task with git address to de Eclipse Product Setup.

My eclipse install is 2020-09, could be without this changes to "Perform Setup Tasks"?

It's possible to manually clear this cache?
Re: Correctly share Eclipse Product Setup [message #1835946 is a reply to message #1835933] Thu, 17 December 2020 04:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
I would expect a 2020-09 to contain all the fixes; not so much was done for 2020-12... I know in the big Eclipse SDK environment I have that I do generally see th

Yes, you can clear the cache manually, i.e., in .eclipse/org.eclipse.oomph.setup/cache. Here you can also see what was actually downloaded. I know with the Eclipse git server it can take as long as 15 minutes for a newly checked in version to be visible.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Correctly share Eclipse Product Setup [message #1835979 is a reply to message #1835946] Thu, 17 December 2020 16:14 Go to previous messageGo to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
Another question Ed, we have a gitlab on premise instance with internal certificate authority. I didn't find any error on logs, but could be the culprit?

All root certificates are installed in all java installations, but to be able to use Eclipse installer we need to download installer without jre, as the default installer with jre it can't handle our certificates.
Re: Correctly share Eclipse Product Setup [message #1836002 is a reply to message #1835979] Fri, 18 December 2020 03:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
It's hard to say. I wouldn't expect certificates to be a problem. Some servers are not good with yielding the right http headers for things like ETag or Last-Modified and that could maybe cause a cached version to be used.

Even the latest installers with the latest Java 15.0.1 JRE don't contain the roots of your certificates? The previous release version of the installer could not handle https in general...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Correctly share Eclipse Product Setup [message #1836259 is a reply to message #1836002] Sun, 27 December 2020 00:16 Go to previous messageGo to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
Hi Ed,

> Even the latest installers with the latest Java 15.0.1 JRE don't contain the roots of your certificates?
Nope, it's an internal enterprise CA. But we have a custom cacerts that is added to each jre install, unfortunately this is not an option in Eclipse Installer with JRE bundle.

> Some servers are not good with yielding the right http headers for things like ETag or Last-Modified and that could maybe cause a cached version to be used
Ok. I will try to use GitHub to host our .setup files and see if that it changes behaviour.
Re: Correctly share Eclipse Product Setup [message #1836604 is a reply to message #1836259] Fri, 08 January 2021 21:07 Go to previous messageGo to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
Hi Ed,

Just tried with GitHub hosted .setup files, and it changed behavior. I send a simple commit and run perform setup tasks and it recognized the new version.

But now I ran into another issue: I changed Java Code Style Formatter with new name, it created new entry with new name, but do not changed to this new formatter.

Changed preferences was:
- /instance/org.eclipse.jdt.ui/formatter_profile
- /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles

GitHub project: https://github.com/trepr/eclipse-setup

Thanks!
Re: Correctly share Eclipse Product Setup [message #1836617 is a reply to message #1836604] Sat, 09 January 2021 05:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
Is the problem that the formatter_profile refers to _SDSv2 but the name in formatterprofiles is SDSv3 in eclipse-ee-sds-product.setup?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Correctly share Eclipse Product Setup [message #1836674 is a reply to message #1836617] Mon, 11 January 2021 18:28 Go to previous messageGo to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
:facepalm:

You are right, Ed. Shame on me...

Maybe I changed formatter name for the same name, or whatever, maybe lack of coffee... Sorry! And thanks for your patience...

Returning to the topic. You know how can I debug the behavior on our GitLab instance, that it do not works as expected?

What I did, so far, is get the response headers. I can see ETag header, but no Last-Modified:

ETag on gitlab: W/"aa3ec3d5e6311769a96aa4144cea9adf"
ETag on github: "12076d3c8e7ef3f9040e222c9ee5d832588c41672ab3d4006595f9cef89508ec"
Re: Correctly share Eclipse Product Setup [message #1836682 is a reply to message #1836674] Tue, 12 January 2021 06:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
If you set up a development environment:

https://www.eclipse.org/setups/installer/?url=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/configurations/OomphConfiguration.setup&show=true

You can debug what happens in ECFURIHandlerImpl. You can do a call hierarchy on org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.OPTION_CACHE_HANDLING to show how that option is used in different place. See what's happening in org.eclipse.oomph.setup.ui.wizards.SetupWizard.IndexLoader.loadIndex(ResourceSet, URI[], IProgressMonitor) and see when org.eclipse.oomph.setup.ui.wizards.SetupWizard.IndexLoader.loadIndex(...).new Runnable() {...}.run().new Runnable() {...}.run().new IRunnableWithProgress() {...}.run(...).new ETagMirror() {...}.cacheUpdated(URI) is called...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Correctly share Eclipse Product Setup [message #1836782 is a reply to message #1836682] Wed, 13 January 2021 19:56 Go to previous messageGo to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
Hi Ed,

Still having problems with formatter profile name...

The only change that is not reflected in my eclipse installed product is "/instance/org.eclipse.jdt.ui/formatter_profile", it just not change name accordingly to last update.

In preference "/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles" we have only 1 profile named "SDS", and "/instance/org.eclipse.jdt.ui/formatter_profile" with value "_SDS".

My installed product always changes to profile "SDSv2".

I already deleted content on ".eclipse/org.eclipse.oomph.setup/cache", without changes. Tried new workspace too.

There are other caches that could be messing with this?
Re: Correctly share Eclipse Product Setup [message #1836794 is a reply to message #1836782] Thu, 14 January 2021 04:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
If you're not sure the updated task is being seen versus the update task is not performing then it's hard to come up with any theory what might concretely be wrong.

You can use Show all triggered tasks to see all the tasks, including ones that don't think they need to perform, and you can inspect their state to see if they contain the updates you expect.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Correctly share Eclipse Product Setup [message #1836854 is a reply to message #1836794] Fri, 15 January 2021 16:56 Go to previous messageGo to next message
Claudio Weiler is currently offline Claudio WeilerFriend
Messages: 27
Registered: August 2015
Location: Brazil
Junior Member
Hi Ed,

Ok, I have made a new set of tests, focused on java code formatter profiles.

Updated tasks are been performed, but:
- for "/instance/org.eclipse.jdt.ui/formatter_profile", it is, somehow, using an old value.
- for "/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles", it only accept changes with new profile name

[1] Formatter profile name
If I manually change java code formatter profile (lets say, to SDS) in installed eclipse, then when I restart eclipse or run Perform Setup Tasks, it is set back to SDSv2.
If I create a new profile in eclipse product setup file, named SDSv4, update both preferences, then when I restart eclipse or run Perform Setup Tasks, it do not change from SDSv2.

[2] Formatter profile settings
If I change profile settings, but maintain the same name, then, when I restart eclipse or run Perform Setup Tasks, it do not change profile settings accordingly.
If I change profile settings and/or the profile name, then, when I restart eclipse or run Perform Setup Tasks, it create the new profile with new settings (but do not change to it, see [1] above).

I have deleted ".eclipse/org.eclipse.oomph.setup/cache" contents, and can confirm that the new files added have the same content of remote file on each test.

Did some content searchs for "SDSv2" and find it on "~/.eclipse/org.eclipse.oomph.setup/setups/user.setup" file, with last update on december.
Re: Correctly share Eclipse Product Setup [message #1836880 is a reply to message #1836854] Sun, 17 January 2021 05:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32111
Registered: July 2009
Senior Member
I can see why changing the profile without changing its name would cause the profile changes to look like they are ignored. That's because in ProfileChoicePreferenceHandler when the profile's name is applied (by perform) the code looks at the XML and applied the individual preference settings. So if the name doesn't change, this task will thinks nothing needs to be done.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:git clone without rebase config
Next Topic:Filter Targlet Repository Contents
Goto Forum:
  


Current Time: Sun Dec 05 20:14:11 GMT 2021

Powered by FUDForum. Page generated in 0.03107 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top