These are chat archives for fiji/fiji

25th
May 2016
Robert Haase
@haesleinhuepf
May 25 2016 12:29
@ctrueden Hi Curtis, do you know by chance if there are still issues with the web servers? I was just approached by a user who was trying to update a recently downloaded version of FIJI. I reproduced the issue: Download FIJI (for Mac), click on the Menu (Help > Update FJI) and after some red warnings in the log window, a message appears saying “Could not update from site ‘ImageJ’: java.net.ConnectException: Connection refused”… I thought the servers are up again and running? Thanks in advance :)
Curtis Rueden
@ctrueden
May 25 2016 13:29
@haesleinhuepf Hmm, that's not good. Will investigate in a bit when i get to the office.
Curtis Rueden
@ctrueden
May 25 2016 14:24
@haesleinhuepf Very sorry for the trouble—somehow that web server was not up and running (?). But it is now, and all should be working.
Robert Haase
@haesleinhuepf
May 25 2016 14:25
@ctrueden Cool! I can confirm that the updates are working again. Thanks for the quick intervention!
Curtis Rueden
@ctrueden
May 25 2016 14:29
:+1:
Kyle I S Harrington
@kephale
May 25 2016 19:24
does any magic need to be done if i want to do something like maintain a branch build of 3D viewer on an update site?
i know @hinerm has done this before...
Mark Hiner
@hinerm
May 25 2016 19:29
@kephale nope, no magic! You can put whatever you want on an update site. :) If you want to use my travis script to maintain your site you would just need to configure it to check out the topic branch of interest before building
.... I expect...
Kyle I S Harrington
@kephale
May 25 2016 19:30
@hinerm i just wasnt sure what would happen with multiple versions of the same plugin being present and such
and i'm still using your travis script for Funimage!
Mark Hiner
@hinerm
May 25 2016 19:31
@kephale ah yeah, well the line - mvn clean install -Dimagej.app.directory="$(pwd)" -Ddelete.other.versions=true ensures that only one version exists in the installation
Kyle I S Harrington
@kephale
May 25 2016 19:32
wait but what happens when someone tries to download the branch 3d viewer? if they already have one installed?
Mark Hiner
@hinerm
May 25 2016 19:32
this is called shadowing in the updater
Kyle I S Harrington
@kephale
May 25 2016 19:32
as long as it is a higher version number the new one wins?
Mark Hiner
@hinerm
May 25 2016 19:32
it's not version number based
Kyle I S Harrington
@kephale
May 25 2016 19:32
ok, i wasnt sure about shadowing things outside the update site
thanks!
Mark Hiner
@hinerm
May 25 2016 19:34
just for a complete example: right now 3D_Viewer-4.0.1.jar is on the Java-8 update site
Kyle I S Harrington
@kephale
May 25 2016 19:34
oh touche, should have realized that : P
Mark Hiner
@hinerm
May 25 2016 19:35
say your topic branch has 3D_Viewer-0.20394.9-SNAPSHOT.jar.. when that mvn job runs, it deletes the 4.0.1 version and replaces it with your 0.20394.9-SNAPSHOT
people who turn on the update site lose the 4.0.1 and get the SNAPSHOT version
turn off the update site, and it reverts back
to 4.0.1
when multiple update sites ship different copies of the same artifact, whichever is lowest on the update site list "wins"
so this means you will always override the core update sites (ImageJ, Fiji, Java-8)
but if another update site also ships a different 3D-viewer, one of you is probably going to be unhappy
does that make sense?
or more confusing?? :D
Kyle I S Harrington
@kephale
May 25 2016 19:36
yes, that makes a lot of sense
thank you!
Mark Hiner
@hinerm
May 25 2016 19:37
no problem
if you do run into problems, let us know :)
Kyle I S Harrington
@kephale
May 25 2016 19:56
@hinerm ok 1 more newbie question
can i actually upload the modified 3d viewer via the updater GUI from within FIJI (I don't get the "Upload to My Site" action option, and it shows up as being sourced from the Java-8 update site)
Mark Hiner
@hinerm
May 25 2016 20:01
@kephale so, for the "upload to [MYSITE]" option to be available, you need to put in your credentials on the Manage update sites dialog
e.g. this
Kyle I S Harrington
@kephale
May 25 2016 20:02
@hinerm oh crud... i forgot i swapped to a fresh fiji and didnt add the creds back, thanks again!!
Mark Hiner
@hinerm
May 25 2016 20:03
before the upload it should say "locally modified" and be sourced from Java-8
no problem :)
I do that all the time, too
Kyle I S Harrington
@kephale
May 25 2016 20:10
FYI, password update isn't working for update sites, getting an error message, i'll paste it to @ctrueden since it mentions file locations