Opened 6 years ago

Last modified 5 years ago

#19006 closed defect

Incorrect plugins path used — at Version 10

Reported by: skyper Owned by: team
Priority: normal Milestone: 20.12
Component: Core Version: latest
Keywords: template_report update plugin path Cc:

Description (last modified by skyper)

Edit: This problem only appears with plugins under several valid paths, see comment 7.

What steps will reproduce the problem?

  1. Have several plugins with older version installed
  2. In Plugin Preferences click on "Update plugins"
  3. Get a message about plugins' updates
  4. Close message window and preferences
  5. Restart JOSM
  6. Look at plugin version in Plugin Preferences.


What is the expected result?

All installed plugins are up to date

What happens instead?

Plugins with still lower local version installed

Please provide any additional information below. Attach a screenshot if possible.

Plugin update policy is set to always start without asking after update. Sadly, I did not recognize the last updates with this setting but, maybe, it helps to smaller the time range the regression was introduced.
Last plugin update seems to be 35330 but "ejml" (35313) failed before.

Edit: You need to have plugins in several valid path like .josm/cache/plugins, .local/share/JOSM/plugins, .config/JOSM/cache/plugins, /usr/share/josm/plugins or /usr/local/share/josm/plugins on Linux

In my case updates are stored under .local/share/JOSM/plugins but on startup the .jar files from .config/JOSM/cache/plugins are used.
If several paths are allowed, please, use the correct order, e.g.

  1. /usr/share/josm/plugins
  2. /usr/local/share/josm/plugins
  3. {$HOME}/.config/[<josm.name>]/cache/plugins or {$HOME}/.josm/cache/plugins
  4. {$HOME}/.local/share/[<josm.name]>/plugins

and use the highest version that fits the JOSM revision.
Thanks a lot.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-03-27 15:39:19 +0100 (Fri, 27 Mar 2020)
Revision:16205
Build-Date:2020-03-28 02:30:56
URL:https://josm.openstreetmap.de/svn/trunk

Plugins:
+ ImproveWay (29)
+ OpeningHoursEditor (35250)
+ apache-commons (35092)
+ comfort0 (35314)
+ conflation (0.6.4)
+ ejml (35122)
+ geotools (35169)
+ imagery_offset_db (35248)
+ jaxb (35092)
+ jts (35122)
+ opendata (35330)
+ reverter (35313)
+ undelete (35313)
+ utilsplugin2 (35248)
+ waydownloader (35092)

Change History (10)

comment:1 by skyper, 6 years ago

Description: modified (diff)

comment:2 by skyper, 6 years ago

Strange, with settings set to update every day (1) and another restart everything is updated or did someone fix it meanwhile ?

comment:3 by skyper, 6 years ago

Forgot to mention that I am not the only one with problem see Klumbumbus' comment 5 and followups on #19000.

comment:4 by Don-vip, 6 years ago

Resolution: irreproducible
Status: newclosed

comment:5 by skyper, 6 years ago

Resolution: irreproducible
Status: closedreopened

Today it happened again. I did download the plugin updates for the third time now to only have the old version loaded on startup.

comment:6 by skyper, 6 years ago

For the record:

  • manual update with r16402 did not work, yesterday.
  • version based automatically update with r16403 did work, today.

comment:7 by skyper, 6 years ago

Ok, I found the reason for my problems.

I had an additional cache folder under .config/ with old plugins. Deleting the folder does solve the problems.

Why does JOSM refer to this old folder if a folder under .local/share/ exists and is used? This way I ran the new versions only if installed on startup.

Last edited 6 years ago by skyper (previous) (diff)

comment:8 by skyper, 6 years ago

Oh, in fact, this is the same problem as in #7483 and #14702 which were never fixed. Is it really not possible to have a priority in search paths and to always use the same/proper order. Or simply only support one path and only use that one.

comment:9 by skyper, 6 years ago

Description: modified (diff)
Keywords: path added; regression removed
Priority: majornormal
Summary: Plugin update failsIncorrect plugins path used
Version: latest

comment:10 by skyper, 6 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.