Skip to content
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

Add update site with command line do not work #106

Closed
NicoKiaru opened this issue Jul 14, 2023 · 6 comments
Closed

Add update site with command line do not work #106

NicoKiaru opened this issue Jul 14, 2023 · 6 comments

Comments

@NicoKiaru
Copy link
Contributor

As described in the forum thread, add an update site through command line do not work anymore. The updater sends an error [ERROR] Site 'QuickFigures' was already added! even if the site was NOT added.

I wonder if that's an unintended consequence of the new GUI for the updater.

I do not know if it's the appropriate fix, but changing:

final UpdateSite site = files.getUpdateSite(name, true);

to final UpdateSite site = files.getUpdateSite(name, false); fixes the issue.

OS: win 11, Fiji up to date on 14th July 2023 (ImageJ 2.14.0/1.5f Java 1.8.0_322 64 bits)

@NicoKiaru NicoKiaru changed the title Win 11 - Add update site with command line do not work Add update site with command line do not work Jul 14, 2023
@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/fiji-add-update-site-headless-do-not-work/83673/3

@NicoKiaru
Copy link
Contributor Author

@elevans @gselzer @hinerm I forgot to mention this during the dev meeting. If you have a bit of time to see if I'm the only one experiencing the issue and potentially to see where the error comes please let me know!

Because of this bug, I had to "disable" https://github.com/BIOP/biop-bash-scripts

@imagejan
Copy link
Member

@NicoKiaru wrote:

files.getUpdateSite(name, false); fixes the issue.

Did you also test correct behavior if the update site indeed is active already? Or does that just suppress the error message?

@NicoKiaru
Copy link
Contributor Author

Good point, yeah, I do not know what to test, so thanks for jumping in. I'll give it a shot.

Besides, I do not understand is how this could have worked before...

@NicoKiaru
Copy link
Contributor Author

There's potentially the line 1277 and 1249 that need to be modified:

		final UpdateSite site = files.getUpdateSite(name, false);

But it does not really work in the end. After having executed:

./ImageJ-win64 --update add-update-site BAR http://sites.imagej.net/Tiago/
./ImageJ-win64 --ij2 --headless --update update

I still need to go to the GUI and click apply:

image

@imagejan
Copy link
Member

I wonder if sciview is affected by this, as they use the updater in headless mode for their deployment:

https://github.com/scenerygraphics/sciview/blob/64fdc074d8886aae91f3ae3389ea3f1d8437c141/populate_fiji.sh#L76

/cc @kephale @ctrueden

ctrueden added a commit that referenced this issue Jul 25, 2023
Fix #106 by setting the correct update site flags in CommandLine.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants