Home » Eclipse Projects » Oomph » Oomps is able to share preferences between different eclipse instances?(Trying to test Oomph and find out how to export, load , apply set preferences to new eclipse instance, workspace)
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1691595 is a reply to message #1691582] |
Wed, 08 April 2015 11:52 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
Comments below.
On 08/04/2015 12:05 PM, Lidia Gutu wrote:
> Hello,
>
> I am interested only in 'Oomph Preference Management' feature and
> trying to understand how it works? 1. Is there any tutorial?
No, it's work in progress, so I can't recommend using it right now...
> 2. I am interested to share eclipse preferences also between
> different instances of eclipse, not only between different workspaces.
> Is it possible?
The preference recorder support records preferences globally and will
apply them to every Eclipse installation with Oomph installed.
>
> I am not interested in default eclipse provided by Oomph instaler.
> I am trying to install required oomph plugins into my custom version
> of eclipse.
Just the basic core setup support and the associated UI will provide for
preference recording support.
> 3. As I see, Oomph has many different functionalities, what plugins
> need to be installed to be able to have 'Preference Management'
>
> e.g.
> I updated EMF to be able to install "Oomph Preference Management"
> but I don't know how to use it, seems that I also need 'Oomph setup',
> but this requires 'bundle org.apache.httpcomponents.httpclient
> [4.0.0,5.0.0)' that is missing in my eclipse, and needs to be installed
Yes, Oomph Setup is all you need You could use
http://download.eclipse.org/releases/mars as an available update site to
find httpclient.
>
> Thank you
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | |
Re: Oomps is able to share preferences between different eclipse instances? [message #1691627 is a reply to message #1691626] |
Wed, 08 April 2015 15:05 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
You are prompted to save them when you change them though, right? And
the other IDE, you'd need to perform the setup tasks (via the toolbar,
if you have that enabled, or the start menu), or when restart it (in
which case the tasks are automatically performed, if you've left that
preference enabled) in order for the preference to be propagate... Is
that what you're doing?
On 08/04/2015 4:58 PM, Lidia Gutu wrote:
> My bad, seems that nothing special needs to be done, just not all
> preferences are shared. For example, (General -> Appearance) theme is
> not applied.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1691629 is a reply to message #1691627] |
Wed, 08 April 2015 15:25 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Yes, I succeed to test and see how it works on my local machine, where I Installed 2 different eclipses from Oomph installer.
But I am getting issues with my custom eclipse where I installed manually only required things:
org.apache.httpcomponents.httpclient (4.1.3.v201209201135) "Apache HttpComponents HttpClient OSGi bundle"
org.apache.httpcomponents.httpcore (4.1.4.v201203221030) "Apache HttpComponents HttpCore"
- EMF Eclipse Modeling Framework Core Runtime
- EMF EDIT
Oomph Setup 1.1.0.v20150406-1142 (org.eclipse.oomph.setup.feature.group 1.1.0.v20150406-1142)
Oomph Preference Management
I am getting following error messages, any idea what is missing?
I am going to compare configurations and will come back with details, maybe will figure out by myself.
Thanks a lot for you support
Lidia
!ENTRY org.eclipse.oomph.setup.ui 4 0 2015-04-08 17:05:48.656
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.getSetupTasks(SetupTaskPerformer.java:1278)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.initTriggeredSetupTasks(SetupTaskPerformer.java:272)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.<init>(SetupTaskPerformer.java:237)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.create(SetupTaskPerformer.java:3322)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.createForIDE(SetupTaskPerformer.java:3293)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:309)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY org.eclipse.core.jobs 4 2 2015-04-08 17:05:49.066
!MESSAGE An internal error occurred during: "Setup check...".
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.internal.core.SetupContext.createSelf(SetupContext.java:211)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:322)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
[Updated on: Wed, 08 April 2015 15:39] Report message to a moderator
|
|
| |
Re: Oomps is able to share preferences between different eclipse instances? [message #1691746 is a reply to message #1691635] |
Thu, 09 April 2015 12:34 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Hello, I am still investigating why do I have those stack trace errors.
Before opening a bugzilla task I would like to know if the reason is not our customizations in eclipse.
Questions:
1. The Oompth can be used in offline mode?
2. Do I really need httpclient?
I am also getting following stack track trace error that seems to be the root cause.
!ENTRY org.eclipse.oomph.base 4 0 2015-04-09 14:29:38.236
!MESSAGE org.eclipse.oomph.util.IOExceptionWithCause: connect timed out
!STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.oomph.util.IOExceptionWithCause: connect timed out
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$ResourceLocator.demandLoadHelper(ResourceSetImpl.java:804)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$MappedResourceLocator.getResource(ResourceSetImpl.java:1204)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil$1.getResource(SetupCoreUtil.java:256)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:352)
at org.eclipse.oomph.base.util.BaseUtil.loadResourceSafely(BaseUtil.java:52)
at org.eclipse.oomph.setup.internal.core.SetupContext.getInstallation(SetupContext.java:546)
at org.eclipse.oomph.setup.internal.core.SetupContext.create(SetupContext.java:234)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.createForIDE(SetupTaskPerformer.java:3242)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:299)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:241)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:198)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.oomph.util.IOExceptionWithCause: connect timed out
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:545)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1269)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
... 12 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at org.eclipse.ecf.provider.filetransfer.events.socket.SocketEventCreateUtil.createSocket(SocketEventCreateUtil.java:43)
at org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:81)
at org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:73)
at org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:65)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1129)
at org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:699)
at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879)
at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:570)
at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:479)
... 16 more
Thank you
Kind Regards
Lidia
[Updated on: Thu, 09 April 2015 12:36] Report message to a moderator
|
|
| | |
Re: Oomps is able to share preferences between different eclipse instances? [message #1691975 is a reply to message #1691884] |
Sat, 11 April 2015 10:28 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
No, Oomph itself only requires 1.5, but the things it depends on may
well require higher so best to have at least a 1.7 available. It seems
from what you show that the platform requires 1.7 now, so best we ensure
that the installer product has that as a minimum requirement as well.
Please open a bugzilla.
On 10/04/2015 11:51 AM, Lidia Gutu wrote:
> Thank you Ed, One more question I would have:
> Does Oomph requires java 7 to be installed in the system?
>
> I tried to launch Oomph Installer, in Ubuntu 64 bit and got some
> launch issues in configuration.
> Quote:
>> !ENTRY org.eclipse.core.expressions 4 0 2015-04-10 11:25:21.831
>> !MESSAGE FrameworkEvent ERROR
>> !STACK 0
>> org.osgi.framework.BundleException: Could not resolve module:
>> org.eclipse.core.expressions [24]
>> Unresolved requirement: Require-Bundle: org.eclipse.core.runtime;
>> bundle-version="[3.3.0,4.0.0)"
>> -> Bundle-SymbolicName: org.eclipse.core.runtime;
>> bundle-version="3.11.0.v20150316-1241"; singleton:="true"
>> org.eclipse.core.runtime [30]
>> Unresolved requirement: Require-Bundle:
>> org.eclipse.core.contenttype; bundle-version="[3.3.0,4.0.0)";
>> visibility:="reexport"
>> -> Bundle-SymbolicName: org.eclipse.core.contenttype;
>> bundle-version="3.4.200.v20150316-1243"; singleton:="true"
>> org.eclipse.core.contenttype [19]
>> Unresolved requirement: Require-Capability: osgi.ee;
>> filter:="(&(osgi.ee=JavaSE)(version=1.7))"
>
> I succeed to fix it by updating my default java version from 6 to 7.
> Thank you
> Kind Regards
> Lidia
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1692170 is a reply to message #1691975] |
Tue, 14 April 2015 07:04 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Thank you Ed,
I have opened a bugzilla regarding oomph installer for ubuntu 64 bits (https://bugs.eclipse.org/bugs/show_bug.cgi?id=464565)
Regarding my custom installation, I am still not able to use Oomph.
1. I would like to use Oomph in offline mode only. What online resources does it needs to cache in the beginning?
Is there a workaround to copy them manually, assuming that we do not have access to internet, or proxy is not set?
2. I have mentioned that when I try to set proxy in eclipse, I am geeting new stack trace errors, but SetupTaskPerformer job still fails at eclipse start-up.
If I set in eclipse Preferences -> Network Connections
- Manual for Active Provider
- And credentials for all HTTP, HTTPS, SOCKS
The 'SetupTaskPerformer ' jobs hands at start-up during 20% and at the end I am geeting following stack traces.
Do you have any ideas how I could pass over this error?
!ENTRY org.eclipse.oomph.base 4 0 2015-04-14 08:13:36.231
!MESSAGE org.eclipse.oomph.util.IOExceptionWithCause: Malformed reply from SOCKS server
!STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.oomph.util.IOExceptionWithCause: Malformed reply from SOCKS server
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$ResourceLocator.demandLoadHelper(ResourceSetImpl.java:804)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$MappedResourceLocator.getResource(ResourceSetImpl.java:1204)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil$1.getResource(SetupCoreUtil.java:274)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:352)
at org.eclipse.oomph.base.util.BaseUtil.loadResourceSafely(BaseUtil.java:52)
at org.eclipse.oomph.setup.internal.core.SetupContext.getInstallation(SetupContext.java:553)
at org.eclipse.oomph.setup.internal.core.SetupContext.create(SetupContext.java:234)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.createForIDE(SetupTaskPerformer.java:3293)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:309)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.oomph.util.IOExceptionWithCause: Malformed reply from SOCKS server
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:265)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1269)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
... 12 more
Caused by: java.net.SocketException: Malformed reply from SOCKS server
at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:90)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:429)
at java.net.Socket.connect(Socket.java:529)
at org.eclipse.ecf.provider.filetransfer.events.socket.SocketEventCreateUtil.createSocket(SocketEventCreateUtil.java:43)
at org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:81)
at org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:73)
at org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:65)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1129)
at org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:699)
at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879)
at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:570)
at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:199)
... 16 more
!ENTRY org.eclipse.oomph.setup.ui 4 0 2015-04-14 08:13:36.275
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.getSetupTasks(SetupTaskPerformer.java:1278)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.initTriggeredSetupTasks(SetupTaskPerformer.java:272)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.<init>(SetupTaskPerformer.java:237)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.create(SetupTaskPerformer.java:3322)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.createForIDE(SetupTaskPerformer.java:3293)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:309)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!ENTRY org.eclipse.core.jobs 4 2 2015-04-14 08:13:36.282
!MESSAGE An internal error occurred during: "Setup check...".
!STACK 0
java.lang.NullPointerException
at org.eclipse.oomph.setup.internal.core.SetupContext.createSelf(SetupContext.java:211)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:322)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Thank you
Kind Regards
Lidia
[Updated on: Tue, 14 April 2015 07:06] Report message to a moderator
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1692203 is a reply to message #1692170] |
Tue, 14 April 2015 10:03 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Hello again,
I have done some investigations regarding my first request: what could be copied manually for offline use from the beginning,
I was tying to find out why does it has 'Malformed reply from SOCKS server' and debugged 'org.eclipse.oomph.setup.core'
In case it helps:
Inside ECFURIHandlerImpl. createInputStream()
'cacheHandling == CacheHandling.CACHE_IGNORE' is always false
String eTag = getETag(uriConverter, cacheURI); is always null
String expectedETag = getExpectedETag(uri); is always null
Authorization authorization = getAuthorizaton(options); is always null because
'options' does not have the key 'OPTION_AUTHORIZATION'
Setting system proxy does not help. The job 'SetupTaskPerformer' keeps to hang on 20%
And I mentioned from the code that it tries to copy the content of
http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup
inside new created file
~/.eclipse/org.eclipse.oomph.setup/cache/http___git.eclipse.org_c_oomph_org.eclipse.oomph.git_plain_setups_org.eclipse.setup
But, on my side, it does not have the 'cache' directory at all.
E.g. I have copied the entire 'cache' directory from my working installation.
And now seems that I do not have that pop-up error, but I do have a lot of jobs that loads modules from http___git.eclipse.org_c_oomph_org.eclipse.oomph.git_plain_setups_org.eclipse.setup
The preferences are still not loaded into new workspaces.
What else it needs? From where those models are loaded? It is a good starting point?
Thank you
Kind Regards
Lidia
[Updated on: Tue, 14 April 2015 10:36] Report message to a moderator
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1692232 is a reply to message #1692170] |
Tue, 14 April 2015 12:33 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
Comments below.
On 14/04/2015 9:04 AM, Lidia Gutu wrote:
> Thank you Ed, I have opened a bugzilla regarding oomph installer for
> ubuntu 64 bits (https://bugs.eclipse.org/bugs/show_bug.cgi?id=464565)
>
> Regarding my custom installation, I am still not able to use Oomph.
> 1. I would like to use Oomph in offline mode only. What online
> resources does it needs to cache in the beginning?
It needs all the *.setup resources to populate the pages. They're all
loaded and cached the first time and after that can fall back to the cache.
> Is there a workaround to copy them manually, assuming that we do not
> have access to internet, or proxy is not set?
Not easily no. In
https://bugs.eclipse.org/bugs/show_bug.cgi?id=463967 we're in the
process of working on "mirroring" all the setups into a single zip file
so you'd just be able to copy that file to the cache, but that's not
done yet.
>
> 2. I have mentioned that when I try to set proxy in eclipse, I am
> geeting new stack trace errors, but SetupTaskPerformer job is still
> fails at eclipse start-up.
> If I set in eclipse Preferences -> Network Connections
> - Manual for Active Provider
> - And credentials for all HTTP, HTTPS, SOCKS
> The 'SetupTaskPerformer ' jobs hands at start-up during 20% and at the
> end I am geeting following stack traces.
> Do you have any ideas how I could pass over this error?
No, I don't understand this proxy stuff well. You're setting this up in
the installer itself and then are able to successfully populate the pages?
>
> !ENTRY org.eclipse.oomph.base 4 0 2015-04-14 08:13:36.231
> !MESSAGE org.eclipse.oomph.util.IOExceptionWithCause: Malformed reply
> from SOCKS server
> !STACK 0
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
> org.eclipse.oomph.util.IOExceptionWithCause: Malformed reply from
> SOCKS server
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$ResourceLocator.demandLoadHelper(ResourceSetImpl.java:804)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$MappedResourceLocator.getResource(ResourceSetImpl.java:1204)
> at
> org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil$1.getResource(SetupCoreUtil.java:274)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:352)
> at
> org.eclipse.oomph.base.util.BaseUtil.loadResourceSafely(BaseUtil.java:52)
> at
> org.eclipse.oomph.setup.internal.core.SetupContext.getInstallation(SetupContext.java:553)
> at
> org.eclipse.oomph.setup.internal.core.SetupContext.create(SetupContext.java:234)
> at
> org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.createForIDE(SetupTaskPerformer.java:3293)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:309)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: org.eclipse.oomph.util.IOExceptionWithCause: Malformed
> reply from SOCKS server
> at
> org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:265)
> at
> org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1269)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
> ... 12 more
> Caused by: java.net.SocketException: Malformed reply from SOCKS server
> at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:90)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:429)
> at java.net.Socket.connect(Socket.java:529)
> at
> org.eclipse.ecf.provider.filetransfer.events.socket.SocketEventCreateUtil.createSocket(SocketEventCreateUtil.java:43)
> at
> org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:81)
> at
> org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:73)
> at
> org.eclipse.ecf.internal.provider.filetransfer.httpclient.ECFHttpClientProtocolSocketFactory.createSocket(ECFHttpClientProtocolSocketFactory.java:65)
> at
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
> at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
> at
> org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1129)
> at
> org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:699)
> at
> org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879)
> at
> org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:570)
> at
> org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
> at
> org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:199)
> ... 16 more
>
> !ENTRY org.eclipse.oomph.setup.ui 4 0 2015-04-14 08:13:36.275
> !MESSAGE java.lang.NullPointerException
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.getSetupTasks(SetupTaskPerformer.java:1278)
> at
> org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.initTriggeredSetupTasks(SetupTaskPerformer.java:272)
> at
> org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.<init>(SetupTaskPerformer.java:237)
> at
> org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.create(SetupTaskPerformer.java:3322)
> at
> org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.createForIDE(SetupTaskPerformer.java:3293)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:309)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> !ENTRY org.eclipse.core.jobs 4 2 2015-04-14 08:13:36.282
> !MESSAGE An internal error occurred during: "Setup check...".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.oomph.setup.internal.core.SetupContext.createSelf(SetupContext.java:211)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:322)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:245)
> at
> org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:199)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
>
> Thank you
> Kind Regards
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1692238 is a reply to message #1692203] |
Tue, 14 April 2015 13:15 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
Your proxy issue is more to do with this part of the code:
Proxy proxy = ProxySetupHelper.getProxy(uriString);
This should return the configured proxy information and use it later in
the code:
if (proxy != null)
{
fileTransfer.setProxy(proxy);
if (username != null)
{
fileTransfer.setConnectContextForAuthentication(ConnectContextFactory.createUsernamePasswordConnectContext(username,
password));
}
else if (password != null)
{
fileTransfer.setConnectContextForAuthentication(ConnectContextFactory.createPasswordConnectContext(password));
}
}
On 14/04/2015 12:03 PM, Lidia Gutu wrote:
> Hello again,
> I have done some investigations regarding my first request: what
> could be copied manually for offline use from the beginning, I was
> tying to find out why does it has 'Malformed reply from SOCKS server'
> and debugged 'org.eclipse.oomph.setup.core'
>
> In case it helps:
>
> Inside ECFURIHandlerImpl. createInputStream()
> 'cacheHandling == CacheHandling.CACHE_IGNORE' is always false
> String eTag = getETag(uriConverter, cacheURI); is always null
> String expectedETag = getExpectedETag(uri); is always null
> Authorization authorization = getAuthorizaton(options); is always
> null because
> 'options' does not have the key 'OPTION_AUTHORIZATION' I am
> wondering if I should set proxy also in the system , not only in eclipse?
No, this has more to do with password protected website content...
>
> And I mentioned from the code that it tries to copy the content of
> http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup
>
> inside new created file
> ~/.eclipse/org.eclipse.oomph.setup/cache/http___git.eclipse.org_c_oomph_org.eclipse.oomph.git_plain_setups_org.eclipse.setup
>
> But, on my side, it does not have the 'cache' directory at all.
It's not created until the first time in caches a successful downlad there.
>
> E.g. I have copied the entire 'cache' directory from my working
> installation.
> And now seems that I do not have that pop-up error, but I do have a
> lot of jobs that loads modules from
> http___git.eclipse.org_c_oomph_org.eclipse.oomph.git_plain_setups_org.eclipse.setup
> The preferences are still not loaded into new workspaces.
Because the perform is still failing?
> What else it needs? From where those models are loaded? It is a good
> starting point?
I'm a little lost at what point you are. You have one machine where
everything works but another that can't access the internet that you're
trying to get working?
>
> Thank you
> Kind Regards
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1692352 is a reply to message #1692238] |
Wed, 15 April 2015 09:08 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Hello Ed,
Yes, I do have a local system where I tested oomph installed from eclipse installer.
But my target is to make it work on a remote system, with virtual linux environment, that has a limited access to internet, and where I have installed oomph 'Setup' and 'Preferences' from zip archive into a custom eclipse.
In order to be able to download something from internet, we need to set proxy,
Usually, when I set in eclipse Preferences -> proxy the credentials for HTTP and HTTPS it is enough to install all I need in eclipse, to use marketplace and eclipse update.
But, seems that oomph also needs the SOCKS port.
Without setting SOCKS, I am getting java.net.SocketException: Malformed reply from SOCKS server. and an instant pop-up at start-up
But with providing credentials also for SOCKS, I am getting a different behaviour. The oomph 'Setup' job at eclipse start-up reaches 20% and hangs this way many minutes, till a connection timeout is thrown.
Anyway, offline approach would be the best solution for us. I am working on integrating this feature into a custom eclipse , and we do not expect from our developers to set proxy to be able to use it.
We will be waiting for new release.
Meanwhile, I wanted to be able to test it in remote system, and wandering if it is a bug, or something is wrong with my proxy settings.
I will make a debug on that piece of code, and will come back with updates.
Thanks a lot for all your feedback.
Lidia
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1692427 is a reply to message #1692352] |
Wed, 15 April 2015 15:36 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Comments below.
On 15/04/2015 11:08 AM, Lidia Gutu wrote:
> Hello Ed,
>
> Yes, I do have a local system where I tested oomph installed from
> eclipse installer.
> But my target is to make it work on a remote system, with virtual
> linux environment, that has a limited access to internet, and where I
> have installed oomph 'Setup' and 'Preferences' from zip archive into a
> custom eclipse.
I see.
>
> In order to be able to download something from internet, we need to
> set proxy, Usually, when I set in eclipse Preferences -> proxy the
> credentials for HTTP and HTTPS it is enough to install all I need in
> eclipse, to use marketplace and eclipse update.
> But, seems that oomph also needs the SOCKS port.
There are two network access issues. One is for the setups models and
is handled in ECFURIHandlerImpl, as you've noticed. The other is for
when P2 accesses the information related to update sites and is funneled
through org.eclipse.oomph.p2.internal.core.CachingTransport.
>
> Without setting SOCKS, I am getting java.net.SocketException:
> Malformed reply from SOCKS server. and an instant pop-up at start-up
> But with providing credentials also for SOCKS, I am getting a
> different behaviour. The oomph 'Setup' job at eclipse start-up
> reaches 20% and hangs this way many minutes, till a connection timeout
> is thrown.
Unfortunately I don't know how to reproduce this. If you look at the
bugzilla I mentioned about SetupMirror, you can see how you could
produce an archive with all the setups...
>
> Anyway, offline approach would be the best solution for us. I am
> working on integrating this feature into a custom eclipse , and we do
> not expect from our developers to set proxy to be able to use it.
> We will be waiting for new release.
>
> Meanwhile, I wanted to be able to test it in remote system, and
> wandering if it is a bug, or something is wrong with my proxy settings.
> I will make a debug on that piece of code, and will come back with
> updates.
I'll be traveling for the next two weeks, so am unlikely to be as
helpful during that time...
>
> Thanks a lot for all your feedback.
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1692680 is a reply to message #1692427] |
Fri, 17 April 2015 10:44 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Thank you Ed.
I am trying to test the SetupMirrow and having few questions.
I don't expect a quick reply.
The commit implies to update the 'org.eclipse.oomph.setup.installer' plugin.
Does it also should work for custom installation of oomph plugins.
Assuming that I have installed from zip archive only 'Oomph setup' and 'Oomph Preference Manager' I do not see this *.installer plugin in my eclipse configuration.
And during my tests, running an eclipse application with updated ''org.eclipse.oomph.setup.installer' I did not saw any logs from SetupMirrow class. I can test and investigate it deeper later .
Thank you
Regards
Lidia
[Updated on: Fri, 17 April 2015 10:44] Report message to a moderator
|
|
| | | | | |
Re: Oomps is able to share preferences between different eclipse instances? [message #1735981 is a reply to message #1735946] |
Fri, 24 June 2016 08:14 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Thank you Ed,
But I would like to get rid of this warnings, I have over 9 such SocketTimeoutException warnings from oomph in 5 minutes at eclipse start-up, and I think it also freezes the eclipse while it tries to connect.
As if I press Window menu , it waits too much till I an getting a response from GUI and the submenu is displayed.
Also, wouldn't like to have such long stack traces in log even if it is just a warning.
So, please, could you be more specific how to redirect it to offline archive?
I don't know If I need access to the setup archive offline? If it's about the ability to load settings from ~/.eclipse/org.eclipse.oomph.setup/setups/user.setup into a new workspace at start-up. Yes I need it in offline mode.
Also, I would like to know how to make possible to load some predefined configurations?
E.g instead of adding manually some configurations, and record then into ~/.eclipse/org.eclipse.oomph.setup/setups/user.setup, so that for next workspace that configurations will be automatically migrated as well. I need to set them by default for all workspaces automatically.
Probably this can be solved with same setup offline archive?
Updates:
I found that something like following needs to be used, but what precisely needs to be provided for those how does not access to internet?
-Doomph.redirection.local=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/->${file_uri:${git.clone.oomph}}
If use this combination, from Eclipse Launch configuration, I am getting the error: "Reference to undefined variable git.clone.oomph"
Thank you
Kind Regards
Lidia
[Updated on: Fri, 24 June 2016 12:08] Report message to a moderator
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1736006 is a reply to message #1735981] |
Fri, 24 June 2016 10:45 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
The authoring guide has some details:
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Hosting_your_own_index_.2F_catalogs
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Shipping_your_own_index
On 24.06.2016 04:14, Lidia Gutu wrote:
> Thank you Ed,
>
> But I would like to get rid of this warnings, I have over 9 such
> SocketTimeoutException warnings from oomph in 5 minutes at eclipse
> start-up, and I think it also freezes the eclipse while it tries to
> connect.
> As if I press Window menu , it waits too much till I an getting a
> response from GUI and the submenu is displayed.
> Also, wouldn't like to have such long stack traces in log even if it
> is just a warning.
>
> So, please, could you be more specific how to redirect it to offline
> archive?
> I don't know If I need access to the setup archive offline? If it's
> about the ability to load settings from
> ~/.eclipse/org.eclipse.oomph.setup/setups/user.setup into a new
> workspace at start-up. Yes I need it in offline mode.
>
>
> Kind Regards
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1736433 is a reply to message #1736006] |
Wed, 29 June 2016 12:09 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Hello Ed,
Thank you for you indications, but I still having issues with this.
Please could you support me, how can I get rid of following stack trace errors in logs?
!ENTRY org.eclipse.oomph.setup.core 2 0 2016-06-29 13:22:05.288
!MESSAGE connect timed out
!STACK 0
org.eclipse.oomph.util.IOExceptionWithCause: connect timed out
at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:678)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.handleArchiveRedirection(SetupCoreUtil.java:385)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:365)
at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(SetupCoreUtil.java:133)
at org.eclipse.oomph.setup.ui.recorder.RecorderManager.<clinit>(RecorderManager.java:119)
at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:200)
at org.eclipse.oomph.setup.ui.EarlyStartup.earlyStartup(EarlyStartup.java:22)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:90)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:68)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$56.run(Workbench.java:2852)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
I don't want from oomph to load anything from internet, as I do not have access.
And I don't think I am interested in any setup archive offline, as far as I understand oomph.
Being able to share preferences in user.setup, and installation.setup that can be applied manually from the 'Perform Setup task button' (the bottom right oomph bottom) is sufficient to me.
In this case I don't think I need my own index/catalog.
I am not getting how this redirection can be done?
E.g. I used:
-Doomph.redirection.setups=index:/->setups/
Where I created a 'setups' folder in my installation, created the 'org.eclipse.setup' inside it from http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/org.eclipse.setup
But, I am still getting the SocketTimeoutException error.
It fails when tries to create Input Stream from a http, how to skip this part of code?
Thank you
Kind Regards
Lidia
[Updated on: Wed, 29 June 2016 12:47] Report message to a moderator
|
|
| |
Re: Oomps is able to share preferences between different eclipse instances? [message #1736572 is a reply to message #1736497] |
Thu, 30 June 2016 11:46 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
Comments below.
On 29.06.2016 15:56, Lidia Gutu wrote:
> Hi Ed,
>
> I have few updates. Based on my needs described above, can I use:
> -Doomph.redirection.mirror.nothing=true \
> Seems that it helps to solve the SocketTimeoutException errors.
> If I skip 'mirror' feature, would be oomph still properly working
> regarding saving preferences in user.setup and installation.setup ?
> What is the purpose of 'mirror' feature?
The primary purpose of this is for use the the SetupArchiver application
which builds the zip file containing the entire setup structure (which
is what that code where the exception you're concerned about is
processing). Of course when building this archive, we want to access
all the resources directly, not from the archive itself. If that solves
your problem (I'm not sure why or how), that's fine. But I really
wonder how your application is able to load and index and the product
catalogs...
>
> Suppose that more users are using same eclipse, from same location,
> can I share few predefined preferences between all users by using oomph?
If it's a shared installation, the Installation.setup.
> The installation file is saved in user's custom location, it's not
> exactly what I would need.
> fir:/home/<user>/.eclipse/configuration/org.eclipse.oomph.setup/installation.setup
>
This is created initially as a copy of the one in the shared installation.
>
> Can I create in this case an index/catalog that will contain only few
> custom eclipse preferences that should be applied to all users, if I
> save the created *.setup file in a shared location ?
If you define your own index with your own product definition you can
define variables in that product definition that will be used by all
users that install it.
>
> Thanks a lot for all your support.
> Kind Regards
> Lidia
>
>
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1736579 is a reply to message #1736572] |
Thu, 30 June 2016 12:46 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Thank you Ed, I am sorry for bothering you, but I still have issues with the index.
Regarding installation.setup:
>> Suppose that more users are using same eclipse, from same location,
>> can I share few predefined preferences between all users by using oomph?
>If it's a shared installation, the Installation.setup.
>> The installation file is saved in user's custom location, it's not
>> exactly what I would need.
>> fir:/home/<user>/.eclipse/configuration/org.eclipse.oomph.setup/installation.setup
>This is created initially as a copy of the one in the shared installation.
This doesn't seems to work for me. I have a custom eclipse mars and if I install basic oomph plugins in it, I can not found the 'installation.setup' file inside my eclipse.
ECLIPSE_ROOT % find -name installation.setup
The search results are empty.
Regarding:
>> Can I create in this case an index/catalog that will contain only few
>> custom eclipse preferences that should be applied to all users, if I
>> save the created *.setup file in a shared location ?
>If you define your own index with your own product definition you can
>define variables in that product definition that will be used by all users that install it.
I have got lost how to do it?
I tried a simple way:
I understand that I have to define one *.setup file and add a redirection so that oomph will be able to load from that file my preferences.
Suppose I am adding few preferences manually from eclipse, the changes are stored in user.setup. Then I make a copy from user.setup and update names like 'user' :
E.g. having a simple change, added a python template:
<?xml version="1.0" encoding="UTF-8"?>
<setup:GlobalPreferences
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
name="global preferences">
<setupTask
xsi:type="setup:CompoundTask"
name="User Preferences">
<annotation
source="http://www.eclipse.org/oomph/setup/UserPreferences">
<detail
key="/instance/org.python.pydev/org.python.pydev.editor.templates.PyTemplatePreferencesPage">
<value>record</value>
</detail>
</annotation>
<setupTask
xsi:type="setup:CompoundTask"
name="org.python.pydev">
<setupTask
xsi:type="setup:PreferenceTask"
key="/instance/org.python.pydev/org.python.pydev.editor.templates.PyTemplatePreferencesPage"
value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="org.python.pydev.editor.templates.python" deleted="false" description="Debug initialization" enabled="true" name="debuginit">import sys
sys.path.append('/usr/asm/atl.0000/pysrc')
import __builtin__
__builtin__.PATHS_FROM_ECLIPSE_TO_PYTHON = [
(r'$${fileparent}/',
r'/usr/asm/atl.0000/bin/python/$${project}/')
#TODO: add more translations if required
]
__builtin__.DEBUG_CLIENT_SERVER_TRANSLATION = False
import pydevd
pydevd.settrace(host='$${eth0ipv4}', stdoutToServer=False, stderrToServer= False, port=5678, suspend=False, trace_only_current_thread=False)
$${cursor}</template><template autoinsert="true" context="org.python.pydev.editor.templates.python" deleted="false" description="Lidia description" enabled="true" name="_LIDIA">Lidia Template</template></templates>"/>
</setupTask>
</setupTask>
<productVersion
href="index:/org.eclipse.setup#//@productCatalogs[name='self']/@products[name='product']/@versions[name='version']"/>
</setup:GlobalPreferences>
How can I force oomph to load preferences from this file?
I tried to add redirection:
-Doomph.redirection.myProduct=index:/->/path/to/folder/where/my.setup/is/stored
But oomph is not loading preferences from my file.
Am I missing something?
If the above approach is wrong, I am trying to create an index and product definition.
Does it mean that I have to create 'Setup Product Model' ? Seems yes.
In the created MyProduct.setup file it has some default content, Do I need it? (I don't think so, I can not apply it into the installer based on wiki) I tried to paste the generated content form user.setup. the <setupTask> .... </setupTask>
before last tag.
Getting a very close *.setup. I can not test is based on
https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Testing_the_Setup_Model
Suppose that the eclipse is already installed, so I do not have the installed described in the wiki.
What other setting needs to be done for being able to load preferences form my *.setup ?
What should be the correct redirection line? Following is not helping.
-Doomph.redirection.setups=index:/-\>setups/ \
-Doomph.redirection.myProduct=index:/->/path/to/folder/where/my.setup/is/stored/ \
Thank you
Kind Regards
Lidia
[Updated on: Thu, 30 June 2016 14:21] Report message to a moderator
|
|
| |
Re: Oomps is able to share preferences between different eclipse instances? [message #1736655 is a reply to message #1736637] |
Thu, 30 June 2016 22:25 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
Comments below.
On 30.06.2016 13:20, Lidia Gutu wrote:
> Hello Ed,
>
> I think I found a solution to my problem, based on first
> recommendation, but I still need to do some tests.
> In my eclipse installation I found the 'configuration' folder but it
> does not have the 'org.eclipse.oomph.setup' subfolder with
> installation.setup file.
If the installation is created by the installer it should have one...
> If I manually copy the folder 'org.eclipse.oomph.setup' with
> corresponding setup file in 'configuration', it is successfully
> migrated into user's cache data, and the corresponding preference is
> successfully applied in eclipse at start-up. Seems to be already
> promising.
Yes, it should be automatically copied from the read-only installation
to the surrogate.
>
> I am still having issues to create a custom index like a user.setup or
> installation.setup that could be visible by eclipse. But if first
> option works, this can be skipped for the moment.
>
> Thank you for your time.
> Kind Regards
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1736916 is a reply to message #1736655] |
Mon, 04 July 2016 11:32 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Thank you Ed,
One more question I would have, if you don't mind.
Based on what has been said, the solution that has been found, Is it also possible to define my custom *.setup files that could be considered by oomph.
I remind that I am not using installer, it is not possible in my configuration. I just installed few basic oomph plugins into already configured eclipse and I would like to use Oomph in offline mode completely. Regarding this I would have other questions lately.
Having all preferences defined in one single installation.setup file is not so convenient and difficult to maintain. It is difficult to update such file.
I would like to have one *.setup file per preference that I would like to apply by default at eclipse start-up. Is it possible? So that Oomph can consider my custom *.files ? What structure should they have? I am using the structure from installation.setup or user.setup, which a similar , only changing the name.
E.g. I have template.setup copied into
1. ECLIPSE_HOME/configuration/org.eclipse.oomph.setup did not helped, the preferences is not visible, not applied in eclipse
2. ECLIPSE_HOME/setups - did not helped as well. I have
org.eclipse.setup in this location which is considered by eclipse thanks to
oomph.redirection.setups=index:/->setups/ \
My template.setup is considered and resolved by org.eclipse.setup, but the preference form it is still not loaded.
How should it be configured in the org.eclipse.setup as Project or Product ?
<projectCatalog
href="template.setup#/"/>
or
<productCatalog
href="template.setup#/"/>
What should I create from bellow? Preference Model, Setup Product model ? for my needs?
Thank you
Kind Regards
Lidia
|
|
| |
Re: Oomps is able to share preferences between different eclipse instances? [message #1736925 is a reply to message #1736916] |
Mon, 04 July 2016 11:57 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Lidia,
Comments below.
On 04.07.2016 07:32, Lidia Gutu wrote:
> Thank you Ed,
>
> One more question I would have, if you don't mind.
>
> Based on what has been said, the solution that has been found, Is it also possible to define my custom *.setup files that could be considered by oomph.
Yes.
>
> I remind that I am not using installer, it is not possible in my configuration. I just installed few basic oomph plugins into already configured eclipse and I would like to use Oomph in offline mode completely. Regarding this I would have other questions lately.
>
> Having all preferences defined in one single installation.setup file is not so convenient and difficult to maintain. It is difficult to update such file.
The installation.setup references a product version in the product
catalog in the index so tasks could be defined in a customized index.
The workspace.setup references zero or more project streams, so that
could refer to many different files.
> I would like to have one *.setup file per preference that I would like to apply by default at eclipse start-up. Is it possible?
Not really with the current design. Tasks are gathered from the
different scopes (in
org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.getSetupTasks(Stream))
but none of these approaches will scan a folder and visit all the files
in that folder. All rely on references to the files from other files
(like a web crawler only knows about pages by crawling links between them).
> So that Oomph can consider my custom *.files ? What structure should they have? I am using the structure from installation.setup or user.setup, which a similar , only changing the name.
>
> E.g. I have template.setup copied into
> 1. ECLIPSE_HOME/configuration/org.eclipse.oomph.setup did not helped, the preferences is not visible, not applied in eclipse
> 2. ECLIPSE_HOME/setups - did not helped as well. I have
> org.eclipse.setup in this location which is considered by eclipse thanks to
> oomph.redirection.setups=index:/->setups/ \
>
> My template.setup is considered and resolved by org.eclipse.setup, but the preference form it is still not loaded.
>
>
> How should it be configured in the org.eclipse.setup as Project or Product ?
> <projectCatalog
> href="template.setup#/"/>
> or
> <productCatalog
> href="template.setup#/"/>
>
> What should I create from bellow? Preference Model, Setup Product model ? for my needs?
What isn't clear to me is how this would help maintain/change the
structure. If you have some central shared read-only installation, you
could ensure that the installation.setup refers to your specialized
product version, and you could maintain all your preference tasks
there. All the users of that installation would always see the latest
product version you've authored. And to maintain the preference tasks,
you could simply use the record feature of the setup editor to record
preferences into the product stream.
>
>
> Thank you
> Kind Regards
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: Oomps is able to share preferences between different eclipse instances? [message #1736985 is a reply to message #1736927] |
Mon, 04 July 2016 19:09 |
Lidia Gutu Messages: 45 Registered: July 2013 |
Member |
|
|
Thank you Ed for you quick replay.
Regarding your last questions:
I am not very happy with the solution I have using the installation.setup. because, If I want to update this file in an existing eclipse installation, all users that already have been opened that eclipse will have old version of installation.setup.
E.g. my updated file is in ECLIPSE_HOME/configuration/org.eclipse.oomph.setup
and the only way to load latest version of installation.setup is to manually remove user's eclipse cache data, the /.eclipse/configuration/org.eclipse.oomph.setup/installation.setup file.
Is there a way to force load latest version of installation.setup at start-up into user's cache? E.g. I tried to increment following but it did not helped.
<setup:Installation
xmi:version="2.1"
What do you mean by latest product? eclipse product or oomph product?
"All the users of that installation would always see the latest product version you've authored"
And, in case it is not possible to load latest version of installation.setup file from same eclipse version, I am considering to create a custom index, and hoping that having a custom *.setup will help me solve this limitation.
or Could happen that I will have same issue? custom *.setup files also will be copied into user's cache?
Thank you
Lidia
[Updated on: Mon, 04 July 2016 20:09] Report message to a moderator
|
|
|
Re: Oomps is able to share preferences between different eclipse instances? [message #1737061 is a reply to message #1736985] |
Tue, 05 July 2016 12:22 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
The installation.setup has a reference to some ProductVersion, minimally
just the self product's product version, but generally a product version
in a product catalog in the index. So if you ensure that your
shared-readonly install references a ProductVersion that you manage,
then you can update that setup and all users will see those updates.
On 04.07.2016 15:09, Lidia Gutu wrote:
> Thank you Ed for you quick replay.
>
> Regarding your last questions:
>
> I am not very happy with the solution I have using the
> installation.setup. because, If I want to update this file in an
> existing eclipse installation, all users that already have been opened
> that eclipse will have old version of installation.setup.
> E.g. my updated file is in
> ECLIPSE_HOME/configuration/org.eclipse.oomph.setup
> and the only way to load latest version of installation.setup is to
> manually remove user's eclipse cache data, the
> /.eclipse/configuration/org.eclipse.oomph.setup/installation.setup file.
>
> Is there a way to force load latest version of installation.setup at
> start-up into user's cache? E.g. I tried to increment following but it
> did not helped.
> <setup:Installation
> xmi:version="2.1"
>
> What do you mean by latest product? "All the users of that
> installation would always see the latest product version you've authored"
>
> Thank you
> Lidia
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Goto Forum:
Current Time: Wed Sep 25 15:52:10 GMT 2024
Powered by FUDForum. Page generated in 0.08543 seconds
|