Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Testing setup profiles - Do I need to restart the installer
Testing setup profiles - Do I need to restart the installer [message #1819182] Thu, 09 January 2020 15:49 Go to next message
Lars Vogel - out of office until 16.03.2020 is currently offline Lars Vogel - out of office until 16.03.2020Friend
Messages: 1094
Registered: July 2009
Senior Member

Do I need to restart the Oomph installer to test changs in a setup file?

My example:

1.) I tried running the installer with a locally imported setup file but it failed with and error in a p2 task. See https://github.com/eclipse/dartboard/issues/159 for details.
2.) To make the Dartboard.setup file work again ,I removed the p2 task from the setup file.

index.php/fa/37121/0/

3.) I removed the p2 task in the Dartboard.setup file, saved and DnD again to the Installer.

index.php/fa/37122/0/

4.) Running the task resulted in the same p2 error, even though this task is not present anymore in the Dartboard.setup file.

index.php/fa/37123/0/

Do I always need to restart the installer if I change a profile which fail to run?

[Updated on: Thu, 09 January 2020 15:50]

Report message to a moderator

Re: Testing setup profiles - Do I need to restart the installer [message #1819183 is a reply to message #1819182] Thu, 09 January 2020 16:01 Go to previous messageGo to next message
Lars Vogel - out of office until 16.03.2020 is currently offline Lars Vogel - out of office until 16.03.2020Friend
Messages: 1094
Registered: July 2009
Senior Member

Restarting did not use the p2 task anymore, but the question remains if a restart is always required or if there is another way to sync the profile.
Re: Testing setup profiles - Do I need to restart the installer [message #1819218 is a reply to message #1819183] Fri, 10 January 2020 07:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31158
Registered: July 2009
Senior Member
If you already have the installer open the resources will already be loaded. Removing and adding the same resource will not reload it.

Note that it's easiest to test the project setup in the IDE where you are editing it. This task ensures that the IDE itself is using the version from the clone itself:
<?xml version="1.0" encoding="UTF-8"?>
<setup:EclipseIniTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    option="-Doomph.redirection.dartboard.git"
    value="=https://raw.githubusercontent.com/eclipse/dartboard/master/org.eclipse.dartboard.releng/Dartboard.setup->${git.clone.dartboard.location|uri}/org.eclipse.dartboard.releng/Dartboard.setup"
    vm="true">
  <description>Set an Oomph redirection system property to redirect the logical location of this setup to its physical location in the Git clone.</description>
</setup:EclipseIniTask>
So you can easily test if the p2 task works or not in that IDE.

Also note that you can disable a task rather than delete it so that you can more easily recover it later. (Use the context menu "Disabled" for that.)

And use this to help find repositories when you have problems:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring#How_to_find_a_P2_repository_at_Eclipse_using_the_Repository_Explorer
Re: Testing setup profiles - Do I need to restart the installer [message #1819243 is a reply to message #1819218] Fri, 10 January 2020 12:18 Go to previous messageGo to next message
Lars Vogel - out of office until 16.03.2020 is currently offline Lars Vogel - out of office until 16.03.2020Friend
Messages: 1094
Registered: July 2009
Senior Member

> If you already have the installer open the resources will already be loaded. Removing and adding the same resource will not reload it.

Is this a bug? If I remove it and add it again, why should the new content now used?

> Note that it's easiest to test the project setup in the IDE where you are editing it.

Several steps seem behave differently if I run the setup task from the IDE. For example:

I added a Git clone task with an additional repository. Selecting Help -> Perform Setup Tasks did not clone it

> Also note that you can disable a task rather than delete it so that you can more easily recover it later. (Use the context menu "Disabled" for that.)

Nice, thanks.
Re: Testing setup profiles - Do I need to restart the installer [message #1819247 is a reply to message #1819243] Fri, 10 January 2020 13:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31158
Registered: July 2009
Senior Member
> Is this a bug? If I remove it and add it again, why should the new content now used?

Yes and no. Generally all the resources are loaded in parallel long before you get to the project page because there are on the order of 180 resource involved currently. If all you want is a refresh, better there be such an operation; but you only want a refresh on the one resource, not all 180 of them. Removing a project could unload the resource, if this were actually a common operation/need, i.e., if it were common to edit the setups already opened in the installer; that doesn't seem like a common activity to me though.

> Several steps seem behave differently if I run the setup task from the IDE.

When you open the setup, are you using Navigate -> Open Setup -> <your project's stream>? This is the one the IDE is using. If the redirection Ini has kicked in correctly, this will also be the one in the clone and it will be editable. If it is not editable, then something isn't quite right. I will test whether the IDE is properly refreshing after performing the initial tasks such that the remote setup really is properly redirected to the clone immediately after performing. If this is not working for you currently, a restart of the IDE should work. If that doesn't work, then the redirection in the eclipse.ini is likely wrong.
Re: Testing setup profiles - Do I need to restart the installer [message #1819248 is a reply to message #1819247] Fri, 10 January 2020 13:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31158
Registered: July 2009
Senior Member
For the Oomph setup, if I immediately open the editor, change the setup to add a task, and then do Help -> Perform Setup Tasks... the new task I added does show up so that all appears to be working correctly...
Re: Testing setup profiles - Do I need to restart the installer [message #1819249 is a reply to message #1819248] Fri, 10 January 2020 13:45 Go to previous messageGo to next message
Lars Vogel - out of office until 16.03.2020 is currently offline Lars Vogel - out of office until 16.03.2020Friend
Messages: 1094
Registered: July 2009
Senior Member

Works for me too, if I open the editor in the target. If I change the setup file in the original place without opening the editor in the created target IDE, it did not work.

Example:

IDE A -> Create setup file
Start Installer and do the DnD thing
Run installer and receive a new target IDE B
Change setup file in IDE A
Select Perform setup task in IDE B -> did not update for me

Re: Testing setup profiles - Do I need to restart the installer [message #1819250 is a reply to message #1819249] Fri, 10 January 2020 13:48 Go to previous messageGo to next message
Lars Vogel - out of office until 16.03.2020 is currently offline Lars Vogel - out of office until 16.03.2020Friend
Messages: 1094
Registered: July 2009
Senior Member

Opened Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=559026 for the option to refresh a setup file in the installer.
Re: Testing setup profiles - Do I need to restart the installer [message #1819274 is a reply to message #1819250] Sat, 11 January 2020 07:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31158
Registered: July 2009
Senior Member
> Works for me too, if I open the editor in the target. If I change the setup file in the original place without opening the editor in the created target IDE, it did not work.

This is like a brain teaser sentence. I have no idea how many copies/versions of the resource are involved, nor which version is actually being used by any of the IDEs.

> Example:

I did already explain that using Navigate -> Open Setup -> <your project's-stream> to open the editor opens the version/copy the IDE is actually using when Performing. So what does that action actually open for IDE B? It's also useful to click the "Show all resources" button; this will show you the URI of each resource, including that of the primary resource that you opened for editing. Moreover, in the Properties view (double click the Resource object), it shows the Resolved URI for that resource. This will tell you which final location is actually being used. In your Example, is that a file: URI? Is it the one you think you are editing? Note that with this approach you can edit in IDE B.



Previous Topic:Predefining the Git clone location rule and Root Git-container folder
Next Topic:Gerrit location
Goto Forum:
  


Current Time: Sat May 30 10:00:41 GMT 2020

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

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

Back to the top